mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-03 20:38:29 +00:00
Tests: fix CS errors
This commit is contained in:
parent
de18148e80
commit
ce2bfd984e
@ -190,11 +190,11 @@ class Unit_Crypt_TripleDESTest extends PhpseclibTestCase
|
||||
// test special case lambda function error
|
||||
public function testCorrectSelfUseInLambda()
|
||||
{
|
||||
$td = new TripleDES( TripleDES::MODE_ECB );
|
||||
$td->setPreferredEngine( TripleDES::ENGINE_INTERNAL );
|
||||
for ( $i = 0; $i < 20; $i++ ) {
|
||||
$td->setKey( str_repeat( 'a', 20 ) . pack( 'V', mt_rand() ) );
|
||||
$td->encrypt( str_repeat( 'a', 32 ) );
|
||||
$td = new TripleDES(TripleDES::MODE_ECB);
|
||||
$td->setPreferredEngine(TripleDES::ENGINE_INTERNAL);
|
||||
for ($i = 0; $i < 20; $i++) {
|
||||
$td->setKey(str_repeat('a', 20) . pack('V', mt_rand()));
|
||||
$td->encrypt(str_repeat('a', 32));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user