Tests/DES: the expeted output of testDecryptPadding() was incorrect

(the expected output can be obtained by setting the key and iv both to 'd')
This commit is contained in:
terrafrost 2014-12-28 23:15:45 -06:00
parent 1d2a85a319
commit 09c03d0f75

View File

@ -55,7 +55,7 @@ class Unit_Crypt_DESTest extends PhpseclibTestCase
$des->setPreferredEngine(CRYPT_ENGINE_INTERNAL);
$internal = $des->decrypt('d');
$result = pack('H*', '36a86ebd0f9e048f');
$result = pack('H*', '79b305d1ce555221');
$this->assertEquals($result, $internal, 'Failed asserting that the internal engine produced the correct result');
$des->setPreferredEngine(CRYPT_ENGINE_MCRYPT);