1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#![allow(non_camel_case_types)]
#![cfg_attr(feature = "no-std", no_std)]

mod block;
mod cipher;
mod errors;
mod fpe;
mod hash;
mod kdf;
mod keywrap;
mod mac;
mod mp;
mod otp;
mod passhash;
mod pk_ops;
mod pubkey;
mod rng;
mod utils;
mod version;
mod x509;
mod zfec;

pub mod ffi_types {
    #[cfg(feature = "no-std")]
    pub use core::ffi::{c_char, c_int, c_uint, c_void};

    #[cfg(not(feature = "no-std"))]
    pub use std::os::raw::{c_char, c_int, c_uint, c_void};

    #[cfg(feature = "botan3")]
    pub type botan_view_ctx = *mut c_void;

    #[cfg(feature = "botan3")]
    pub type botan_view_bin_fn =
        extern "C" fn(view_ctx: botan_view_ctx, data: *const u8, len: usize) -> c_int;

    #[cfg(feature = "botan3")]
    pub type botan_view_str_fn =
        extern "C" fn(view_ctx: botan_view_ctx, data: *const c_char, len: usize) -> c_int;
}

pub use block::*;
pub use cipher::*;
pub use errors::*;
pub use fpe::*;
pub use hash::*;
pub use kdf::*;
pub use keywrap::*;
pub use mac::*;
pub use mp::*;
pub use otp::*;
pub use passhash::*;
pub use pk_ops::*;
pub use pubkey::*;
pub use rng::*;
pub use utils::*;
pub use version::*;
pub use x509::*;
pub use zfec::*;