Skip to content

Commit

Permalink
Accept both encryption key flags for encryption/decryption (#217)
Browse files Browse the repository at this point in the history
* Accept both encryption key flags for encryption/decryption

* Update interoperability test suite to 1.1.9
  • Loading branch information
lubux committed Jul 16, 2024
1 parent ef6d672 commit c556c9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/interop-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
name: Run interoperability test suite
runs-on: ubuntu-latest
container:
image: ghcr.io/protonmail/openpgp-interop-test-docker:v.1.1.3
image: ghcr.io/protonmail/openpgp-interop-test-docker:v1.1.9
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
Expand Down
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 c556c9c

Please sign in to comment.