botan_sys/
lib.rs

1#![no_std]
2#![allow(non_camel_case_types)]
3
4mod block;
5mod cipher;
6mod errors;
7mod fpe;
8mod hash;
9mod kdf;
10mod keywrap;
11mod mac;
12mod mp;
13mod otp;
14mod passhash;
15mod pk_ops;
16mod pubkey;
17mod rng;
18mod utils;
19mod version;
20mod x509;
21
22#[cfg(feature = "botan3")]
23mod zfec;
24
25pub mod ffi_types {
26    pub use core::ffi::{c_char, c_int, c_uint, c_void};
27
28    #[cfg(feature = "botan3")]
29    pub type botan_view_ctx = *mut c_void;
30
31    #[cfg(feature = "botan3")]
32    pub type botan_view_bin_fn =
33        extern "C" fn(view_ctx: botan_view_ctx, data: *const u8, len: usize) -> c_int;
34
35    #[cfg(feature = "botan3")]
36    pub type botan_view_str_fn =
37        extern "C" fn(view_ctx: botan_view_ctx, data: *const c_char, len: usize) -> c_int;
38}
39
40pub use block::*;
41pub use cipher::*;
42pub use errors::*;
43pub use fpe::*;
44pub use hash::*;
45pub use kdf::*;
46pub use keywrap::*;
47pub use mac::*;
48pub use mp::*;
49pub use otp::*;
50pub use passhash::*;
51pub use pk_ops::*;
52pub use pubkey::*;
53pub use rng::*;
54pub use utils::*;
55pub use version::*;
56pub use x509::*;
57
58#[cfg(feature = "botan3")]
59pub use zfec::*;