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