Skip to main content

botan_sys/
xof.rs

1use crate::ffi_types::{c_char, c_int};
2
3pub enum botan_xof_struct {}
4pub type botan_xof_t = *mut botan_xof_struct;
5
6botan_ffi_functions! {
7    #[cfg(botan_ffi_20260303)]
8    pub fn botan_xof_init(xof: *mut botan_xof_t, xof_name: *const c_char, flags: u32) -> c_int;
9
10    #[cfg(botan_ffi_20260303)]
11    pub fn botan_xof_copy_state(dest: *mut botan_xof_t, source: botan_xof_t) -> c_int;
12
13    #[cfg(botan_ffi_20260303)]
14    pub fn botan_xof_block_size(xof: botan_xof_t, block_size: *mut usize) -> c_int;
15
16    #[cfg(botan_ffi_20260303)]
17    pub fn botan_xof_name(xof: botan_xof_t, name: *mut c_char, name_len: *mut usize) -> c_int;
18
19    #[cfg(botan_ffi_20260303)]
20    pub fn botan_xof_accepts_input(xof: botan_xof_t) -> c_int;
21
22    #[cfg(botan_ffi_20260303)]
23    pub fn botan_xof_clear(xof: botan_xof_t) -> c_int;
24
25    #[cfg(botan_ffi_20260303)]
26    pub fn botan_xof_update(xof: botan_xof_t, input: *const u8, in_len: usize) -> c_int;
27
28    #[cfg(botan_ffi_20260303)]
29    pub fn botan_xof_output(xof: botan_xof_t, out: *mut u8, out_len: usize) -> c_int;
30
31    #[cfg(botan_ffi_20260303)]
32    pub fn botan_xof_destroy(xof: botan_xof_t) -> c_int;
33}