#sha-1 #hasher #traits #fixes #hash

yanked sha1-hasher

Minimal implementation of SHA1 for Rust (with fixes and Hasher trait implementation)

Uses old Rust 2015

0.1.0 Apr 29, 2015
0.0.6 Mar 23, 2015
0.0.3 Feb 23, 2015
0.0.1 Jan 11, 2015

#9 in #fixes


Used in bare-websocket

BSD-3-Clause

9KB
196 lines

rust-sha1-hasher

Minimal implementation of SHA1 for Rust. This might go away in the future if rust-crypto or some libraries like that split into smaller parts.

Right now SHA1 is quite frequently used and many things want to have an implementation of it, that does not pull in too much other stuff.

This is largely based on the hash code in crypto-rs by Koka El Kiwi.

This fork also adds some fixes for long data hashing (original version has bug with hashing data built with several update() calls) and reimplements functionality using Hash and Hasher traits from Rust's standard lib, making it more composable.

No runtime deps