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