10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
LibcryptoPBKDF2 Class Reference
Inheritance diagram for LibcryptoPBKDF2:
tenduke::crypto::PBKDF2

Public Member Functions

std::unique_ptr<::tenduke::crypto::aes::AESSecretKeyderiveAES256Key (const ::tenduke::utl::DataSpan &password, const ::tenduke::utl::DataSpan &salt, std::size_t iterationCount) const override
 Generates an AES256 using PBKDF2 to derive the key from password and salt.
std::unique_ptr<::tenduke::crypto::aes::AESSecretKeyderiveAESKey (const ::tenduke::utl::DataSpan &password, const ::tenduke::utl::DataSpan &salt, std::size_t iterationCount, std::size_t numBits) const
 Derives an AES secret key from a password and salt.

Member Function Documentation

◆ deriveAES256Key()

std::unique_ptr<::AESSecretKey > tenduke::crypto::libcrypto::LibcryptoPBKDF2::deriveAES256Key ( const ::tenduke::utl::DataSpan & password,
const ::tenduke::utl::DataSpan & salt,
std::size_t iterationCount ) const
overridevirtual

Generates an AES256 using PBKDF2 to derive the key from password and salt.

Parameters
passwordpassword
saltsalt
iterationCountiteration count
Returns
AES256 key

Implements tenduke::crypto::PBKDF2.

◆ deriveAESKey()

std::unique_ptr<::AESSecretKey > tenduke::crypto::libcrypto::LibcryptoPBKDF2::deriveAESKey ( const ::tenduke::utl::DataSpan & password,
const ::tenduke::utl::DataSpan & salt,
std::size_t iterationCount,
std::size_t numBits ) const

Derives an AES secret key from a password and salt.

Parameters
passwordpassword
saltsalt
iterationCountiteration count
numBitsnumber of bits in the derived key
Returns
derived key

The documentation for this class was generated from the following files:
  • core/services/default/src/crypto/kdf/LibcryptoPBKDF2.h
  • core/services/default/src/crypto/kdf/LibcryptoPBKDF2.cpp