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

Method isIssuer

scapy/layers/tls/cert.py:1002–1010  ·  view source on GitHub ↗

True if 'other' issued 'self', i.e.: - self.issuer == other.subject - self is signed by other

(self, other)

Source from the content-addressed store, hash-verified

1000 self.signatureLen = len(self.signatureValue)
1001
1002 def isIssuer(self, other):
1003 """
1004 True if 'other' issued 'self', i.e.:
1005 - self.issuer == other.subject
1006 - self is signed by other
1007 """
1008 if self.issuer_hash != other.subject_hash:
1009 return False
1010 return other.pubkey.verifyCert(self)
1011
1012 def isIssuerCert(self, other):
1013 return self.isIssuer(other)

Callers 2

isIssuerCertMethod · 0.95
isSelfSignedMethod · 0.95

Calls 1

verifyCertMethod · 0.45

Tested by

no test coverage detected