From 188cef4665275eb6098c217bdcccd9596b8c5b50 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 2 Apr 2015 22:20:02 -0500 Subject: [PATCH] Tests/DES: method is testing decryption - not encryption --- 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 deba92ad..a1fbea6f 100644 --- a/tests/Unit/Crypt/DESTest.php +++ b/tests/Unit/Crypt/DESTest.php @@ -69,7 +69,7 @@ class Unit_Crypt_DESTest extends PhpseclibTestCase $des->setPreferredEngine(Base::ENGINE_OPENSSL); if ($des->getEngine() == Base::ENGINE_OPENSSL) { - $openssl = $des->encrypt('d'); + $openssl = $des->decrypt('d'); $this->assertEquals($result, $openssl, 'Failed asserting that the OpenSSL engine produced the correct result'); } else { self::markTestSkipped('Unable to initialize OpenSSL engine');