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

Method getSignatureHash

scapy/layers/tls/cert.py:1032–1036  ·  view source on GitHub ↗

Return the hash cryptography object used by the 'signatureAlgorithm'

(self)

Source from the content-addressed store, hash-verified

1030 return self.pubkey.verify(msg, sig, t=t, h=h, mgf=mgf, L=L)
1031
1032 def getSignatureHash(self):
1033 """
1034 Return the hash cryptography object used by the 'signatureAlgorithm'
1035 """
1036 return _get_hash(_get_cert_sig_hashname(self))
1037
1038 def setSubjectPublicKeyFromPrivateKey(self, key):
1039 """

Callers 1

fromsslMethod · 0.95

Calls 2

_get_hashFunction · 0.90
_get_cert_sig_hashnameFunction · 0.85

Tested by

no test coverage detected