#[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 a struct libreauth_pass_cfg
  • pass: password to hash
  • dest: buffer that will hold the string representing the hash according LibreAuth’s PHC notation
  • dest_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.