Exemplo n.º 1
0
        public static byte[] ComputeHash(string hashUri, byte[] data)
        {
            var digest = GetHashByUri(hashUri);

            return(DigestHelper.ComputeHash(digest, data));
        }
Exemplo n.º 2
0
 public override byte[] GetDigestedOutput(IDigest hash)
 {
     // no null check, MS throws a NullReferenceException here
     return(DigestHelper.ComputeHash(hash, ((Stream)GetOutput())));
 }
Exemplo n.º 3
0
        public static byte[] ComputeHash(string hashUri, Stream s)
        {
            var digest = GetHashByUri(hashUri);

            return(DigestHelper.ComputeHash(digest, s));
        }