Test/AES: don't test stuff with only one buffer

This commit is contained in:
terrafrost 2014-12-31 15:15:15 -06:00
parent f9451c826a
commit 50a0ae7b6e

View File

@ -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
public function testNonContinuousBufferBattery($op, $mode, $test)
{
if (count($test) == 1) {
return;
}
$iv = str_repeat('x', 16);
$key = str_repeat('a', 16);