MCPcopy
hub / github.com/authlib/authlib / _verify_hash

Function _verify_hash

authlib/oidc/core/claims.py:283–287  ·  view source on GitHub ↗
(signature, s, alg)

Source from the content-addressed store, hash-verified

281
282
283def _verify_hash(signature, s, alg):
284 hash_value = create_half_hash(s, alg)
285 if hash_value is None:
286 return False
287 return hmac.compare_digest(hash_value, to_bytes(signature))

Callers 2

validate_at_hashMethod · 0.85
validate_c_hashMethod · 0.85

Calls 2

to_bytesFunction · 0.90
create_half_hashFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…