private static byte[] _AddCheckSum(byte[] data) { var checkSum = _GetCheckSum(data); var dataWithCheckSum = ByteArrayHelper.ConcatArrays(data, checkSum); return(dataWithCheckSum); }
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)); }
public static Hash ConcatAndCompute(Hash hash1, Hash hash2) { var bytes = ByteArrayHelper.ConcatArrays(hash1.ToByteArray(), hash2.ToByteArray()); return(ComputeFrom(bytes)); }