Map<String, String> output, String algorithm, Map<String, String> generateParams,
Map<String, String> testParams) throws KeyczarException {
Crypter crypter = new Crypter(
getReader(algorithm, generateParams.get("cryptedKeySet"), ""));
if (generateParams.get("encoding").equals("encoded")) {
String plaintext = crypter.decrypt(new String(readOutput(output)));
assert(plaintext.equals(testData));
} else if (generateParams.get("encoding").equals("unencoded")) {
byte[] plaintext = crypter.decrypt(readOutput(output));
assert((new String(plaintext)).equals(testData));
} else {