MCPcopy
hub / github.com/authlib/authlib / verify

Method verify

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

Source from the content-addressed store, hash-verified

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")
69 v_sig = hmac.new(op_key, msg, self.hash_alg).digest()
70 return hmac.compare_digest(sig, v_sig)
71
72
73class RSAAlgorithm(JWSAlgorithm):

Callers

nothing calls this directly

Calls 1

get_op_keyMethod · 0.45

Tested by

no test coverage detected