(key, msg)
return hmac.new(key, msg, hashlib.sha256).digest()
Adapted from rransom's tor-utils git repository. Returns the
    digest (binary) of an HMAC with SHA256 over msg with key.
Adapted from rransom's tor-utils git repository. Returns the
    digest (binary) of an HMAC with SHA256 over msg with key.
Adapted from rransom s tor - utils git repository . Returns the digest ( binary ) of an HMAC with SHA256 over msg with key .
def hmac_sha256(key, msg):
    """
    Adapted from rransom's tor-utils git repository. Returns the
    digest (binary) of an HMAC with SHA256 over msg with key.
    """

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