1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-12-02 17:48:00 +01:00

Merge branch '2.0'

This commit is contained in:
terrafrost 2017-07-16 12:10:37 -05:00
commit 2b80803042

View File

@ -195,9 +195,9 @@ class Unit_Crypt_TripleDESTest extends PhpseclibTestCase
{
$td = new TripleDES('ecb');
$td->setPreferredEngine('Eval');
for ( $i = 0; $i < 20; $i++ ) {
$td->setKey( str_repeat( 'a', 20 ) . pack( 'V', mt_rand() ) );
$td->encrypt( str_repeat( 'a', 32 ) );
for ($i = 0; $i < 20; $i++) {
$td->setKey(str_repeat('a', 20) . pack('V', mt_rand()));
$td->encrypt(str_repeat('a', 32));
}
}
}