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