AES: CS adjustments to unit tests

This commit is contained in:
terrafrost 2014-08-14 10:06:25 -05:00
parent 8cf6af94dd
commit d88b7ed6dd

View File

@ -74,6 +74,9 @@ abstract class Unit_Crypt_AES_Test extends PhpSeclibTestcase
$this->assertEquals($plaintext, $actual); $this->assertEquals($plaintext, $actual);
} }
/**
* @group github451
*/
public function testKeyPaddingRijndael() public function testKeyPaddingRijndael()
{ {
// this test case is from the following URL: // this test case is from the following URL:
@ -86,6 +89,9 @@ abstract class Unit_Crypt_AES_Test extends PhpSeclibTestcase
$this->assertEquals($ciphertext, pack('H*', '231d844639b31b412211cfe93712b880')); $this->assertEquals($ciphertext, pack('H*', '231d844639b31b412211cfe93712b880'));
} }
/**
* @group github451
*/
public function testKeyPaddingAES() public function testKeyPaddingAES()
{ {
// same as the above - just with a different ciphertext // same as the above - just with a different ciphertext
@ -96,4 +102,4 @@ abstract class Unit_Crypt_AES_Test extends PhpSeclibTestcase
$ciphertext = $aes->encrypt(pack('H*', '3243f6a8885a308d313198a2e0370734')); $ciphertext = $aes->encrypt(pack('H*', '3243f6a8885a308d313198a2e0370734'));
$this->assertEquals($ciphertext, pack('H*', 'c109292b173f841b88e0ee49f13db8c0')); $this->assertEquals($ciphertext, pack('H*', 'c109292b173f841b88e0ee49f13db8c0'));
} }
} }