assert(verifier.verify(testData.getBytes(), readOutput(output)));
} else {
throw new KeyczarException("Expects encoded or unencoded in parameters");
}
} else if (testParams.get("class").equals("verifier")) {
UnversionedVerifier verifier = new UnversionedVerifier(
getReader(algorithm, generateParams.get("cryptedKeySet"), testParams.get("pubKey")));
if (generateParams.get("encoding").equals("encoded")) {
assert(verifier.verify(testData, new String(readOutput(output))));
} else if (generateParams.get("encoding").equals("unencoded")) {
assert(verifier.verify(testData.getBytes(), readOutput(output)));
} else {
throw new KeyczarException("Expects encoded or unencoded in parameters");
}
} else {
throw new KeyczarException("Expects signer or verifier in parameters");