Exemplo n.º 1
0
 public static byte[] Half(byte[] input, uint? prefix = null)
 {
     var hasher = new Sha512();
     if (prefix != null)
     {
         hasher.AddU32((uint) prefix);
     }
     hasher.Add(input);
     return hasher.Finish256();
 }
Exemplo n.º 2
0
        public static byte[] Half(byte[] input, uint?prefix = null)
        {
            var hasher = new Sha512();

            if (prefix != null)
            {
                hasher.AddU32((uint)prefix);
            }
            hasher.Add(input);
            return(hasher.Finish256());
        }