Add SHA3 to allowed signature hashes (#304)

This commit is contained in:
Lukas Burkhalter 2024-10-29 11:39:45 +01:00 committed by GitHub
parent 5ec8559b90
commit a3608a3d8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,11 +17,15 @@ import (
"github.com/ProtonMail/gopenpgp/v2/internal"
)
// allowedHashes stores the allowed OpenPGP hashes that can be used in a
// message signature hash.
var allowedHashes = []crypto.Hash{
crypto.SHA224,
crypto.SHA256,
crypto.SHA384,
crypto.SHA512,
crypto.SHA3_256,
crypto.SHA3_512,
}
// SignatureVerificationError is returned from Decrypt and VerifyDetached