// throws exception on error.
boolean runFullTest(
OID oid)
throws NtruException
{
NtruEncryptKey keys = NtruEncryptKey.genKey(oid, defaultPrng);
// Do encryption.
byte m[] = new byte[10];
byte ciphertext[] = keys.encrypt(m, defaultPrng);
// Do decryption.
byte m2[] = keys.decrypt(ciphertext);
// Compare
return Arrays.equals(m, m2);
}