Add SHA3 to allowed signature hashes (#304)
This commit is contained in:
parent
5ec8559b90
commit
a3608a3d8d
1 changed files with 4 additions and 0 deletions
|
|
@ -17,11 +17,15 @@ import (
|
||||||
"github.com/ProtonMail/gopenpgp/v2/internal"
|
"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{
|
var allowedHashes = []crypto.Hash{
|
||||||
crypto.SHA224,
|
crypto.SHA224,
|
||||||
crypto.SHA256,
|
crypto.SHA256,
|
||||||
crypto.SHA384,
|
crypto.SHA384,
|
||||||
crypto.SHA512,
|
crypto.SHA512,
|
||||||
|
crypto.SHA3_256,
|
||||||
|
crypto.SHA3_512,
|
||||||
}
|
}
|
||||||
|
|
||||||
// SignatureVerificationError is returned from Decrypt and VerifyDetached
|
// SignatureVerificationError is returned from Decrypt and VerifyDetached
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue