Exemplo n.º 1
0
        public Bytes Xor(Bytes bytes)
        {
            int minLength = Math.Min(_data.Length, bytes.Length);

            byte[] result = new byte[minLength];
            for (int i = 0; i < minLength; i++)
            {
                result[i] = (byte)(_data[i] ^ bytes.ToArray()[i]);
            }

            return(new Bytes(result));
        }
Exemplo n.º 2
0
 public Hex(Bytes data)
 {
     this.CreateFromBytes(data.ToArray());
 }