View Source X963KDF (x963kdf v0.1.0)
ANSI X9.63 Key Derivation Function (KDF)
Summary
Functions
Derive a key from a shared secret using the ANSI X9.63 Key Derivation Function (KDF).
Types
@type alg() :: :crypto.sha1() | :crypto.sha2()
Functions
Derive a key from a shared secret using the ANSI X9.63 Key Derivation Function (KDF).
Parameters
alg
- the SHA-1 or SHA-2 hash function to useshared_secret
- the shared secretkey_length
- the length of the derived key in bytesopts
- additional options:shared_data
- additional shared data to include in the key derivation