/hkdf_erlang

An implementation of HKDF in Erlang.

Primary LanguageErlangApache License 2.0Apache-2.0

HKDF

GitHub Workflow Status Erlang Hex.pm

An implementation of HKDF in Erlang.

Usage

derive key

OKM = hkdf:derive(sha384, <<"Never gonna give you up">>, 42).

extract key

PRK = hkdf:extract(sha384, <<"Never gonna give you up">>).

expand key

PRK = hkdf:extract(sha384, <<"Never gonna give you up">>).
OKM = hkdf:expand(sha384, PRK, 42).