crypto.sha1_stream

crypto

sha1_stream() -> hasher

Start a SHA-1 hash fed in pieces

hasher:update(data) feeds the next piece and returns the hasher. hasher:finish() returns the 20-byte hash of every byte fed, the same sha1 gives for them joined. A call after finish raises.