riot_sys::bindgen

Function pbkdf2_sha256

Source
pub unsafe extern "C" fn pbkdf2_sha256(
    password: *const c_void,
    password_len: size_t,
    salt: *const c_void,
    salt_len: size_t,
    iterations: c_int,
    output: *mut u8,
)
Expand description

@brief Create a key from a password and hash using PBKDF2.

@param[in] password password pointer @param[in] password_len length of password @param[in] salt salt pointer @param[in] salt_len salt length, recommended 64bit @param[in] iterations number of rounds. Must be >1. NIST’s detailed guide (Appendix A.2.2), recommended 10000 @param[out] output array of size PBKDF2_KEY_SIZE