Make xtea test use weird length to test padding

This commit is contained in:
Adam
2016-06-10 17:30:16 -04:00
parent ca1433f6a5
commit 85d4f72930

View File

@@ -45,7 +45,7 @@ public class XteaTest
@Test @Test
public void test() throws InvalidKeyException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchPaddingException public void test() throws InvalidKeyException, IllegalBlockSizeException, BadPaddingException, NoSuchAlgorithmException, NoSuchPaddingException
{ {
byte[] data = new byte[1024]; byte[] data = new byte[1027];
random.nextBytes(data); random.nextBytes(data);
int[] key = new int[] { 4, 8, 15, 16 }; int[] key = new int[] { 4, 8, 15, 16 };