@@ -297,8 +297,8 @@ static void checkCipher(final BlockCipher pCipher, final int datalen)
297297 myCipher .doFinal (plaintext , myOutLen );
298298
299299 /* Check that the cipherTexts are identical */
300- Assert . assertArrayEquals ( myOutput , myOutput2 );
301- Assert . assertArrayEquals ( myData , plaintext );
300+ isTrue ( areEqual ( myOutput , myOutput2 ) );
301+ isTrue ( areEqual ( myData , plaintext ) );
302302 }
303303
304304 static void checkAEADParemeter (SimpleTest test , int keySize , int ivSize , final int macSize , int blockSize , final AEADCipher cipher )
@@ -328,7 +328,7 @@ static void checkAEADParemeter(SimpleTest test, int keySize, int ivSize, final i
328328 byte [] ciphertext2 = new byte [cipher .getOutputSize (plaintext .length )];
329329 len = cipher .processBytes (plaintext , 0 , plaintext .length , ciphertext2 , 0 );
330330 len += cipher .doFinal (ciphertext2 , len );
331- Assert . assertArrayEquals ( ciphertext1 , ciphertext2 );
331+ isTrue ( areEqual ( ciphertext1 , ciphertext2 ) );
332332
333333 test .testException ("Invalid value for MAC size: " , "IllegalArgumentException" , new TestExceptionOperation ()
334334 {
0 commit comments