Skip to content

Commit ebf4798

Browse files
committed
JcePBEKeyEncryptionMethodGenerator: Expose constructor taking Argon2 params
1 parent 22c9eda commit ebf4798

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JcePBEKeyEncryptionMethodGenerator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ public JcePBEKeyEncryptionMethodGenerator(char[] passPhrase, int s2kCount)
8383
super(passPhrase, new SHA1PGPDigestCalculator(), s2kCount);
8484
}
8585

86+
public JcePBEKeyEncryptionMethodGenerator(char[] passPhrase, S2K.Argon2Params params)
87+
{
88+
super(passPhrase, params);
89+
}
90+
8691
/**
8792
* Sets the JCE provider to source cryptographic primitives from.
8893
*

0 commit comments

Comments
 (0)