logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_pbkdf - Password-based Key Derivation Function

Arguments

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)

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

       This function is an implementation of the PBKDF as defined in SP800-132.

       return 0 upon success; a negative errno-style error code if an error occurred

Name

       kcapi_pbkdf - Password-based Key Derivation Function

Synopsis

ssize_tkcapi_pbkdf(constchar*hashname,constuint8_t*pw,uint32_tpwlen,constuint8_t*salt,size_tsaltlen,uint32_tcount,uint8_t*key,size_tkeylen);

See Also