lib/crypto: Introduce hamming distance on Bytes