Kagome
Polkadot Runtime Engine in C++17
kagome::crypto::Pbkdf2Provider Class Referenceabstract

#include <pbkdf2_provider.hpp>

Inheritance diagram for kagome::crypto::Pbkdf2Provider:
Collaboration diagram for kagome::crypto::Pbkdf2Provider:

Public Member Functions

virtual ~Pbkdf2Provider ()=default
 
virtual outcome::result< common::BufferderiveKey (gsl::span< const uint8_t > data, gsl::span< const uint8_t > salt, size_t iterations, size_t key_length) const =0
 derives key from password and salt More...
 

Detailed Description

derivation functionality

Definition at line 20 of file pbkdf2_provider.hpp.

Constructor & Destructor Documentation

virtual kagome::crypto::Pbkdf2Provider::~Pbkdf2Provider ( )
virtualdefault

Member Function Documentation

virtual outcome::result<common::Buffer> kagome::crypto::Pbkdf2Provider::deriveKey ( gsl::span< const uint8_t >  data,
gsl::span< const uint8_t >  salt,
size_t  iterations,
size_t  key_length 
) const
pure virtual

derives key from password and salt

Parameters
dataentropy or password
saltsalt
iterationsnumber of iterations
key_lengthlength of generated key
Returns
derived key

Implemented in kagome::crypto::Pbkdf2ProviderImpl.


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