int secureHash(int x){
  Arrays.fill(data,(byte)0);
  writeInt(data,0,x);
  aes.encrypt(data,0,16);
  return readInt(data,0);
}

int secureHash ( int x ) { Arrays . fill ( data , ( byte ) 0 ) ; writeInt ( data , 0 , x ) ; aes . encrypt ( data , 0 , 16 ) ; return readInt ( data , 0 ) ; }
calculate a hash using aes .
