OID oid,
String pubFileName,
String privFileName)
throws IOException, NtruException
{
NtruEncryptKey k = NtruEncryptKey.genKey(oid, prng);
FileOutputStream pubFile = new FileOutputStream(pubFileName);
pubFile.write(k.getPubKey());
pubFile.close();
FileOutputStream privFile = new FileOutputStream(privFileName);
privFile.write(k.getPrivKey());
privFile.close();
}