mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +00:00
Tests/DES: method is testing decryption - not encryption
This commit is contained in:
parent
46d22b962d
commit
188cef4665
@ -69,7 +69,7 @@ class Unit_Crypt_DESTest extends PhpseclibTestCase
|
|||||||
|
|
||||||
$des->setPreferredEngine(Base::ENGINE_OPENSSL);
|
$des->setPreferredEngine(Base::ENGINE_OPENSSL);
|
||||||
if ($des->getEngine() == 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');
|
$this->assertEquals($result, $openssl, 'Failed asserting that the OpenSSL engine produced the correct result');
|
||||||
} else {
|
} else {
|
||||||
self::markTestSkipped('Unable to initialize OpenSSL engine');
|
self::markTestSkipped('Unable to initialize OpenSSL engine');
|
||||||
|
Loading…
Reference in New Issue
Block a user