Esempio n. 1
0
 @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());
 }
Esempio n. 2
0
 /**
  * Returns the number of bits of the genome
  *
  * @return Number of bits of the chromosome
  */
 public int size(BitArray genome) {
   return genome.size();
 }