QCA::HKDF

Search for usage in LXR

#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)
 
HKDFoperator= (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::Contextcontext ()
 
const Provider::Contextcontext () const
 
Algorithmoperator= (const Algorithm &from)
 
Providerprovider () const
 
Provider::ContexttakeContext ()
 
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]

QCA::HKDF::HKDF ( const QString & algorithm = QStringLiteral("sha256"),
const QString & provider = QString() )
explicit

Standard constructor.

Parameters
algorithmthe name of the hashing algorithm to use
providerthe name of the provider to use, if available

◆ HKDF() [2/2]

QCA::HKDF::HKDF ( const HKDF & from)

Standard copy constructor.

Parameters
fromthe 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
secretthe secret (password or passphrase)
saltthe salt to use
infothe info to use
keyLengththe length of key to return
Returns
the derived key

◆ operator=()

HKDF & QCA::HKDF::operator= ( const HKDF & from)

Assignment operator.

Copies the state (including key) from one HKDF to another

Parameters
fromthe HKDF to assign from

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 Oct 11 2024 12:07:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.