Beispiel #1
0
 def pycrypto_hmac_digest(key, bytes):
     hmac = HMAC(key, digestmod=SHA256)
     hmac.update(bytes)
     return hmac.digest()
Beispiel #2
0
 def m2crypto_hmac_digest(key, bytes):
     hmac = HMAC(key, 'sha256')
     hmac.update(bytes)
     return hmac.digest()