Return the hash associated with the signature algorithm of a certificate.
(cert)
| 923 | |
| 924 | |
| 925 | def _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 | |
| 934 | def _get_csr_sig_hashname(csr): |
no outgoing calls
no test coverage detected
searching dependent graphs…