File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
pkix/src/test/java/org/bouncycastle/pkcs/test Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 33import java .security .Security ;
44
55import junit .framework .TestCase ;
6-
76import org .bouncycastle .asn1 .nist .NISTObjectIdentifiers ;
87import org .bouncycastle .asn1 .pkcs .PBKDF2Params ;
98import org .bouncycastle .asn1 .pkcs .PBMAC1Params ;
@@ -38,7 +37,7 @@ public void testPBESHA256()
3837
3938 }
4039
41- void testPbmac1PrfPropagation () throws OperatorCreationException {
40+ public void testPbmac1PrfPropagation () throws OperatorCreationException {
4241 AlgorithmIdentifier prf = new AlgorithmIdentifier (NISTObjectIdentifiers .id_hmacWithSHA3_512 , null );;
4342 AlgorithmIdentifier protectionAlgorithm = new AlgorithmIdentifier (PKCSObjectIdentifiers .id_PBMAC1 ,
4443 new PBMAC1Params (
@@ -51,7 +50,7 @@ void testPbmac1PrfPropagation() throws OperatorCreationException {
5150 AlgorithmIdentifier actualPrf = PBKDF2Params .getInstance (
5251 PBMAC1Params .getInstance (calculator .getKey ().getAlgorithmIdentifier ().getParameters ()).getKeyDerivationFunc ().getParameters ()
5352 ).getPrf ();
54- System . out . println ( "Should be true: " + prf .equals (actualPrf ));
53+ assertTrue ( prf .equals (actualPrf ));
5554 }
5655
5756}
You can’t perform that action at this time.
0 commit comments