@Override public void encodeDecodeTest() { BitArray result = cryptosystem.encode(key, input); assertNotEquals(input.toString(), result.toString()); result = cryptosystem.decode(key, result); assertEquals(input.toString(), result.toString()); }
/** * Returns the number of bits of the genome * * @return Number of bits of the chromosome */ public int size(BitArray genome) { return genome.size(); }