Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Member Functions | List of all members
HKDF< T > Class Template Reference

Extract-and-Expand Key Derivation Function (HKDF) More...

#include <hkdf.h>

Inheritance diagram for HKDF< T >:
[legend]
Collaboration diagram for HKDF< T >:
[legend]

Public Member Functions

size_t MaxDerivedKeyLength () const
 maximum number of bytes which can be produced under a secuirty context More...
 
bool Usesinfo () const
 
unsigned int DeriveKey (byte *derived, size_t derivedLen, const byte *secret, size_t secretLen, const byte *salt, size_t saltLen, const byte *info, size_t infoLen) const
 derive a key from secret More...
 
- Public Member Functions inherited from KeyDerivationFunction
virtual ~KeyDerivationFunction ()
 

Static Public Member Functions

static const char * StaticAlgorithmName ()
 

Protected Types

typedef byte NullVectorType[SALTSIZE]
 

Static Protected Member Functions

static const NullVectorTypeGetNullVector ()
 

Detailed Description

template<class T>
class HKDF< T >

Extract-and-Expand Key Derivation Function (HKDF)

Template Parameters
THashTransformation class
See also
Cryptographic Extraction and Key Derivation: The HKDF Scheme and HMAC-based Extract-and-Expand Key Derivation Function (HKDF)
Since
Crypto++ 5.6.3

Definition at line 36 of file hkdf.h.

Member Typedef Documentation

template<class T>
typedef byte HKDF< T >::NullVectorType[SALTSIZE]
protected

Definition at line 52 of file hkdf.h.

Member Function Documentation

template<class T >
unsigned int HKDF< T >::DeriveKey ( byte derived,
size_t  derivedLen,
const byte secret,
size_t  secretLen,
const byte salt,
size_t  saltLen,
const byte info,
size_t  infoLen 
) const
virtual

derive a key from secret

Implements KeyDerivationFunction.

Definition at line 60 of file hkdf.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
static const NullVectorType& HKDF< T >::GetNullVector ( )
inlinestaticprotected

Definition at line 53 of file hkdf.h.

Here is the caller graph for this function:

template<class T>
size_t HKDF< T >::MaxDerivedKeyLength ( ) const
inlinevirtual

maximum number of bytes which can be produced under a secuirty context

Implements KeyDerivationFunction.

Definition at line 45 of file hkdf.h.

Here is the caller graph for this function:

template<class T>
static const char* HKDF< T >::StaticAlgorithmName ( )
inlinestatic

Definition at line 41 of file hkdf.h.

template<class T>
bool HKDF< T >::Usesinfo ( ) const
inlinevirtual

Implements KeyDerivationFunction.

Definition at line 46 of file hkdf.h.

Here is the call graph for this function:


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