mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-20 04:00:55 +00: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->setPreferredEngine($engine);
|
||||||
$des->setKey($key);
|
$des->setKey($key);
|
||||||
|
$des->disablePadding();
|
||||||
$result = $des->encrypt($plaintext);
|
$result = $des->encrypt($plaintext);
|
||||||
$plaintext = bin2hex($plaintext);
|
$plaintext = bin2hex($plaintext);
|
||||||
$this->assertEquals($result, $expected, "Failed asserting that $plaintext yielded expected output in $engineName engine");
|
$this->assertEquals($result, $expected, "Failed asserting that $plaintext yielded expected output in $engineName engine");
|
||||||
|
Loading…
Reference in New Issue
Block a user