Virgil Security Crypto library
2.4.6
|
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... | |
Implements HMAC-based Extract-and-Expand Key Derivation Function (RFC 5869)
virgil::crypto::foundation::VirgilHKDF::VirgilHKDF | ( | VirgilHash::Algorithm | hashAlgorithm | ) |
Define parameters for HKDF algorithm.
hashAlgorithm | - underlying hash algorithm. |
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.
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. |