mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
Test/AES: don't test stuff with only one buffer
This commit is contained in:
parent
f9451c826a
commit
50a0ae7b6e
@ -212,6 +212,10 @@ abstract class Unit_Crypt_AES_TestCase extends PhpseclibTestCase
|
|||||||
// pretty much the same as testContinuousBufferBattery with the caveat that continuous mode is not enabled
|
// pretty much the same as testContinuousBufferBattery with the caveat that continuous mode is not enabled
|
||||||
public function testNonContinuousBufferBattery($op, $mode, $test)
|
public function testNonContinuousBufferBattery($op, $mode, $test)
|
||||||
{
|
{
|
||||||
|
if (count($test) == 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$iv = str_repeat('x', 16);
|
$iv = str_repeat('x', 16);
|
||||||
$key = str_repeat('a', 16);
|
$key = str_repeat('a', 16);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user