HKDF and TLS 1.3 labeled key derivation.
Only the SHA-256 and SHA-384 cipher-suite hashes are supported.
Summary
Types
@type error() :: {:error, :unsupported_hash} | {:error, {:length_out_of_range, pos_integer()}} | {:error, {:label_length_out_of_range, {1, 249}}} | {:error, {:context_length_out_of_range, 255}} | {:error, {:invalid_transcript_hash_length, pos_integer()}}
@type hash() :: :sha256 | :sha384