From 8713e940010528cbfacac2275cbc5721085cef75 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 7 Jan 2015 21:36:02 -0600 Subject: [PATCH] Tests/AES: disable padding --- tests/Unit/Crypt/AES/TestCase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Unit/Crypt/AES/TestCase.php b/tests/Unit/Crypt/AES/TestCase.php index 114f1507..36432092 100644 --- a/tests/Unit/Crypt/AES/TestCase.php +++ b/tests/Unit/Crypt/AES/TestCase.php @@ -260,6 +260,7 @@ abstract class Unit_Crypt_AES_TestCase extends PhpseclibTestCase $aes->setKey(pack('H*', '00000000000000000000000000000000')); $aes->setIV(pack('H*', '00000000000000000000000000000000')); + $aes->disablePadding(); $aes->setPreferredEngine($this->engine); $this->_checkEngine($aes); @@ -286,6 +287,7 @@ abstract class Unit_Crypt_AES_TestCase extends PhpseclibTestCase $aes->setKey(pack('H*', '000000000000000000000000000000000000000000000000')); $aes->setIV(pack('H*', '00000000000000000000000000000000')); + $aes->disablePadding(); $aes->setPreferredEngine($this->engine); $this->_checkEngine($aes); @@ -310,6 +312,7 @@ abstract class Unit_Crypt_AES_TestCase extends PhpseclibTestCase $aes->setKey(pack('H*', '00000000000000000000000000000000' . '00000000000000000000000000000000')); $aes->setIV(pack('H*', '00000000000000000000000000000000')); + $aes->disablePadding(); $aes->setPreferredEngine($this->engine); $this->_checkEngine($aes);