module HKDF
Overview
HMAC-based Extract-and-Expand Key Derivation Function (HKDF)
Defined in:
hkdf.crConstant Summary
-
VERSION =
"1.0.0"
Class Method Summary
-
.derive_key(salt : Bytes, ikm : Bytes, info : Bytes, length : Int32, hash_algo = OpenSSL::Algorithm::SHA256) : Bytes
Combined HKDF Extract-and-Expand
-
.expand(prk : Bytes, info : Bytes, length : Int32, hash_algo = OpenSSL::Algorithm::SHA256) : Bytes
HKDF Expand phase
-
.extract(salt : Bytes, ikm : Bytes, hash_algo = OpenSSL::Algorithm::SHA256) : Bytes
HKDF Extract phase
Class Method Detail
def self.derive_key(salt : Bytes, ikm : Bytes, info : Bytes, length : Int32, hash_algo = OpenSSL::Algorithm::SHA256) : Bytes
#
Combined HKDF Extract-and-Expand
def self.expand(prk : Bytes, info : Bytes, length : Int32, hash_algo = OpenSSL::Algorithm::SHA256) : Bytes
#
HKDF Expand phase
HKDF Extract phase