1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-27 12:55:58 +01:00

Tests/TripleDES: disable padding

This commit is contained in:
terrafrost 2014-12-29 10:25:31 -06:00
parent 09c03d0f75
commit cf17141930

View File

@ -106,6 +106,7 @@ class Unit_Crypt_TripleDESTest extends PhpseclibTestCase
}
$des->setPreferredEngine($engine);
$des->setKey($key);
$des->disablePadding();
$result = $des->encrypt($plaintext);
$plaintext = bin2hex($plaintext);
$this->assertEquals($result, $expected, "Failed asserting that $plaintext yielded expected output in $engineName engine");