From 09c03d0f757b755b6ac9e293d33f177c050fca76 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 28 Dec 2014 23:15:45 -0600 Subject: [PATCH] Tests/DES: the expeted output of testDecryptPadding() was incorrect (the expected output can be obtained by setting the key and iv both to 'd') --- tests/Unit/Crypt/DESTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/Crypt/DESTest.php b/tests/Unit/Crypt/DESTest.php index 0d7009e6..20ebf0e3 100644 --- a/tests/Unit/Crypt/DESTest.php +++ b/tests/Unit/Crypt/DESTest.php @@ -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);