HAP.Crypto.HKDF (HAP v0.1.0) View Source

Functions to help with key derivation

Link to this section Summary

Functions

Generates a session key from provided parameters. Uses the SHA-512 as HMAC

Link to this section Types

Specs

ikm() :: binary()

Specs

info() :: binary()

Specs

salt() :: binary()

Specs

session_key() :: binary()

Link to this section Functions

Link to this function

generate(ikm, salt, info)

View Source

Specs

generate(ikm(), salt(), info()) :: {:ok, session_key()}

Generates a session key from provided parameters. Uses the SHA-512 as HMAC

Returns {:ok, session_key}