pub type NonceFn = Option<unsafe extern "C" fn(nonce32: *mut c_uchar, msg32: *const c_uchar, key32: *const c_uchar, algo16: *const c_uchar, data: *mut c_void, attempt: c_uint) -> c_int>;
Expand description
A nonce generation function.
Ordinary users of the library never need to see this type; the default nonce generation function should be sufficient for almost all usecases.
To use this type, you must write your own (unsafe) wrapper. It is unsafe because any secure implementation must dereference the passed-in raw pointers and/or call FFI functions.
Aliased Type§
pub enum NonceFn {
None,
Some(unsafe extern "C" fn(*mut u8, *const u8, *const u8, *const u8, *mut c_void, u32) -> i32),
}