Qt Cryptographic Architecture
|
#include <QtCrypto>
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) |
![]() | |
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 | |
![]() | |
Algorithm () | |
Algorithm (const QString &type, const QString &provider) | |
HMAC-based extract-and-expand key derivation function
This class implements HMAC-based Extract-and-Expand Key Derivation Function, as specified in RFC5869.
|
explicit |
Standard constructor.
algorithm | the name of the hashing algorithm to use |
provider | the name of the provider to use, if available |
QCA::HKDF::HKDF | ( | const HKDF & | from | ) |
Standard copy constructor.
from | the KeyDerivationFunction to copy from |
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.
secret | the secret (password or passphrase) |
salt | the salt to use |
info | the info to use |
keyLength | the length of key to return |