Skip to content

Commit bdb1016

Browse files
committed
added KeyStore test for new MAC algorithm
1 parent 7ec58ff commit bdb1016

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkix/src/test/java/org/bouncycastle/pkcs/test/PfxPduTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,10 @@ public void testPfxPduMac1()
11581158
assertTrue(pfx.hasMac());
11591159
assertTrue(pfx.isMacValid(new BcPKCS12PBMac1CalculatorBuilderProvider(), passwd));
11601160
assertFalse(pfx.isMacValid(new BcPKCS12PBMac1CalculatorBuilderProvider(), "not right".toCharArray()));
1161+
1162+
KeyStore pkcs12 = KeyStore.getInstance("PKCS12", "BC");
1163+
1164+
pkcs12.load(new ByteArrayInputStream(pfx.getEncoded()), passwd);
11611165
}
11621166

11631167
public void testPfxPduPBMac1PBKdf2()

0 commit comments

Comments
 (0)