CryptoSys API
6.22.1
|
Password-based encryption. More...
Public Types | |
enum class | PrfAlg |
PRF algorithm. More... | |
Static Public Member Functions | |
static bvec_t | Kdf2 (int dklen, const std::string &password, const bvec_t &salt, int count, PrfAlg prfalg=PrfAlg::Hmac_Sha1) |
Derives a key of any length from a password using the PBKDF2 algorithm from PKCS#5 v2.1. More... | |
Password-based encryption.
|
strong |
|
static |
Derives a key of any length from a password using the PBKDF2 algorithm from PKCS#5 v2.1.
dklen | Required length of key in bytes |
password | Password |
salt | Salt in byte format |
count | Iteration count |
prfalg | Algorithm to use in PRF (default=HMAC-SHA-1) |