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:
parent
09c03d0f75
commit
cf17141930
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user