1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-26 12:58:02 +01:00

symmetrically encrypted messages are still encrypted

This commit is contained in:
Paul Schaub 2022-06-23 11:46:19 +02:00
parent 07f9c3ceef
commit 0c28c7a389
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -84,7 +84,7 @@ public class OpenPgpMetadata {
* @return true if encrypted, false otherwise
*/
public boolean isEncrypted() {
return sessionKey != null && sessionKey.getAlgorithm() != SymmetricKeyAlgorithm.NULL && !getRecipientKeyIds().isEmpty();
return sessionKey != null && sessionKey.getAlgorithm() != SymmetricKeyAlgorithm.NULL;
}
/**