else if (args[0].equals("-encrypt"))
{
if (args.length != 3) usage();
// Setup PRNG
Random prng = createSeededRandom();
NtruEncryptKey pubKey = loadKey(pubkeyFile);
encryptFile(pubKey, prng, args[1], args[2]);
}
else if (args[0].equals("-decrypt"))
{
if (args.length != 3) usage();
NtruEncryptKey privKey = loadKey(privkeyFile);
decryptFile(privKey, args[1], args[2]);
}
else
usage();
}