#Crypto #HKDF

hkdf

HMAC-based Extract-and-Expand Key Derivation Function (HKDF)

8 releases (breaking)

0.7.0 Oct 16, 2018
0.6.0 Aug 21, 2018
0.5.0 May 20, 2018
0.4.0 Mar 21, 2018
0.1.0 Jan 3, 2015

#55 in Cryptography

Download history 196/week @ 2018-12-20 112/week @ 2018-12-27 163/week @ 2019-01-03 286/week @ 2019-01-10 246/week @ 2019-01-17 185/week @ 2019-01-24 163/week @ 2019-01-31 163/week @ 2019-02-07 273/week @ 2019-02-14 303/week @ 2019-02-21 1145/week @ 2019-02-28 1520/week @ 2019-03-07 1772/week @ 2019-03-14 1464/week @ 2019-03-21 1113/week @ 2019-03-28

1,057 downloads per month
Used in 17 crates (12 directly)

MIT/Apache

10KB
59 lines

rust-hkdf creates.io Documentation

HMAC-based Extract-and-Expand Key Derivation Function (HKDF) for Rust.

Uses the Digest trait which specifies an interface common to digest functions, such as SHA-1, SHA-256, etc.

Installation

From crates.io:

[dependencies]
hkdf = "0.7"

Usage

See the example examples/main.rs or run it with cargo run --example main

Changelog

  • 0.7.0 - Update digest to 0.8, refactor for API changes, remove redundant generic-array crate.
  • 0.6.0 - remove std requirement. The expand signature has changed.
  • 0.5.0 - removed deprecated interface, fixed omitting HKDF salt.
  • 0.4.0 - RFC-inspired interface, Reduce heap allocation, remove unnecessary mut, derive Clone. deps: hex-0.3, benchmarks.
  • 0.3.0 - update dependencies: digest-0.7, hmac-0.5
  • 0.2.0 - support for rustc 1.20.0
  • 0.1.1 - fixes to support rustc 1.5.0
  • 0.1.0 - initial release

Authors

Vlad Filippov Brian Warner
Vlad Filippov Brian Warner

Dependencies

~231KB