MCPcopy
hub / github.com/authlib/authlib / sign

Method sign

authlib/jose/rfc7518/jws_algs.py:62–65  ·  view source on GitHub ↗
(self, msg, key)

Source from the content-addressed store, hash-verified

60 return OctKey.import_key(raw_data)
61
62 def sign(self, msg, key):
63 # it is faster than the one in cryptography
64 op_key = key.get_op_key("sign")
65 return hmac.new(op_key, msg, self.hash_alg).digest()
66
67 def verify(self, msg, sig, key):
68 op_key = key.get_op_key("verify")

Callers

nothing calls this directly

Calls 1

get_op_keyMethod · 0.45

Tested by

no test coverage detected