def _hmac_sha256(key, msg):
 return hmac.new(key, msg, hashlib.sha256).digest()

def _hmac_sha256 ( key , msg ) : return hmac . new ( key , msg , hashlib . sha256 ) . digest ( )
generates a sha256 digest using the given key and message .