// Implements test case NDC-6.
@Test(expected=DecryptionFailureException.class)
public void test_decrypt_bad_key()
throws NtruException
{
NtruEncryptTestVector test = tests[0];
// Generate a new key. The test vector key was generated with
// test.keygenSeed, so for this new key we will seed the PRNG
// with test.encryptSeed, which should != keygenSeed.
Random r = new Random(test.encryptSeed);
NtruEncryptKey k = NtruEncryptKey.genKey(test.oid, r);