Exemplo n.º 1
0
        public static unsafe Byte[] GetHash(Byte[] buffer, int offset, int count)
        {
            sha256 sha = new sha256();

            sha.Process(buffer, offset, count);
            return(sha.GetHash());
        }
Exemplo n.º 2
0
        public static unsafe Byte[] HashStream(Stream stream)
        {
            sha256 sha = new sha256();

            sha.ProcessStream(stream);
            return(sha.GetHash());
        }
Exemplo n.º 3
0
        public static unsafe void GetHash(Byte[] buffer, int offset, int count, Byte[] hash, int hashoffset)
        {
            sha256 sha = new sha256();

            sha.Process(buffer, offset, count);
            sha.GetHash(hash, hashoffset);
        }