MCPcopy Create free account
hub / github.com/secdev/scapy / verify

Method verify

scapy/layers/tls/cert.py:541–547  ·  view source on GitHub ↗
(self, msg, sig, **kwargs)

Source from the content-addressed store, hash-verified

539
540 @crypto_validator
541 def verify(self, msg, sig, **kwargs):
542 # 'sig' should be a DER-encoded signature, as per RFC 3279
543 try:
544 self.pubkey.verify(sig, msg)
545 return True
546 except InvalidSignature:
547 return False
548
549
550################

Callers

nothing calls this directly

Calls 1

verifyMethod · 0.45

Tested by

no test coverage detected