#pbkdf2 #binding #hmac-sha1 #faster #u8 #hmac-sha256 #hmac-sha512

sys fastpbkdf2

A rust binding for fastpbkdf2. This is a PBKDF2 with HMAC-SHA1, HMAC-SHA256 and HMAC-SHA512 and is faster than other implementations.

1 unstable release

Uses old Rust 2015

0.1.0 Oct 11, 2015

#8 in #pbkdf2

Download history 47/week @ 2024-03-12 25/week @ 2024-03-19 32/week @ 2024-03-26 54/week @ 2024-04-02 20/week @ 2024-04-09 28/week @ 2024-04-16 22/week @ 2024-04-23 17/week @ 2024-04-30 28/week @ 2024-05-07 24/week @ 2024-05-14 26/week @ 2024-05-21 24/week @ 2024-05-28 20/week @ 2024-06-04 16/week @ 2024-06-11 18/week @ 2024-06-18 15/week @ 2024-06-25

73 downloads per month
Used in 2 crates

CC0 license

41KB
809 lines

rust-fastpbkdf2

This is a rust binding for fastpbkdf2.

Build Status

Interface

pub fn pbkdf2_hmac_sha1(password: &[u8], salt: &[u8], iterations: u32, out: &mut[u8]);
pub fn pbkdf2_hmac_sha256(password: &[u8], salt: &[u8], iterations: u32, out: &mut[u8]);
pub fn pbkdf2_hmac_sha512(password: &[u8], salt: &[u8], iterations: u32, out: &mut[u8]);

Performance

Hash rust-fastpbkdf2 ring rust-crypto
SHA1 380ms 5299ms (13.9x) 41015ms (108x)
SHA256 855ms 8244ms (9.6x) 71521ms (84x)
SHA512 1329ms 15172ms (11.4x) 81378ms (61x)

On Intel i3-2100T CPU @ 2.50GHz in 64-bit mode, 220 iterations.

Building and testing

You'll need OpenSSL for fastpbkdf2. cargo build builds, cargo test runs tests.

License

CC0.

Author

Joseph Birr-Pixton jpixton@gmail.com

Dependencies

~54KB