Kagome
Polkadot Runtime Engine in C++17
pbkdf2_provider_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CRYPTO_PBKDF2_PROVIDER_IMPL_HPP
7 #define KAGOME_CRYPTO_PBKDF2_PROVIDER_IMPL_HPP
8 
10 
11 namespace kagome::crypto {
12 
14  public:
15  ~Pbkdf2ProviderImpl() override = default;
16 
17  outcome::result<common::Buffer> deriveKey(gsl::span<const uint8_t> data,
18  gsl::span<const uint8_t> salt,
19  size_t iterations,
20  size_t key_length) const override;
21  };
22 
23 } // namespace kagome::crypto
24 
25 #endif // KAGOME_CRYPTO_PBKDF2_PROVIDER_IMPL_HPP
~Pbkdf2ProviderImpl() override=default
outcome::result< common::Buffer > deriveKey(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