QCA::HKDF
QCA::HKDF Class Reference
#include <QtCrypto>
Inheritance diagram for QCA::HKDF:
Public Member Functions | |
HKDF (const HKDF &from) | |
HKDF (const QString &algorithm=QStringLiteral("sha256"), const QString &provider=QString()) | |
SymmetricKey | makeKey (const SecureArray &secret, const InitializationVector &salt, const InitializationVector &info, unsigned int keyLength) |
HKDF & | operator= (const HKDF &from) |
Public Member Functions inherited from QCA::Algorithm | |
Algorithm (const Algorithm &from) | |
void | change (const QString &type, const QString &provider) |
void | change (Provider::Context *c) |
Provider::Context * | context () |
const Provider::Context * | context () const |
Algorithm & | operator= (const Algorithm &from) |
Provider * | provider () const |
Provider::Context * | takeContext () |
QString | type () const |
Additional Inherited Members | |
Protected Member Functions inherited from QCA::Algorithm | |
Algorithm () | |
Algorithm (const QString &type, const QString &provider) | |
Detailed Description
- Since
- 2.3
HMAC-based extract-and-expand key derivation function
This class implements HMAC-based Extract-and-Expand Key Derivation Function, as specified in RFC5869.
Definition at line 1100 of file qca_basic.h.
Constructor & Destructor Documentation
◆ HKDF() [1/2]
|
explicit |
Standard constructor.
- Parameters
-
algorithm the name of the hashing algorithm to use provider the name of the provider to use, if available
◆ HKDF() [2/2]
QCA::HKDF::HKDF | ( | const HKDF & | from | ) |
Standard copy constructor.
- Parameters
-
from the KeyDerivationFunction to copy from
Member Function Documentation
◆ makeKey()
SymmetricKey QCA::HKDF::makeKey | ( | const SecureArray & | secret, |
const InitializationVector & | salt, | ||
const InitializationVector & | info, | ||
unsigned int | keyLength ) |
Generate the key from a specified secret, salt value, and an additional info.
- Note
- key length is ignored for some functions
- Parameters
-
secret the secret (password or passphrase) salt the salt to use info the info to use keyLength the length of key to return
- Returns
- the derived key
◆ operator=()
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:48:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:48:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.