Function
getSignatureAlgorithmFromOID
(oid asn1.ObjectIdentifier)
Source from the content-addressed store, hash-verified
| 59 | } |
| 60 | |
| 61 | func getSignatureAlgorithmFromOID(oid asn1.ObjectIdentifier) x509.SignatureAlgorithm { |
| 62 | for _, details := range signatureAlgorithmDetails { |
| 63 | if oid.Equal(details.oid) { |
| 64 | return details.algo |
| 65 | } |
| 66 | } |
| 67 | return x509.UnknownSignatureAlgorithm |
| 68 | } |
| 69 | |
| 70 | func getDigestHashType(oid asn1.ObjectIdentifier) crypto.Hash { |
| 71 | //TODO: properly select digest |
Tested by
no test coverage detected