Skip to content

Commit 408534c

Browse files
committed
review updates
1 parent 1ece0b6 commit 408534c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/com/ibm/crypto/plus/provider/MessageDigest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected int engineGetDigestLength() {
6666
}
6767

6868
/*
69-
* This method helps in deriving PKCS12 key by perfroming update and digest in C
69+
* This method helps in deriving PKCS12 key by performing update and digest in C
7070
* in an iteration count loop avoiding excess JNI calls.
7171
*/
7272
protected byte[] PKCS12KeyDeriveHelp(byte[] input, int offset, int length, int iterationCount) {

src/main/java/com/ibm/crypto/plus/provider/PBES1Core.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ protected void engineInit(int opmode, Key key,
220220
}
221221

222222
byte[] pass = passwordBigEndian(password);
223+
Arrays.fill(password, (byte) 0x00);
223224
byte[] iv = deriveKey(8, CIPHER_IV, pass);
224225
byte[] derivedKey = deriveKey(keysize, CIPHER_KEY, pass);
225226
Arrays.fill(pass, (byte) 0x00);

0 commit comments

Comments
 (0)