Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | List of all members
KeyDerivationFunction Class Referenceabstract

abstract base class for key derivation function More...

#include <hkdf.h>

Inheritance diagram for KeyDerivationFunction:
[legend]

Public Member Functions

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

Detailed Description

abstract base class for key derivation function

Definition at line 18 of file hkdf.h.

Constructor & Destructor Documentation

virtual KeyDerivationFunction::~KeyDerivationFunction ( )
inlinevirtual

Definition at line 27 of file hkdf.h.

Member Function Documentation

virtual unsigned int KeyDerivationFunction::DeriveKey ( byte derived,
size_t  derivedLen,
const byte secret,
size_t  secretLen,
const byte salt,
size_t  saltLen,
const byte info = NULL,
size_t  infoLen = 0 
) const
pure virtual

derive a key from secret

Implemented in HKDF< T >.

Here is the caller graph for this function:

virtual size_t KeyDerivationFunction::MaxDerivedKeyLength ( ) const
pure virtual

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

Implemented in HKDF< T >.

virtual bool KeyDerivationFunction::Usesinfo ( ) const
pure virtual

Implemented in HKDF< T >.


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