private static byte[] _AddCheckSum(byte[] data)
        {
            var checkSum         = _GetCheckSum(data);
            var dataWithCheckSum = ByteArrayHelper.ConcatArrays(data, checkSum);

            return(dataWithCheckSum);
        }
Exemple #2
0
        public static Hash ConcatAndCompute(Hash hash1, Hash hash2, Hash hash3)
        {
            var bytes = ByteArrayHelper.ConcatArrays(
                ByteArrayHelper.ConcatArrays(hash1.ToByteArray(), hash2.ToByteArray()), hash3.ToByteArray());

            return(Hash.FromRawBytes(bytes));
        }
Exemple #3
0
        public static Hash ConcatAndCompute(Hash hash1, Hash hash2)
        {
            var bytes = ByteArrayHelper.ConcatArrays(hash1.ToByteArray(), hash2.ToByteArray());

            return(ComputeFrom(bytes));
        }