def VerifySha1Hmac(key, text, digest, salt=None):
  return digest.lower() == Sha1Hmac(key, text, salt=salt).lower()
Verifies the HMAC-SHA1 digest of a text.
dataset/ETHPy150Open ganeti/ganeti/lib/utils/hash.py/VerifySha1Hmac