Uses old Rust 2015
0.1.0 |
|
---|---|
0.0.6 |
|
0.0.3 |
|
0.0.1 |
|
#9 in #fixes
Used in bare-websocket
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.