mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 12:44:38 +01: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