Skip to content

Commit

Permalink
Accept both encryption key flags for encryption/decryption
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Jul 16, 2024
1 parent ef6d672 commit bdadaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openpgp/v2/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,5 +782,5 @@ func isValidCertificationKey(signature *packet.Signature, algo packet.PublicKeyA
func isValidEncryptionKey(signature *packet.Signature, algo packet.PublicKeyAlgorithm) bool {
return algo.CanEncrypt() &&
signature.FlagsValid &&
signature.FlagEncryptCommunications
(signature.FlagEncryptCommunications || signature.FlagEncryptStorage)
}

0 comments on commit bdadaaf

Please sign in to comment.