Virgil Security Crypto library  2.6.3
Public Member Functions | List of all members
virgil::crypto::foundation::VirgilHKDF Class Reference

Implements HMAC-based Extract-and-Expand Key Derivation Function (RFC 5869) More...

#include <VirgilHKDF.h>

Public Member Functions

 VirgilHKDF (VirgilHash::Algorithm hashAlgorithm)
 Define parameters for HKDF algorithm. More...
 
virgil::crypto::VirgilByteArray derive (const virgil::crypto::VirgilByteArray &in, const virgil::crypto::VirgilByteArray &salt, const virgil::crypto::VirgilByteArray &info, size_t outSize) const
 Derive key from the given key material and additional options. More...
 

Detailed Description

Implements HMAC-based Extract-and-Expand Key Derivation Function (RFC 5869)

See also
https://tools.ietf.org/html/rfc5869

Constructor & Destructor Documentation

virgil::crypto::foundation::VirgilHKDF::VirgilHKDF ( VirgilHash::Algorithm  hashAlgorithm)

Define parameters for HKDF algorithm.

Parameters
hashAlgorithm- underlying hash algorithm.

Member Function Documentation

virgil::crypto::VirgilByteArray virgil::crypto::foundation::VirgilHKDF::derive ( const virgil::crypto::VirgilByteArray in,
const virgil::crypto::VirgilByteArray salt,
const virgil::crypto::VirgilByteArray info,
size_t  outSize 
) const

Derive key from the given key material and additional options.

Parameters
in- input sequence (key material).
salt- optional salt value (a non-secret random value).
info- optional context and application specific information.
outSize- size of the output sequence.
Returns
Output sequence.
Note
This function make sense only for HKDF algorithm.

The documentation for this class was generated from the following file: