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
6#[cfg(botan_ffi_20260303)]
7unsafe extern "C" {
8    pub fn botan_xof_init(xof: *mut botan_xof_t, xof_name: *const c_char, flags: u32) -> c_int;
9
10    pub fn botan_xof_copy_state(dest: *mut botan_xof_t, source: botan_xof_t) -> c_int;
11
12    pub fn botan_xof_block_size(xof: botan_xof_t, block_size: *mut usize) -> c_int;
13
14    pub fn botan_xof_name(xof: botan_xof_t, name: *mut c_char, name_len: *mut usize) -> c_int;
15
16    pub fn botan_xof_accepts_input(xof: botan_xof_t) -> c_int;
17
18    pub fn botan_xof_clear(xof: botan_xof_t) -> c_int;
19
20    pub fn botan_xof_update(xof: botan_xof_t, input: *const u8, in_len: usize) -> c_int;
21
22    pub fn botan_xof_output(xof: botan_xof_t, out: *mut u8, out_len: usize) -> c_int;
23
24    pub fn botan_xof_destroy(xof: botan_xof_t) -> c_int;
25}