View Source ecies_kdf (ecies v1.1.0)

This module contains standard key derivation functions.

Summary

Functions

NIST SP 800-56 Concatenation Key Derivation Function (see section 5.8.1).

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

The ANSI-X9.63-KDF key derivation function.

Functions

Link to this function

concat_kdf(Hash, Key, Info, Length)

View Source
-spec concat_kdf(Hash, Key, Info, Length) -> Result
              when
                  Hash :: atom(),
                  Key :: binary(),
                  Info :: binary(),
                  Length :: pos_integer(),
                  Result :: binary().
NIST SP 800-56 Concatenation Key Derivation Function (see section 5.8.1).
Link to this function

hkdf(Hash, Key, Salt, Info, Length)

View Source
-spec hkdf(Hash, Key, Salt, Info, Length) -> Result
        when
            Hash :: atom(),
            Key :: binary(),
            Salt :: binary(),
            Info :: binary(),
            Length :: pos_integer(),
            Result :: binary().

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

See RFC 5869 and RFC 8418
Link to this function

kdf(Hash, Key, Info, Length)

View Source
-spec kdf(Hash, Key, Info, Length) -> Result
       when
           Hash :: atom(),
           Key :: binary(),
           Info :: binary(),
           Length :: pos_integer(),
           Result :: binary().

The ANSI-X9.63-KDF key derivation function.

See RFC 8418