mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-15 01:51:38 +00:00
AES: CS adjustments to unit tests
This commit is contained in:
parent
8cf6af94dd
commit
d88b7ed6dd
@ -74,6 +74,9 @@ abstract class Unit_Crypt_AES_Test extends PhpSeclibTestcase
|
||||
$this->assertEquals($plaintext, $actual);
|
||||
}
|
||||
|
||||
/**
|
||||
* @group github451
|
||||
*/
|
||||
public function testKeyPaddingRijndael()
|
||||
{
|
||||
// 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'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @group github451
|
||||
*/
|
||||
public function testKeyPaddingAES()
|
||||
{
|
||||
// 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'));
|
||||
$this->assertEquals($ciphertext, pack('H*', 'c109292b173f841b88e0ee49f13db8c0'));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user