kcapi_pbkdf — Password-based Key Derivation Function
int32_t kcapi_pbkdf ( | const char * hashname, |
const uint8_t * pw, | |
uint32_t pwlen, | |
const uint8_t * salt, | |
uint32_t saltlen, | |
uint32_t count, | |
uint8_t * key, | |
uint32_t keylen) ; |
hashname
[in] kernel crypto API name of a keyed hash (e.g. hmac(sha1))
pw
[in] Password a key shall be derived from
pwlen
[in] Length of password string
salt
[in] Salt as defined in SP800-132
saltlen
[in] Length of salt buffer
count
[in] Numbers of iterations to be performed for the PBKDF
key
[out] Buffer to store the generated key in
keylen
[in] Size of the key to be generated (i.e. length of the key buffer)