throws NtruException
{
for (int t=0; t<tests.length; t++)
{
KeyParams keyParams = KeyParams.getKeyParams(tests[t].oid);
NtruEncryptKey keys = new NtruEncryptKey(tests[t].oid);
keys.h = new FullPolynomial(tests[t].h);
byte data[] = new byte[tests[t].m.length + tests[t].b.length + 92];
java.util.Arrays.fill(data, (byte) 23);
int mOffset = 33;
int bOffset = 72;
System.arraycopy(tests[t].m, 0, data, mOffset, tests[t].m.length);
System.arraycopy(tests[t].b, 0, data, bOffset, tests[t].b.length);
byte sData[] = keys.form_sData(
data, mOffset, tests[t].m.length, data, bOffset);
assertArrayEquals(tests[t].sData, sData);
}
}