mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-03 10:07:47 +01:00
Merge branch '2.0'
This commit is contained in:
commit
2b80803042
@ -195,9 +195,9 @@ class Unit_Crypt_TripleDESTest extends PhpseclibTestCase
|
|||||||
{
|
{
|
||||||
$td = new TripleDES('ecb');
|
$td = new TripleDES('ecb');
|
||||||
$td->setPreferredEngine('Eval');
|
$td->setPreferredEngine('Eval');
|
||||||
for ( $i = 0; $i < 20; $i++ ) {
|
for ($i = 0; $i < 20; $i++) {
|
||||||
$td->setKey( str_repeat( 'a', 20 ) . pack( 'V', mt_rand() ) );
|
$td->setKey(str_repeat('a', 20) . pack('V', mt_rand()));
|
||||||
$td->encrypt( str_repeat( 'a', 32 ) );
|
$td->encrypt(str_repeat('a', 32));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user