MCPcopy Create free account
hub / github.com/authlib/authlib / verify

Method verify

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

Source from the content-addressed store, hash-verified

94 return op_key.sign(msg, self.padding, self.hash_alg())
95
96 def verify(self, msg, sig, key):
97 op_key = key.get_op_key("verify")
98 try:
99 op_key.verify(sig, msg, self.padding, self.hash_alg())
100 return True
101 except InvalidSignature:
102 return False
103
104
105class ECAlgorithm(JWSAlgorithm):

Callers

nothing calls this directly

Calls 2

get_op_keyMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected