mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 11:20:03 +00:00
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:
parent
1d2a85a319
commit
09c03d0f75
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user