JCE: fix Cipher test for 3DES

pull/2/merge
Chris Conlon 2017-05-10 14:07:40 -06:00
parent 622b5ed1b6
commit 08dfab0d3a
1 changed files with 3 additions and 3 deletions

View File

@ -809,8 +809,8 @@ public class WolfCryptCipherTest {
tmp = cipher.update(Arrays.copyOfRange(input, 8, 16));
assertArrayEquals(tmp, Arrays.copyOfRange(output, 8, 16));
tmp = cipher.doFinal(Arrays.copyOfRange(input, 16, 32));
assertArrayEquals(tmp, Arrays.copyOfRange(output, 16, 32));
tmp = cipher.doFinal(Arrays.copyOfRange(input, 16, 24));
assertArrayEquals(tmp, Arrays.copyOfRange(output, 16, 24));
try {
tmp = cipher.doFinal(Arrays.copyOfRange(input, 0, 2));
@ -818,7 +818,7 @@ public class WolfCryptCipherTest {
"throw exception");
} catch (IllegalBlockSizeException e) {
assertEquals(e.getMessage(),
"Input length not multiple of 16 bytes");
"Input length not multiple of 8 bytes");
}
}