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

            return(dataWithCheckSum);
        }
示例#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));
        }
示例#3
0
        public static Hash ConcatAndCompute(Hash hash1, Hash hash2)
        {
            var bytes = ByteArrayHelper.ConcatArrays(hash1.ToByteArray(), hash2.ToByteArray());

            return(ComputeFrom(bytes));
        }