Skip to main content

botan_sys/
lib.rs

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