Skip to content

Commit a3608a3

Browse files
authored
Add SHA3 to allowed signature hashes (#304)
1 parent 5ec8559 commit a3608a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crypto/signature.go

+4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ import (
1717
"github.com/ProtonMail/gopenpgp/v2/internal"
1818
)
1919

20+
// allowedHashes stores the allowed OpenPGP hashes that can be used in a
21+
// message signature hash.
2022
var allowedHashes = []crypto.Hash{
2123
crypto.SHA224,
2224
crypto.SHA256,
2325
crypto.SHA384,
2426
crypto.SHA512,
27+
crypto.SHA3_256,
28+
crypto.SHA3_512,
2529
}
2630

2731
// SignatureVerificationError is returned from Decrypt and VerifyDetached

0 commit comments

Comments
 (0)