#Crypto #HKDF

hkdf

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

7 releases (breaking)

0.6.0 Aug 21, 2018
0.5.0 May 20, 2018
0.4.0 Mar 21, 2018
0.3.0 Nov 29, 2017
0.1.0 Jan 3, 2015

#51 in Cryptography

Download history 474/week @ 2018-05-29 329/week @ 2018-06-05 153/week @ 2018-06-12 247/week @ 2018-06-19 257/week @ 2018-06-26 127/week @ 2018-07-03 81/week @ 2018-07-10 133/week @ 2018-07-17 83/week @ 2018-07-24 100/week @ 2018-07-31 200/week @ 2018-08-07 138/week @ 2018-08-14 72/week @ 2018-08-21

798 downloads per month
Used in 5 crates (4 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.6"

Usage

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

Changelog

  • 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

~216KB