Skip to content

Commit

Permalink
Add support for verifying SHA256 signer digest
Browse files Browse the repository at this point in the history
  • Loading branch information
ktezlaf authored and fullsailor committed Jun 13, 2018
1 parent ae22642 commit 8306686
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkcs7.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ func getHashForOID(oid asn1.ObjectIdentifier) (crypto.Hash, error) {
switch {
case oid.Equal(oidDigestAlgorithmSHA1):
return crypto.SHA1, nil
case oid.Equal(oidSHA256):
return crypto.SHA256, nil
}
return crypto.Hash(0), ErrUnsupportedAlgorithm
}
Expand Down

0 comments on commit 8306686

Please sign in to comment.