MCPcopy Create free account
hub / github.com/egonelbre/exp / getSignatureAlgorithmFromOID

Function getSignatureAlgorithmFromOID

smime/signaturealgorithm.go:61–68  ·  view source on GitHub ↗
(oid asn1.ObjectIdentifier)

Source from the content-addressed store, hash-verified

59}
60
61func 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
70func getDigestHashType(oid asn1.ObjectIdentifier) crypto.Hash {
71 //TODO: properly select digest

Callers 1

CheckSignatureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected