1#![allow(clippy::multiple_crate_versions)]
12#![allow(clippy::missing_safety_doc)]
13#![allow(non_snake_case)]
15
16#[allow(
17 non_snake_case,
18 non_camel_case_types,
19 non_upper_case_globals,
20 dead_code,
21 trivial_casts
22)]
23#[allow(clippy::all)]
24#[cfg(feature = "interface")]
25mod psa_crypto_binding {
26 include!(concat!(env!("OUT_DIR"), "/shim_bindings.rs"));
27}
28
29mod constants;
30#[cfg(feature = "interface")]
31mod extras;
32#[cfg(feature = "interface")]
33mod shim;
34mod types;
35
36pub use constants::*;
37pub use types::*;
38
39#[cfg(feature = "operations")]
40pub use psa_crypto_binding::{
41 psa_aead_decrypt, psa_aead_encrypt, psa_asymmetric_decrypt, psa_asymmetric_encrypt,
42 psa_cipher_abort, psa_cipher_decrypt_setup, psa_cipher_encrypt_setup, psa_cipher_finish,
43 psa_cipher_set_iv, psa_cipher_update, psa_close_key, psa_copy_key, psa_crypto_init,
44 psa_destroy_key, psa_export_key, psa_export_public_key, psa_generate_key, psa_generate_random,
45 psa_get_key_attributes, psa_hash_compare, psa_hash_compute, psa_import_key,
46 psa_key_derivation_abort, psa_key_derivation_input_bytes, psa_key_derivation_input_key,
47 psa_key_derivation_key_agreement, psa_key_derivation_output_key,
48 psa_key_derivation_set_capacity, psa_key_derivation_setup, psa_mac_compute, psa_mac_verify,
49 psa_open_key, psa_raw_key_agreement, psa_reset_key_attributes, psa_sign_hash, psa_verify_hash,
50};
51
52#[cfg(feature = "interface")]
53pub use psa_crypto_binding::{
54 psa_cipher_operation_t, psa_key_attributes_t, psa_key_derivation_operation_t,
55};
56
57#[cfg(feature = "interface")]
59pub use psa_crypto_binding::{
60 psa_drv_se_asymmetric_t, psa_drv_se_context_t, psa_drv_se_key_management_t, psa_drv_se_t,
61 psa_key_creation_method_t, psa_key_slot_number_t,
62};
63
64#[cfg(feature = "interface")]
65pub use extras::*;
66#[cfg(feature = "interface")]
67pub use shim::*;