module

HKDF

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

Constants

VERSION = "1.0.0"

Class methods

derive_key(salt : Bytes, ikm : Bytes, info : Bytes, length : Int32, hash_algo = OpenSSL::Algorithm::SHA256) : Bytes

Combined HKDF Extract-and-Expand

Source
expand(prk : Bytes, info : Bytes, length : Int32, hash_algo = OpenSSL::Algorithm::SHA256) : Bytes

HKDF Expand phase

Source
extract(salt : Bytes, ikm : Bytes, hash_algo = OpenSSL::Algorithm::SHA256) : Bytes

HKDF Extract phase

Source