throws KeyczarException {
if (generateParams.get("class").equals("crypter")) {
Crypter crypter = new Crypter(
getReader(algorithm, generateParams.get("cryptedKeySet"), generateParams.get("pubKey")));
if (generateParams.get("encoding").equals("encoded")) {
String ciphertext = crypter.encrypt(testData);
return ciphertext.getBytes();
} else if (generateParams.get("encoding").equals("unencoded")) {
byte[] ciphertext = crypter.encrypt(testData.getBytes());
return ciphertext;
} else {