File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/test/java/org/bouncycastle/crypto/test Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,18 +95,18 @@ void testKangaroo(final int pMsgLen,
9595 final KangarooTwelve myDigest = new KangarooTwelve ();
9696 final KangarooParameters myParams = new KangarooParameters .Builder ()
9797 .setPersonalisation (myPers )
98- .setMaxOutputLen (myXofLen )
9998 .build ();
10099 myDigest .init (myParams );
101100 myDigest .update (myMsg , 0 , pMsgLen );
102- myDigest .doFinal (myOutput , 0 );
101+ myDigest .doFinal (myOutput , 0 , myOutput . length );
103102
104103 /* If we are only looking at the last bit of the output */
105104 if (pOutLen != 0 )
106105 {
107106 myOutput = Arrays .copyOfRange (myOutput , pOutLen - myExpected .length , pOutLen );
108107 }
109108
109+
110110 /* Check the result */
111111 isTrue ("Result mismatch" , Arrays .areEqual (myExpected , myOutput ));
112112 }
You can’t perform that action at this time.
0 commit comments