Function libreauth::pass::libreauth_pass_hash
source · #[no_mangle]
pub unsafe extern "C" fn libreauth_pass_hash(
cfg: *const PassCfg,
pass: *const c_char,
dest: *mut u8,
dest_len: size_t
) -> ErrorCode
Expand description
[C binding] Hash a password according to the given configuration and stores it in the supplied buffer.
Parameters
cfg
: pointer to astruct libreauth_pass_cfg
pass
: password to hashdest
: buffer that will hold the string representing the hash according LibreAuth’s PHC notationdest_len
: buffer’s size, in bytes
Safety
This function is a C binding and is therefore unsafe. It is not meant to be used in Rust.