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