in
{
assert (keys.length == plaintexts.length, "expected as much plaintexts as keys");
assert (keys.length == ciphertexts.length, "expected as much ciphertexts as keys");
if (ivs != null)
{
assert (keys.length == ivs.length, "expected as much ivs as keys");
}
}
Use this to test a stream cipher with multiple keys, plaintexts and ivs.