public static unsafe Byte[] GetHash(Byte[] buffer, int offset, int count) { sha1 sha = new sha1(); sha.Process(buffer, offset, count); return(sha.GetHash()); }
public static unsafe Byte[] HashStream(Stream stream) { sha1 sha = new sha1(); sha.ProcessStream(stream); return(sha.GetHash()); }
public static unsafe void GetHash(Byte[] buffer, int offset, int count, Byte[] hash, int hashoffset) { sha1 sha = new sha1(); sha.Process(buffer, offset, count); sha.GetHash(hash, hashoffset); }