}
public void doTestAlgo(String algo) {
System.out.println("testing: " + algo);
Crypto c = CryptoFactory.get(algo);
KeyGenerator kg = c.getKeyGenerator();
byte[] decodingKey = HexUtil.hexStringToByteArray(HexUtil.byteArrayToHexString(KeyHelper.getBytes(kg.getDecodingKey())));
byte[] encodingKey = HexUtil.hexStringToByteArray(HexUtil.byteArrayToHexString(KeyHelper.getBytes(kg.getEncodingKey())));
Object decKey = kg.getDecodingKey(decodingKey);
Object encKey = kg.getEncodingKey(encodingKey);
Encoder e = c.newEncoder(encKey);
Decoder d = c.newDecoder(decKey);