Kagome
Polkadot Runtime Engine in C++17
kagome::crypto::Pbkdf2ProviderImpl Class Reference

#include <pbkdf2_provider_impl.hpp>

Inheritance diagram for kagome::crypto::Pbkdf2ProviderImpl:
Collaboration diagram for kagome::crypto::Pbkdf2ProviderImpl:

Public Member Functions

 ~Pbkdf2ProviderImpl () override=default
 
outcome::result< common::BufferderiveKey (gsl::span< const uint8_t > data, gsl::span< const uint8_t > salt, size_t iterations, size_t key_length) const override
 derives key from password and salt More...
 
- Public Member Functions inherited from kagome::crypto::Pbkdf2Provider
virtual ~Pbkdf2Provider ()=default
 

Detailed Description

Definition at line 13 of file pbkdf2_provider_impl.hpp.

Constructor & Destructor Documentation

kagome::crypto::Pbkdf2ProviderImpl::~Pbkdf2ProviderImpl ( )
overridedefault

Member Function Documentation

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

derives key from password and salt

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

Implements kagome::crypto::Pbkdf2Provider.

Definition at line 12 of file pbkdf2_provider_impl.cpp.


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