Skip to content

Commit caa805b

Browse files
committed
Fixed non compiling test
1 parent dbadf94 commit caa805b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/org/bouncycastle/crypto/test/KangarooTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)