keyhole logo

Functions
hcrypto miscellaneous functions

Functions

int PKCS5_PBKDF2_HMAC (const void *password, size_t password_len, const void *salt, size_t salt_len, unsigned long iter, const EVP_MD *md, size_t keylen, void *key)
 
int PKCS5_PBKDF2_HMAC_SHA1 (const void *password, size_t password_len, const void *salt, size_t salt_len, unsigned long iter, size_t keylen, void *key)
 

Detailed Description

Function Documentation

◆ PKCS5_PBKDF2_HMAC()

int PKCS5_PBKDF2_HMAC ( const void *  password,
size_t  password_len,
const void *  salt,
size_t  salt_len,
unsigned long  iter,
const EVP_MD *  md,
size_t  keylen,
void *  key 
)

As descriped in PKCS5, convert a password, salt, and iteration counter into a crypto key.

Parameters
passwordPassword.
password_lenLength of password.
saltSalt
salt_lenLength of salt.
iteriteration counter.
mdthe digest function.
keylenthe output key length.
keythe output key.
Returns
1 on success, non 1 on failure.

◆ PKCS5_PBKDF2_HMAC_SHA1()

int PKCS5_PBKDF2_HMAC_SHA1 ( const void *  password,
size_t  password_len,
const void *  salt,
size_t  salt_len,
unsigned long  iter,
size_t  keylen,
void *  key 
)

As descriped in PKCS5, convert a password, salt, and iteration counter into a crypto key.

Parameters
passwordPassword.
password_lenLength of password.
saltSalt
salt_lenLength of salt.
iteriteration counter.
keylenthe output key length.
keythe output key.
Returns
1 on success, non 1 on failure.

Generated on Tue Nov 15 2022 14:04:26 for Heimdal crypto library by doxygen 1.9.1