#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 160/week @ 2018-08-21 104/week @ 2018-08-28 94/week @ 2018-09-04 119/week @ 2018-09-11 100/week @ 2018-09-18 136/week @ 2018-09-25 123/week @ 2018-10-02 72/week @ 2018-10-09 251/week @ 2018-10-16 358/week @ 2018-10-23 298/week @ 2018-10-30 226/week @ 2018-11-06 172/week @ 2018-11-13

798 downloads per month
Used in 8 crates (6 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

~235KB