Fixed non compiling test
@@ -95,11 +95,10 @@ void testKangaroo(final int pMsgLen,
final KangarooTwelve myDigest = new KangarooTwelve();
final KangarooParameters myParams = new KangarooParameters.Builder()
.setPersonalisation(myPers)
- .setMaxOutputLen(myXofLen)
.build();
myDigest.init(myParams);
myDigest.update(myMsg, 0, pMsgLen);
- myDigest.doFinal(myOutput, 0);
+ myDigest.doFinal(myOutput, 0, myOutput.length);
/* If we are only looking at the last bit of the output */
if (pOutLen != 0)
@@ -107,6 +106,7 @@ void testKangaroo(final int pMsgLen,
myOutput = Arrays.copyOfRange(myOutput, pOutLen - myExpected.length, pOutLen);
}
+
/* Check the result */
isTrue("Result mismatch", Arrays.areEqual(myExpected, myOutput));
}
