botan_sys/passhash.rs
1use crate::ffi_types::{c_char, c_int};
2
3use crate::rng::botan_rng_t;
4
5extern "C" {
6
7 pub fn botan_bcrypt_generate(
8 out: *mut u8,
9 out_len: *mut usize,
10 password: *const c_char,
11 rng: botan_rng_t,
12 work_factor: usize,
13 flags: u32,
14 ) -> c_int;
15
16 pub fn botan_bcrypt_is_valid(pass: *const c_char, hash: *const c_char) -> c_int;
17
18}