PBKDF2 key derivation implementation. More...
PBKDF2 key derivation implementation.
Definition in file pbkdf2.h.
#include "hashes/sha256.h"
Go to the source code of this file.
Macros | |
#define | PBKDF2_KEY_SIZE SHA256_DIGEST_LENGTH |
PBKDF2 key size length. More... | |
Functions | |
void | pbkdf2_sha256 (const uint8_t *password, size_t password_len, const uint8_t *salt, size_t salt_len, int iterations, uint8_t *output) |
Create a key from a password and hash using PBKDF2. More... | |
#define PBKDF2_KEY_SIZE SHA256_DIGEST_LENGTH |
void pbkdf2_sha256 | ( | const uint8_t * | password, |
size_t | password_len, | ||
const uint8_t * | salt, | ||
size_t | salt_len, | ||
int | iterations, | ||
uint8_t * | output | ||
) |
Create a key from a password and hash using PBKDF2.
[in] | password | password pointer |
[in] | password_len | length of password |
[in] | salt | salt pointer |
[in] | salt_len | salt length, recommended 64bit |
[in] | iterations | number of rounds. Must be >1. NIST’s detailed guide (Appendix A.2.2), recommended 10000 |
[out] | output | array of size PBKDF2_KEY_SIZE |