Make xtea test use weird length to test padding
This commit is contained in:
@@ -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 };
|
||||||
|
|||||||
Reference in New Issue
Block a user