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

Function _get_cert_sig_hashname

scapy/layers/tls/cert.py:925–931  ·  view source on GitHub ↗

Return the hash associated with the signature algorithm of a certificate.

(cert)

Source from the content-addressed store, hash-verified

923
924
925def _get_cert_sig_hashname(cert):
926 """
927 Return the hash associated with the signature algorithm of a certificate.
928 """
929 tbsCert = cert.tbsCertificate
930 sigAlg = tbsCert.signature
931 return hash_by_oid[sigAlg.algorithm.val]
932
933
934def _get_csr_sig_hashname(csr):

Callers 3

verifyCertMethod · 0.85
getSignatureHashMethod · 0.85
signMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…