mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 01:28:27 +00:00
Merge branch '2.0'
This commit is contained in:
commit
6a7e0210bc
@ -189,4 +189,15 @@ class Unit_Crypt_TripleDESTest extends PhpseclibTestCase
|
|||||||
$this->assertEquals($result, $expected, "Failed asserting inner chainin worked correctly in $engineName engine");
|
$this->assertEquals($result, $expected, "Failed asserting inner chainin worked correctly in $engineName engine");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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 ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user