diff options
Diffstat (limited to 'src/main/java/org/bouncycastle/openpgp/PGPSecretKey.java')
-rw-r--r-- | src/main/java/org/bouncycastle/openpgp/PGPSecretKey.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bouncycastle/openpgp/PGPSecretKey.java b/src/main/java/org/bouncycastle/openpgp/PGPSecretKey.java index 0bab60ce..8ac0bd86 100644 --- a/src/main/java/org/bouncycastle/openpgp/PGPSecretKey.java +++ b/src/main/java/org/bouncycastle/openpgp/PGPSecretKey.java @@ -822,7 +822,7 @@ public class PGPSecretKey byte[] encKey = newKeyEncryptor.getKey(); keyData = new byte[rawKeyData.length]; - if (newKeyEncryptor.getS2K() != null) + if (newKeyEncryptor.getHashAlgorithm() != HashAlgorithmTags.MD5) { throw new PGPException("MD5 Digest Calculator required for version 3 key encryptor."); } |