diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 9ed9675d..ee9da69d 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -26,5 +26,5 @@ jobs: - name: Run codespell uses: codespell-project/actions-codespell@v2 with: - skip: .git,./IDE,./certs,./m4,*.der,*.pem + skip: .git,./IDE,./certs,./m4,*.der,*.pem,*prebuilt_bindings.rs ignore_words_list: inh,inout,keypair,nd,parm,rcv,ser,loadIn,importIn,certifyIn,bu,fo,daa,pris,hsi,fram,hart diff --git a/ChangeLog.md b/ChangeLog.md index 990e3053..4ac76cb5 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,11 +1,5 @@ # Release Notes -## Unreleased - -* Added SPDM transport-bound TPM policies (PR #594). - - Added `TPM2_PolicyTransportSPDM` client support and fwTPM enforcement. - - Added SPDM-bound NV policy examples and tests. - ## wolfTPM Release 4.2.0 (Sep 14, 2026) **Summary** diff --git a/wrapper/rust/README.md b/wrapper/rust/README.md index 43688bb5..f0cef12f 100644 --- a/wrapper/rust/README.md +++ b/wrapper/rust/README.md @@ -1,5 +1,8 @@ # wolfTPM Rust wrapper +[![crates.io](https://img.shields.io/crates/v/wolftpm.svg)](https://crates.io/crates/wolftpm) +[![docs.rs](https://docs.rs/wolftpm/badge.svg)](https://docs.rs/wolftpm) + Official Rust bindings for wolfTPM. The crate lives in [`wolftpm/`](wolftpm/); see its [README](wolftpm/README.md) for the full API, build, and test details. diff --git a/wrapper/rust/include.am b/wrapper/rust/include.am index a41fcc20..75b192e0 100644 --- a/wrapper/rust/include.am +++ b/wrapper/rust/include.am @@ -11,6 +11,7 @@ EXTRA_DIST += wrapper/rust/wolftpm/README.md EXTRA_DIST += wrapper/rust/wolftpm/Makefile EXTRA_DIST += wrapper/rust/wolftpm/build.rs EXTRA_DIST += wrapper/rust/wolftpm/headers.h +EXTRA_DIST += wrapper/rust/wolftpm/prebuilt_bindings.rs EXTRA_DIST += wrapper/rust/wolftpm/src/lib.rs EXTRA_DIST += wrapper/rust/wolftpm/src/sys.rs EXTRA_DIST += wrapper/rust/wolftpm/src/device.rs diff --git a/wrapper/rust/wolftpm/Cargo.toml b/wrapper/rust/wolftpm/Cargo.toml index 51f30a0b..315e8d0f 100644 --- a/wrapper/rust/wolftpm/Cargo.toml +++ b/wrapper/rust/wolftpm/Cargo.toml @@ -6,10 +6,21 @@ rust-version = "1.81" description = "Rust wrapper for the wolfTPM TPM 2.0 library" license = "GPL-3.0-or-later" repository = "https://github.com/wolfSSL/wolfTPM" -documentation = "https://github.com/wolfSSL/wolfTPM/tree/master/wrapper/rust" +documentation = "https://docs.rs/wolftpm" keywords = ["wolftpm", "tpm", "tpm2", "security", "api-bindings"] categories = ["cryptography", "hardware-support", "api-bindings"] readme = "README.md" +include = [ + "src/**/*.rs", + "examples/*.rs", + "tests/**/*.rs", + "build.rs", + "headers.h", + "prebuilt_bindings.rs", + "README.md", + "CHANGELOG.md", + "Cargo.toml", +] [features] default = [] @@ -22,3 +33,8 @@ zeroize = { version = "1.8", default-features = false, features = ["alloc"] } [build-dependencies] bindgen = "0.72" regex = "1.5" + +[package.metadata.docs.rs] +# docs.rs sets DOCS_RS=1; build.rs then uses prebuilt_bindings.rs and skips the +# native link. Pin the target the committed x86_64 Linux bindings were made for. +default-target = "x86_64-unknown-linux-gnu" diff --git a/wrapper/rust/wolftpm/README.md b/wrapper/rust/wolftpm/README.md index 0ed89aca..f52cc66f 100644 --- a/wrapper/rust/wolftpm/README.md +++ b/wrapper/rust/wolftpm/README.md @@ -1,5 +1,8 @@ # wolftpm +[![crates.io](https://img.shields.io/crates/v/wolftpm.svg)](https://crates.io/crates/wolftpm) +[![docs.rs](https://docs.rs/wolftpm/badge.svg)](https://docs.rs/wolftpm) + Safe Rust bindings for wolfTPM, the portable TPM 2.0 library. The raw FFI is generated with bindgen and kept in the `sys` module. The rest of diff --git a/wrapper/rust/wolftpm/build.rs b/wrapper/rust/wolftpm/build.rs index 555b1fee..7aebcf9c 100644 --- a/wrapper/rust/wolftpm/build.rs +++ b/wrapper/rust/wolftpm/build.rs @@ -24,6 +24,13 @@ fn main() { fn run_build() -> Result<()> { println!("cargo:rerun-if-env-changed=WOLFTPM_PREFIX"); println!("cargo:rerun-if-env-changed=WOLFSSL_PREFIX"); + println!("cargo:rerun-if-env-changed=DOCS_RS"); + // docs.rs builds in a sandbox with no wolfTPM/wolfSSL headers or libraries. + // Use the committed bindings and skip the link so the API docs still render; + // rustdoc compiles the crate but does not link the native library. + if env::var_os("DOCS_RS").is_some() { + return docs_rs_build(); + } generate_bindings()?; setup_link()?; scan_cfg()?; @@ -31,6 +38,19 @@ fn run_build() -> Result<()> { Ok(()) } +/// docs.rs build path: copy the committed FFI bindings into `$OUT_DIR`, emit the +/// cfgs a software-TPM build produces, and skip linking. +fn docs_rs_build() -> Result<()> { + println!("cargo:rerun-if-changed=prebuilt_bindings.rs"); + fs::copy("prebuilt_bindings.rs", bindings_path())?; + scan_cfg()?; + for cfg in ["swtpm", "devtpm", "mmio", "fwtpm", "winapi", "linux_autodetect"] { + println!("cargo::rustc-check-cfg=cfg({})", cfg); + } + println!("cargo:rustc-cfg=swtpm"); + Ok(()) +} + fn crate_dir() -> Result { Ok(env::current_dir()?.display().to_string()) } diff --git a/wrapper/rust/wolftpm/prebuilt_bindings.rs b/wrapper/rust/wolftpm/prebuilt_bindings.rs new file mode 100644 index 00000000..63545425 --- /dev/null +++ b/wrapper/rust/wolftpm/prebuilt_bindings.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +# [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > where Storage : AsRef < [u8] > + AsMut < [u8] >, { # [inline] fn extract_bit (byte : u8 , index : usize) -> bool { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [inline] pub fn get_bit (& self , index : usize) -> bool { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = self . storage . as_ref () [byte_index] ; Self :: extract_bit (byte , index) } # [inline] pub unsafe fn raw_get_bit (this : * const Self , index : usize) -> bool { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = unsafe { * (core :: ptr :: addr_of ! ((* this) . storage) as * const u8) . offset (byte_index as isize) } ; Self :: extract_bit (byte , index) } # [inline] fn change_bit (byte : u8 , index : usize , val : bool) -> u8 { let bit_index = if cfg ! (target_endian = "big") { 7 - (index % 8) } else { index % 8 } ; let mask = 1 << bit_index ; if val { byte | mask } else { byte & ! mask } } # [inline] pub fn set_bit (& mut self , index : usize , val : bool) { debug_assert ! (index / 8 < self . storage . as_ref () . len ()) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut () [byte_index] ; * byte = Self :: change_bit (* byte , index , val) ; } # [inline] pub unsafe fn raw_set_bit (this : * mut Self , index : usize , val : bool) { debug_assert ! (index / 8 < core :: mem :: size_of ::< Storage > ()) ; let byte_index = index / 8 ; let byte = unsafe { (core :: ptr :: addr_of_mut ! ((* this) . storage) as * mut u8) . offset (byte_index as isize) } ; unsafe { * byte = Self :: change_bit (* byte , index , val) } ; } # [inline] pub fn get (& self , bit_offset : usize , bit_width : u8) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if self . get_bit (i + bit_offset) { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub unsafe fn raw_get (this : * const Self , bit_offset : usize , bit_width : u8 ,) -> u64 { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; let mut val = 0 ; for i in 0 .. (bit_width as usize) { if unsafe { Self :: raw_get_bit (this , i + bit_offset) } { let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [inline] pub fn set (& mut self , bit_offset : usize , bit_width : u8 , val : u64) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < self . storage . as_ref () . len ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= self . storage . as_ref () . len ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; self . set_bit (index + bit_offset , val_bit_is_set) ; } } # [inline] pub unsafe fn raw_set (this : * mut Self , bit_offset : usize , bit_width : u8 , val : u64 ,) { debug_assert ! (bit_width <= 64) ; debug_assert ! (bit_offset / 8 < core :: mem :: size_of ::< Storage > ()) ; debug_assert ! ((bit_offset + (bit_width as usize)) / 8 <= core :: mem :: size_of ::< Storage > ()) ; for i in 0 .. (bit_width as usize) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! (target_endian = "big") { bit_width as usize - 1 - i } else { i } ; unsafe { Self :: raw_set_bit (this , index + bit_offset , val_bit_is_set) } ; } } } # [repr (C)] # [derive (Default)] pub struct __IncompleteArrayField < T > (:: core :: marker :: PhantomData < T > , [T ; 0]) ; impl < T > __IncompleteArrayField < T > { # [inline] pub const fn new () -> Self { __IncompleteArrayField (:: core :: marker :: PhantomData , []) } # [inline] pub fn as_ptr (& self) -> * const T { self as * const _ as * const T } # [inline] pub fn as_mut_ptr (& mut self) -> * mut T { self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: core :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: core :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: core :: fmt :: Debug for __IncompleteArrayField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__IncompleteArrayField") } } # [repr (C)] pub struct __BindgenUnionField < T > (:: core :: marker :: PhantomData < T >) ; impl < T > __BindgenUnionField < T > { # [inline] pub const fn new () -> Self { __BindgenUnionField (:: core :: marker :: PhantomData) } # [inline] pub unsafe fn as_ref (& self) -> & T { :: core :: mem :: transmute (self) } # [inline] pub unsafe fn as_mut (& mut self) -> & mut T { :: core :: mem :: transmute (self) } } impl < T > :: core :: default :: Default for __BindgenUnionField < T > { # [inline] fn default () -> Self { Self :: new () } } impl < T > :: core :: clone :: Clone for __BindgenUnionField < T > { # [inline] fn clone (& self) -> Self { * self } } impl < T > :: core :: marker :: Copy for __BindgenUnionField < T > { } impl < T > :: core :: fmt :: Debug for __BindgenUnionField < T > { fn fmt (& self , fmt : & mut :: core :: fmt :: Formatter < '_ >) -> :: core :: fmt :: Result { fmt . write_str ("__BindgenUnionField") } } impl < T > :: core :: hash :: Hash for __BindgenUnionField < T > { fn hash < H : :: core :: hash :: Hasher > (& self , _state : & mut H) { } } impl < T > :: core :: cmp :: PartialEq for __BindgenUnionField < T > { fn eq (& self , _other : & __BindgenUnionField < T >) -> bool { true } } impl < T > :: core :: cmp :: Eq for __BindgenUnionField < T > { } pub const SIZEOF_LONG : u32 = 8 ; pub const TPM2_SWTPM_PORT : u32 = 2321 ; pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 40 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const HAVE_C___ATOMIC : u32 = 1 ; pub const ECC_MIN_KEY_SZ : u32 = 224 ; pub const HAVE___UINT128_T : u32 = 1 ; pub const HAVE_GETPID : u32 = 1 ; pub const YES : u32 = 1 ; pub const NO : u32 = 0 ; pub const LIBWOLFSSL_CMAKE_OUTPUT : & [u8 ; 1] = b"\0" ; pub const WOLFSSL_GENERAL_ALIGNMENT : u32 = 0 ; pub const AES_MAX_KEY_SIZE : u32 = 256 ; pub const MIN_FFDHE_BITS : u32 = 2048 ; pub const MIN_FFDHE_FP_MAX_BITS : u32 = 4096 ; pub const SP_INT_BITS : u32 = 4096 ; pub const WOLFSSL_MIN_AUTH_TAG_SZ : u32 = 12 ; pub const WC_ASYNC_DEV_SIZE : u32 = 0 ; pub const SSL_CTRL_SET_TLSEXT_HOSTNAME : u32 = 55 ; pub const WOLFSSL_ALERT_COUNT_MAX : u32 = 5 ; pub const WOLFSSL_MAX_EMPTY_RECORDS : u32 = 32 ; pub const _PTHREAD_H : u32 = 1 ; pub const _SCHED_H : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const _BITS_SCHED_H : u32 = 1 ; pub const SCHED_OTHER : u32 = 0 ; pub const SCHED_FIFO : u32 = 1 ; pub const SCHED_RR : u32 = 2 ; pub const _BITS_TYPES_STRUCT_SCHED_PARAM : u32 = 1 ; pub const _BITS_CPU_SET_H : u32 = 1 ; pub const __CPU_SETSIZE : u32 = 1024 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _BITS_SETJMP_H : u32 = 1 ; pub const __jmp_buf_tag_defined : u32 = 1 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const PTHREAD_ONCE_INIT : u32 = 0 ; pub const PTHREAD_BARRIER_SERIAL_THREAD : i32 = - 1 ; pub const WOLFSSL_CRYPT_HW_MUTEX : u32 = 0 ; pub const _STDIO_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const XSEEK_SET : u32 = 0 ; pub const XSEEK_END : u32 = 2 ; pub const XBADFD : i32 = - 1 ; pub const _DIRENT_H : u32 = 1 ; pub const _DIRENT_MATCHES_DIRENT64 : u32 = 1 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const MAXNAMLEN : u32 = 255 ; pub const _UNISTD_H : u32 = 1 ; pub const _POSIX_VERSION : u32 = 200809 ; pub const __POSIX2_THIS_VERSION : u32 = 200809 ; pub const _POSIX2_VERSION : u32 = 200809 ; pub const _POSIX2_C_VERSION : u32 = 200809 ; pub const _POSIX2_C_BIND : u32 = 200809 ; pub const _POSIX2_C_DEV : u32 = 200809 ; pub const _POSIX2_SW_DEV : u32 = 200809 ; pub const _POSIX2_LOCALEDEF : u32 = 200809 ; pub const _XOPEN_VERSION : u32 = 700 ; pub const _XOPEN_XCU_VERSION : u32 = 4 ; pub const _XOPEN_XPG2 : u32 = 1 ; pub const _XOPEN_XPG3 : u32 = 1 ; pub const _XOPEN_XPG4 : u32 = 1 ; pub const _XOPEN_UNIX : u32 = 1 ; pub const _XOPEN_ENH_I18N : u32 = 1 ; pub const _XOPEN_LEGACY : u32 = 1 ; pub const _BITS_POSIX_OPT_H : u32 = 1 ; pub const _POSIX_JOB_CONTROL : u32 = 1 ; pub const _POSIX_SAVED_IDS : u32 = 1 ; pub const _POSIX_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_SYNCHRONIZED_IO : u32 = 200809 ; pub const _POSIX_FSYNC : u32 = 200809 ; pub const _POSIX_MAPPED_FILES : u32 = 200809 ; pub const _POSIX_MEMLOCK : u32 = 200809 ; pub const _POSIX_MEMLOCK_RANGE : u32 = 200809 ; pub const _POSIX_MEMORY_PROTECTION : u32 = 200809 ; pub const _POSIX_CHOWN_RESTRICTED : u32 = 0 ; pub const _POSIX_VDISABLE : u8 = 0u8 ; pub const _POSIX_NO_TRUNC : u32 = 1 ; pub const _XOPEN_REALTIME : u32 = 1 ; pub const _XOPEN_REALTIME_THREADS : u32 = 1 ; pub const _XOPEN_SHM : u32 = 1 ; pub const _POSIX_THREADS : u32 = 200809 ; pub const _POSIX_REENTRANT_FUNCTIONS : u32 = 1 ; pub const _POSIX_THREAD_SAFE_FUNCTIONS : u32 = 200809 ; pub const _POSIX_THREAD_PRIORITY_SCHEDULING : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKSIZE : u32 = 200809 ; pub const _POSIX_THREAD_ATTR_STACKADDR : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_PRIO_PROTECT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT : u32 = 200809 ; pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT : i32 = - 1 ; pub const _POSIX_SEMAPHORES : u32 = 200809 ; pub const _POSIX_REALTIME_SIGNALS : u32 = 200809 ; pub const _POSIX_ASYNCHRONOUS_IO : u32 = 200809 ; pub const _POSIX_ASYNC_IO : u32 = 1 ; pub const _LFS_ASYNCHRONOUS_IO : u32 = 1 ; pub const _POSIX_PRIORITIZED_IO : u32 = 200809 ; pub const _LFS64_ASYNCHRONOUS_IO : u32 = 1 ; pub const _LFS_LARGEFILE : u32 = 1 ; pub const _LFS64_LARGEFILE : u32 = 1 ; pub const _LFS64_STDIO : u32 = 1 ; pub const _POSIX_SHARED_MEMORY_OBJECTS : u32 = 200809 ; pub const _POSIX_CPUTIME : u32 = 0 ; pub const _POSIX_THREAD_CPUTIME : u32 = 0 ; pub const _POSIX_REGEXP : u32 = 1 ; pub const _POSIX_READER_WRITER_LOCKS : u32 = 200809 ; pub const _POSIX_SHELL : u32 = 1 ; pub const _POSIX_TIMEOUTS : u32 = 200809 ; pub const _POSIX_SPIN_LOCKS : u32 = 200809 ; pub const _POSIX_SPAWN : u32 = 200809 ; pub const _POSIX_TIMERS : u32 = 200809 ; pub const _POSIX_BARRIERS : u32 = 200809 ; pub const _POSIX_MESSAGE_PASSING : u32 = 200809 ; pub const _POSIX_THREAD_PROCESS_SHARED : u32 = 200809 ; pub const _POSIX_MONOTONIC_CLOCK : u32 = 0 ; pub const _POSIX_CLOCK_SELECTION : u32 = 200809 ; pub const _POSIX_ADVISORY_INFO : u32 = 200809 ; pub const _POSIX_IPV6 : u32 = 200809 ; pub const _POSIX_RAW_SOCKETS : u32 = 200809 ; pub const _POSIX2_CHAR_TERM : u32 = 200809 ; pub const _POSIX_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_THREAD_SPORADIC_SERVER : i32 = - 1 ; pub const _POSIX_TRACE : i32 = - 1 ; pub const _POSIX_TRACE_EVENT_FILTER : i32 = - 1 ; pub const _POSIX_TRACE_INHERIT : i32 = - 1 ; pub const _POSIX_TRACE_LOG : i32 = - 1 ; pub const _POSIX_TYPED_MEMORY_OBJECTS : i32 = - 1 ; pub const _POSIX_V7_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V6_LPBIG_OFFBIG : i32 = - 1 ; pub const _XBS5_LPBIG_OFFBIG : i32 = - 1 ; pub const _POSIX_V7_LP64_OFF64 : u32 = 1 ; pub const _POSIX_V6_LP64_OFF64 : u32 = 1 ; pub const _XBS5_LP64_OFF64 : u32 = 1 ; pub const __ILP32_OFF32_CFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFF32_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __ILP32_OFFBIG_CFLAGS : & [u8 ; 48] = b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0" ; pub const __ILP32_OFFBIG_LDFLAGS : & [u8 ; 5] = b"-m32\0" ; pub const __LP64_OFF64_CFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const __LP64_OFF64_LDFLAGS : & [u8 ; 5] = b"-m64\0" ; pub const STDIN_FILENO : u32 = 0 ; pub const STDOUT_FILENO : u32 = 1 ; pub const STDERR_FILENO : u32 = 2 ; pub const R_OK : u32 = 4 ; pub const W_OK : u32 = 2 ; pub const X_OK : u32 = 1 ; pub const F_OK : u32 = 0 ; pub const L_SET : u32 = 0 ; pub const L_INCR : u32 = 1 ; pub const L_XTND : u32 = 2 ; pub const _GETOPT_POSIX_H : u32 = 1 ; pub const _GETOPT_CORE_H : u32 = 1 ; pub const F_ULOCK : u32 = 0 ; pub const F_LOCK : u32 = 1 ; pub const F_TLOCK : u32 = 2 ; pub const F_TEST : u32 = 3 ; pub const _SYS_STAT_H : u32 = 1 ; pub const _BITS_STAT_H : u32 = 1 ; pub const _BITS_STRUCT_STAT_H : u32 = 1 ; pub const __S_IFMT : u32 = 61440 ; pub const __S_IFDIR : u32 = 16384 ; pub const __S_IFCHR : u32 = 8192 ; pub const __S_IFBLK : u32 = 24576 ; pub const __S_IFREG : u32 = 32768 ; pub const __S_IFIFO : u32 = 4096 ; pub const __S_IFLNK : u32 = 40960 ; pub const __S_IFSOCK : u32 = 49152 ; pub const __S_ISUID : u32 = 2048 ; pub const __S_ISGID : u32 = 1024 ; pub const __S_ISVTX : u32 = 512 ; pub const __S_IREAD : u32 = 256 ; pub const __S_IWRITE : u32 = 128 ; pub const __S_IEXEC : u32 = 64 ; pub const UTIME_NOW : u32 = 1073741823 ; pub const UTIME_OMIT : u32 = 1073741822 ; pub const S_IFMT : u32 = 61440 ; pub const S_IFDIR : u32 = 16384 ; pub const S_IFCHR : u32 = 8192 ; pub const S_IFBLK : u32 = 24576 ; pub const S_IFREG : u32 = 32768 ; pub const S_IFIFO : u32 = 4096 ; pub const S_IFLNK : u32 = 40960 ; pub const S_IFSOCK : u32 = 49152 ; pub const S_ISUID : u32 = 2048 ; pub const S_ISGID : u32 = 1024 ; pub const S_ISVTX : u32 = 512 ; pub const S_IRUSR : u32 = 256 ; pub const S_IWUSR : u32 = 128 ; pub const S_IXUSR : u32 = 64 ; pub const S_IRWXU : u32 = 448 ; pub const S_IREAD : u32 = 256 ; pub const S_IWRITE : u32 = 128 ; pub const S_IEXEC : u32 = 64 ; pub const S_IRGRP : u32 = 32 ; pub const S_IWGRP : u32 = 16 ; pub const S_IXGRP : u32 = 8 ; pub const S_IRWXG : u32 = 56 ; pub const S_IROTH : u32 = 4 ; pub const S_IWOTH : u32 = 2 ; pub const S_IXOTH : u32 = 1 ; pub const S_IRWXO : u32 = 7 ; pub const ACCESSPERMS : u32 = 511 ; pub const ALLPERMS : u32 = 4095 ; pub const DEFFILEMODE : u32 = 438 ; pub const S_BLKSIZE : u32 = 512 ; pub const SEPARATOR_CHAR : u8 = 58u8 ; pub const MAX_FILENAME_SZ : u32 = 261 ; pub const MAX_PATH : u32 = 261 ; pub const WC_READDIR_NOFILE : i32 = - 1 ; pub const WC_ISFILEEXIST_NOFILE : i32 = - 1 ; pub const SOCKET_INVALID : i32 = - 1 ; pub const FILE_BUFFER_SIZE : u32 = 3072 ; pub const HAVE_PTHREAD : u32 = 1 ; pub const HAVE_ANONYMOUS_INLINE_AGGREGATES : u32 = 1 ; pub const HAVE_EMPTY_AGGREGATES : u32 = 1 ; pub const WOLFSSL_WORD_SIZE_LOG2 : u32 = 3 ; pub const WOLFSSL_MAX_8BIT : u32 = 255 ; pub const WOLFSSL_MAX_16BIT : u32 = 65535 ; pub const WOLFSSL_MAX_32BIT : u32 = 4294967295 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _ALLOCA_H : u32 = 1 ; pub const _STRING_H : u32 = 1 ; pub const _STRINGS_H : u32 = 1 ; pub const _CTYPE_H : u32 = 1 ; pub const WOLFSSL_MAX_ERROR_SZ : u32 = 80 ; pub const INVALID_DEVID : i32 = - 2 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const _ASSERT_H : u32 = 1 ; pub const WOLFSSL_ASN_MAX_LENGTH_SZ : u32 = 5 ; pub const WC_MAX_DIGEST_SIZE : u32 = 64 ; pub const WC_MAX_BLOCK_SIZE : u32 = 128 ; pub const WOLFSSL_MSG_CERT_INDENT : & [u8 ; 1] = b"\0" ; pub const WC_SHA_BLOCK_SIZE : u32 = 64 ; pub const WC_SHA_DIGEST_SIZE : u32 = 20 ; pub const WC_SHA_PAD_SIZE : u32 = 56 ; pub const WC_SHA256_BLOCK_SIZE : u32 = 64 ; pub const WC_SHA256_DIGEST_SIZE : u32 = 32 ; pub const WC_SHA256_PAD_SIZE : u32 = 56 ; pub const WC_SHA224_BLOCK_SIZE : u32 = 64 ; pub const WC_SHA224_DIGEST_SIZE : u32 = 28 ; pub const WC_SHA224_PAD_SIZE : u32 = 56 ; pub const WC_SHA512_BLOCK_SIZE : u32 = 128 ; pub const WC_SHA512_DIGEST_SIZE : u32 = 64 ; pub const WC_SHA512_PAD_SIZE : u32 = 112 ; pub const WC_SHA512_224_BLOCK_SIZE : u32 = 128 ; pub const WC_SHA512_224_DIGEST_SIZE : u32 = 28 ; pub const WC_SHA512_224_PAD_SIZE : u32 = 112 ; pub const WC_SHA512_256_BLOCK_SIZE : u32 = 128 ; pub const WC_SHA512_256_DIGEST_SIZE : u32 = 32 ; pub const WC_SHA512_256_PAD_SIZE : u32 = 112 ; pub const WC_SHA384_BLOCK_SIZE : u32 = 128 ; pub const WC_SHA384_DIGEST_SIZE : u32 = 48 ; pub const WC_SHA384_PAD_SIZE : u32 = 112 ; pub const MAX_DIGEST_SIZE : u32 = 64 ; pub const WC_MIN_DIGEST_SIZE : u32 = 20 ; pub const WC_RSA_EXPONENT : u32 = 65537 ; pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const SP_UCHAR_BITS : u32 = 8 ; pub const SP_USHORT_BITS : u32 = 16 ; pub const SP_UINT_BITS : u32 = 32 ; pub const SP_ULONG_BITS : u32 = 64 ; pub const SP_ULLONG_BITS : u32 = 64 ; pub const SP_WORD_SIZE : u32 = 64 ; pub const SP_WORD_SIZEOF : u32 = 8 ; pub const SP_MASK : i32 = - 1 ; pub const SP_HALF_SIZE : u32 = 32 ; pub const SP_DIGIT_MAX : i32 = - 1 ; pub const SP_WORD_SHIFT : u32 = 6 ; pub const SP_WORD_MASK : u32 = 63 ; pub const SP_PRINT_FMT : & [u8 ; 7] = b"%016lx\0" ; pub const RNG_MAX_BLOCK_LEN : u32 = 65536 ; pub const DRBG_SEED_LEN : u32 = 55 ; pub const DRBG_SHA512_SEED_LEN : u32 = 111 ; pub const WC_RESEED_INTERVAL : u32 = 1000000 ; pub const RNG_SECURITY_STRENGTH : u32 = 256 ; pub const MAX_ENTROPY_BITS : u32 = 256 ; pub const ENTROPY_SCALE_FACTOR : u32 = 1 ; pub const SEED_BLOCK_SZ : u32 = 4 ; pub const WC_DRBG_SEED_BLOCK_SZ : u32 = 4 ; pub const WC_DRBG_SEED_SZ_BASE : u32 = 32 ; pub const WC_DRBG_SEED_SZ : u32 = 32 ; pub const WC_DRBG_MAX_SEED_SZ : u32 = 52 ; pub const RNG_HEALTH_TEST_CHECK_SIZE : u32 = 128 ; pub const RNG_HEALTH_TEST_CHECK_SIZE_SHA512 : u32 = 256 ; pub const WC_DRBG_NOT_INIT : u32 = 0 ; pub const WC_DRBG_OK : u32 = 1 ; pub const WC_DRBG_FAILED : u32 = 2 ; pub const WC_DRBG_CONT_FAILED : u32 = 3 ; pub const SP_INT_DIGITS : u32 = 129 ; pub const SP_INT_MAX_BITS : u32 = 8256 ; pub const MP_NO : u32 = 0 ; pub const MP_YES : u32 = 1 ; pub const MP_RADIX_DEC : u32 = 10 ; pub const MP_RADIX_HEX : u32 = 16 ; pub const MP_GT : u32 = 1 ; pub const MP_EQ : u32 = 0 ; pub const MP_LT : i32 = - 1 ; pub const MP_OKAY : u32 = 0 ; pub const DIGIT_BIT : u32 = 64 ; pub const MP_MASK : i32 = - 1 ; pub const WC_TYPE_HEX_STR : u32 = 1 ; pub const WC_TYPE_UNSIGNED_BIN : u32 = 2 ; pub const RSA_MIN_SIZE : u32 = 2048 ; pub const WC_MGF1NONE : u32 = 0 ; pub const WC_MGF1SHA1 : u32 = 26 ; pub const WC_MGF1SHA224 : u32 = 4 ; pub const WC_MGF1SHA256 : u32 = 1 ; pub const WC_MGF1SHA384 : u32 = 2 ; pub const WC_MGF1SHA512 : u32 = 3 ; pub const WC_MGF1SHA512_224 : u32 = 5 ; pub const WC_MGF1SHA512_256 : u32 = 6 ; pub const WC_MGF1SHA3_224 : u32 = 7 ; pub const WC_MGF1SHA3_256 : u32 = 8 ; pub const WC_MGF1SHA3_384 : u32 = 9 ; pub const WC_MGF1SHA3_512 : u32 = 10 ; pub const WC_MGF1SHAKE128 : u32 = 11 ; pub const WC_MGF1SHAKE256 : u32 = 12 ; pub const WC_MGFSHAKE128 : u32 = 13 ; pub const WC_MGFSHAKE256 : u32 = 14 ; pub const WC_RSA_PKCSV15_PAD : u32 = 0 ; pub const WC_RSA_OAEP_PAD : u32 = 1 ; pub const WC_RSA_PSS_PAD : u32 = 2 ; pub const WC_RSA_NO_PAD : u32 = 3 ; pub const ECC_CUSTOM_IDX : i32 = - 1 ; pub const MAX_ECC_BITS_NEEDED : u32 = 521 ; pub const MAX_ECC_BITS : u32 = 521 ; pub const MAX_ECC_BYTES : u32 = 66 ; pub const ECC_MAX_PAD_SZ : u32 = 2 ; pub const WC_DH_PRIV_MAX_SZ : u32 = 52 ; pub const CRYPTO_CB_VER : u32 = 3 ; pub const WC_HMAC_INNER_HASH_KEYED_SW : u32 = 1 ; pub const WC_HMAC_INNER_HASH_KEYED_DEV : u32 = 2 ; pub const WC_HMAC_BLOCK_SIZE : u32 = 128 ; pub const XOF_BLOCK_SIZE : u32 = 168 ; pub const MLKEM_Q : u32 = 3329 ; pub const MLKEM_N : u32 = 256 ; pub const WC_ML_KEM_512_K : u32 = 2 ; pub const WC_ML_KEM_768_K : u32 = 3 ; pub const WC_ML_KEM_1024_K : u32 = 4 ; pub const WC_ML_KEM_MAX_K : u32 = 4 ; pub const KYBER_N : u32 = 256 ; pub const KYBER512_K : u32 = 2 ; pub const KYBER768_K : u32 = 3 ; pub const KYBER1024_K : u32 = 4 ; pub const MLKEM_MAX_ID_LEN : u32 = 32 ; pub const MLKEM_MAX_LABEL_LEN : u32 = 32 ; pub const WOLFSSL_DILITHIUM_ALIGNMENT : u32 = 0 ; pub const DILITHIUM_LEVEL2_KEY_SIZE : u32 = 2560 ; pub const DILITHIUM_LEVEL2_SIG_SIZE : u32 = 2420 ; pub const DILITHIUM_LEVEL2_PUB_KEY_SIZE : u32 = 1312 ; pub const DILITHIUM_LEVEL2_PRV_KEY_SIZE : u32 = 3872 ; pub const DILITHIUM_LEVEL2_PUB_KEY_DER_SIZE : u32 = 1334 ; pub const DILITHIUM_LEVEL2_PRV_KEY_DER_SIZE : u32 = 2588 ; pub const DILITHIUM_LEVEL2_BOTH_KEY_DER_SIZE : u32 = 3904 ; pub const DILITHIUM_LEVEL2_BOTH_KEY_PEM_SIZE : u32 = 5344 ; pub const DILITHIUM_LEVEL3_KEY_SIZE : u32 = 4032 ; pub const DILITHIUM_LEVEL3_SIG_SIZE : u32 = 3309 ; pub const DILITHIUM_LEVEL3_PUB_KEY_SIZE : u32 = 1952 ; pub const DILITHIUM_LEVEL3_PRV_KEY_SIZE : u32 = 5984 ; pub const DILITHIUM_LEVEL3_PUB_KEY_DER_SIZE : u32 = 1974 ; pub const DILITHIUM_LEVEL3_PRV_KEY_DER_SIZE : u32 = 4060 ; pub const DILITHIUM_LEVEL3_BOTH_KEY_DER_SIZE : u32 = 6016 ; pub const DILITHIUM_LEVEL3_BOTH_KEY_PEM_SIZE : u32 = 8204 ; pub const DILITHIUM_LEVEL5_KEY_SIZE : u32 = 4896 ; pub const DILITHIUM_LEVEL5_SIG_SIZE : u32 = 4627 ; pub const DILITHIUM_LEVEL5_PUB_KEY_SIZE : u32 = 2592 ; pub const DILITHIUM_LEVEL5_PRV_KEY_SIZE : u32 = 7488 ; pub const DILITHIUM_LEVEL5_PUB_KEY_DER_SIZE : u32 = 2614 ; pub const DILITHIUM_LEVEL5_PRV_KEY_DER_SIZE : u32 = 4924 ; pub const DILITHIUM_LEVEL5_BOTH_KEY_DER_SIZE : u32 = 7520 ; pub const DILITHIUM_LEVEL5_BOTH_KEY_PEM_SIZE : u32 = 10267 ; pub const ML_DSA_LEVEL2_KEY_SIZE : u32 = 2560 ; pub const ML_DSA_LEVEL2_SIG_SIZE : u32 = 2420 ; pub const ML_DSA_LEVEL2_PUB_KEY_SIZE : u32 = 1312 ; pub const ML_DSA_LEVEL2_PRV_KEY_SIZE : u32 = 3872 ; pub const ML_DSA_LEVEL2_PUB_KEY_DER_SIZE : u32 = 1334 ; pub const ML_DSA_LEVEL2_PRV_KEY_DER_SIZE : u32 = 2588 ; pub const ML_DSA_LEVEL2_BOTH_KEY_DER_SIZE : u32 = 3904 ; pub const ML_DSA_LEVEL2_BOTH_KEY_PEM_SIZE : u32 = 5344 ; pub const ML_DSA_LEVEL3_KEY_SIZE : u32 = 4032 ; pub const ML_DSA_LEVEL3_SIG_SIZE : u32 = 3309 ; pub const ML_DSA_LEVEL3_PUB_KEY_SIZE : u32 = 1952 ; pub const ML_DSA_LEVEL3_PRV_KEY_SIZE : u32 = 5984 ; pub const ML_DSA_LEVEL3_PUB_KEY_DER_SIZE : u32 = 1974 ; pub const ML_DSA_LEVEL3_PRV_KEY_DER_SIZE : u32 = 4060 ; pub const ML_DSA_LEVEL3_BOTH_KEY_DER_SIZE : u32 = 6016 ; pub const ML_DSA_LEVEL3_BOTH_KEY_PEM_SIZE : u32 = 8204 ; pub const ML_DSA_LEVEL5_KEY_SIZE : u32 = 4896 ; pub const ML_DSA_LEVEL5_SIG_SIZE : u32 = 4627 ; pub const ML_DSA_LEVEL5_PUB_KEY_SIZE : u32 = 2592 ; pub const ML_DSA_LEVEL5_PRV_KEY_SIZE : u32 = 7488 ; pub const ML_DSA_LEVEL5_PUB_KEY_DER_SIZE : u32 = 2614 ; pub const ML_DSA_LEVEL5_PRV_KEY_DER_SIZE : u32 = 4924 ; pub const ML_DSA_LEVEL5_BOTH_KEY_DER_SIZE : u32 = 7520 ; pub const ML_DSA_LEVEL5_BOTH_KEY_PEM_SIZE : u32 = 10267 ; pub const DILITHIUM_Q : u32 = 8380417 ; pub const DILITHIUM_Q_BITS : u32 = 23 ; pub const DILITHIUM_N : u32 = 256 ; pub const MLDSA_N : u32 = 256 ; pub const DILITHIUM_D : u32 = 13 ; pub const DILITHIUM_U : u32 = 10 ; pub const DILITHIUM_GAMMA1_BITS_17 : u32 = 17 ; pub const DILITHIUM_GAMMA1_17_ENC_BITS : u32 = 18 ; pub const DILITHIUM_GAMMA1_BITS_19 : u32 = 19 ; pub const DILITHIUM_GAMMA1_19_ENC_BITS : u32 = 20 ; pub const DILITHIUM_Q_LOW_88 : u32 = 95232 ; pub const DILITHIUM_Q_LOW_88_2 : u32 = 190464 ; pub const DILITHIUM_Q_HI_88_ENC_BITS : u32 = 6 ; pub const DILITHIUM_Q_LOW_32 : u32 = 261888 ; pub const DILITHIUM_Q_LOW_32_2 : u32 = 523776 ; pub const DILITHIUM_Q_HI_32_ENC_BITS : u32 = 4 ; pub const DILITHIUM_ETA_2 : u32 = 2 ; pub const DILITHIUM_ETA_2_BITS : u32 = 3 ; pub const DILITHIUM_ETA_2_MOD : u32 = 15 ; pub const DILITHIUM_ETA_4 : u32 = 4 ; pub const DILITHIUM_ETA_4_BITS : u32 = 4 ; pub const DILITHIUM_ETA_4_MOD : u32 = 9 ; pub const PARAMS_ML_DSA_44_K : u32 = 4 ; pub const PARAMS_ML_DSA_44_L : u32 = 4 ; pub const PARAMS_ML_DSA_44_ETA : u32 = 2 ; pub const PARAMS_ML_DSA_44_ETA_BITS : u32 = 3 ; pub const PARAMS_ML_DSA_44_LAMBDA : u32 = 128 ; pub const PARAMS_ML_DSA_44_TAU : u32 = 39 ; pub const PARAMS_ML_DSA_44_OMEGA : u32 = 80 ; pub const PARAMS_ML_DSA_44_GAMMA1_BITS : u32 = 17 ; pub const PARAMS_ML_DSA_44_GAMMA2 : u32 = 95232 ; pub const PARAMS_ML_DSA_44_GAMMA2_HI_BITS : u32 = 6 ; pub const PARAMS_ML_DSA_44_W1_ENC_SZ : u32 = 768 ; pub const PARAMS_ML_DSA_44_SIG_SIZE : u32 = 2420 ; pub const PARAMS_ML_DSA_65_K : u32 = 6 ; pub const PARAMS_ML_DSA_65_L : u32 = 5 ; pub const PARAMS_ML_DSA_65_ETA : u32 = 4 ; pub const PARAMS_ML_DSA_65_ETA_BITS : u32 = 4 ; pub const PARAMS_ML_DSA_65_LAMBDA : u32 = 192 ; pub const PARAMS_ML_DSA_65_TAU : u32 = 49 ; pub const PARAMS_ML_DSA_65_BETA : u32 = 196 ; pub const PARAMS_ML_DSA_65_OMEGA : u32 = 55 ; pub const PARAMS_ML_DSA_65_GAMMA1_BITS : u32 = 19 ; pub const PARAMS_ML_DSA_65_GAMMA2 : u32 = 261888 ; pub const PARAMS_ML_DSA_65_GAMMA2_HI_BITS : u32 = 4 ; pub const PARAMS_ML_DSA_65_W1_ENC_SZ : u32 = 768 ; pub const PARAMS_ML_DSA_65_SIG_SIZE : u32 = 3309 ; pub const PARAMS_ML_DSA_87_K : u32 = 8 ; pub const PARAMS_ML_DSA_87_L : u32 = 7 ; pub const PARAMS_ML_DSA_87_ETA : u32 = 2 ; pub const PARAMS_ML_DSA_87_ETA_BITS : u32 = 3 ; pub const PARAMS_ML_DSA_87_LAMBDA : u32 = 256 ; pub const PARAMS_ML_DSA_87_TAU : u32 = 60 ; pub const PARAMS_ML_DSA_87_BETA : u32 = 120 ; pub const PARAMS_ML_DSA_87_OMEGA : u32 = 75 ; pub const PARAMS_ML_DSA_87_GAMMA1_BITS : u32 = 19 ; pub const PARAMS_ML_DSA_87_GAMMA2 : u32 = 261888 ; pub const PARAMS_ML_DSA_87_GAMMA2_HI_BITS : u32 = 4 ; pub const PARAMS_ML_DSA_87_W1_ENC_SZ : u32 = 1024 ; pub const PARAMS_ML_DSA_87_S_SIZE : u32 = 4 ; pub const PARAMS_ML_DSA_87_SIG_SIZE : u32 = 4627 ; pub const DILITHIUM_MAX_W1_ENC_SZ : u32 = 1024 ; pub const DILITHIUM_MAX_LAMBDA : u32 = 256 ; pub const DILITHIUM_MAX_K_VECTOR_COUNT : u32 = 2048 ; pub const DILITHIUM_MAX_L_VECTOR_COUNT : u32 = 1792 ; pub const DILITHIUM_MAX_MATRIX_COUNT : u32 = 14336 ; pub const DILITHIUM_K_SZ : u32 = 32 ; pub const DILITHIUM_TR_SZ : u32 = 64 ; pub const DILITHIUM_PUB_SEED_SZ : u32 = 32 ; pub const DILITHIUM_PRIV_SEED_SZ : u32 = 64 ; pub const DILITHIUM_SEED_SZ : u32 = 32 ; pub const DILITHIUM_SEEDS_SZ : u32 = 128 ; pub const DILITHIUM_MU_SZ : u32 = 64 ; pub const DILITHIUM_RND_SZ : u32 = 32 ; pub const DILITHIUM_PRIV_RAND_SEED_SZ : u32 = 64 ; pub const DILITHIUM_GEN_A_NBLOCKS : u32 = 5 ; pub const DILITHIUM_MAX_KEY_SIZE : u32 = 4896 ; pub const DILITHIUM_MAX_SIG_SIZE : u32 = 4627 ; pub const DILITHIUM_MAX_PUB_KEY_SIZE : u32 = 2592 ; pub const DILITHIUM_MAX_PRV_KEY_SIZE : u32 = 7488 ; pub const DILITHIUM_MAX_PUB_KEY_DER_SIZE : u32 = 2614 ; pub const DILITHIUM_MAX_PRV_KEY_DER_SIZE : u32 = 4924 ; pub const DILITHIUM_MAX_BOTH_KEY_DER_SIZE : u32 = 7520 ; pub const DILITHIUM_MAX_BOTH_KEY_PEM_SIZE : u32 = 10267 ; pub const DILITHIUM_MAX_ID_LEN : u32 = 32 ; pub const DILITHIUM_MAX_LABEL_LEN : u32 = 32 ; pub const WC_ML_DSA_DRAFT : u32 = 10 ; pub const WC_ML_DSA_44 : u32 = 2 ; pub const WC_ML_DSA_65 : u32 = 3 ; pub const WC_ML_DSA_87 : u32 = 5 ; pub const WC_ML_DSA_44_DRAFT : u32 = 12 ; pub const WC_ML_DSA_65_DRAFT : u32 = 13 ; pub const WC_ML_DSA_87_DRAFT : u32 = 15 ; pub const DILITHIUM_ML_DSA_44_KEY_SIZE : u32 = 2560 ; pub const DILITHIUM_ML_DSA_44_SIG_SIZE : u32 = 2420 ; pub const DILITHIUM_ML_DSA_44_PUB_KEY_SIZE : u32 = 1312 ; pub const DILITHIUM_ML_DSA_44_PRV_KEY_SIZE : u32 = 3872 ; pub const DILITHIUM_ML_DSA_65_KEY_SIZE : u32 = 4032 ; pub const DILITHIUM_ML_DSA_65_SIG_SIZE : u32 = 3309 ; pub const DILITHIUM_ML_DSA_65_PUB_KEY_SIZE : u32 = 1952 ; pub const DILITHIUM_ML_DSA_65_PRV_KEY_SIZE : u32 = 5984 ; pub const DILITHIUM_ML_DSA_87_KEY_SIZE : u32 = 4896 ; pub const DILITHIUM_ML_DSA_87_SIG_SIZE : u32 = 4627 ; pub const DILITHIUM_ML_DSA_87_PUB_KEY_SIZE : u32 = 2592 ; pub const DILITHIUM_ML_DSA_87_PRV_KEY_SIZE : u32 = 7488 ; pub const WC_CTC_NAME_SIZE : u32 = 64 ; pub const WC_CTC_MAX_ALT_SIZE : u32 = 16384 ; pub const WC_CTC_MAX_CRLINFO_SZ : u32 = 200 ; pub const WOLFSSL_ASN1_INTEGER_MAX : u32 = 20 ; pub const CTC_MAX_EKU_OID_SZ : u32 = 0 ; pub const CTC_MAX_ATTRIB : u32 = 4 ; pub const NUM_CUSTOM_EXT : u32 = 16 ; pub const ASN_MAX_DEPTH : u32 = 16 ; pub const EXTERNAL_SERIAL_SIZE : u32 = 32 ; pub const ASN_UTC_TIME_SIZE : u32 = 14 ; pub const ASN_GENERALIZED_TIME_SIZE : u32 = 16 ; pub const ASN_GENERALIZED_TIME_MAX : u32 = 68 ; pub const WOLFSSL_COMMON_NAME : & [u8 ; 5] = b"/CN=\0" ; pub const WOLFSSL_LN_COMMON_NAME : & [u8 ; 13] = b"/commonName=\0" ; pub const WOLFSSL_SUR_NAME : & [u8 ; 5] = b"/SN=\0" ; pub const WOLFSSL_SERIAL_NUMBER : & [u8 ; 15] = b"/serialNumber=\0" ; pub const WOLFSSL_COUNTRY_NAME : & [u8 ; 4] = b"/C=\0" ; pub const WOLFSSL_LN_COUNTRY_NAME : & [u8 ; 14] = b"/countryName=\0" ; pub const WOLFSSL_LOCALITY_NAME : & [u8 ; 4] = b"/L=\0" ; pub const WOLFSSL_LN_LOCALITY_NAME : & [u8 ; 15] = b"/localityName=\0" ; pub const WOLFSSL_STATE_NAME : & [u8 ; 5] = b"/ST=\0" ; pub const WOLFSSL_LN_STATE_NAME : & [u8 ; 22] = b"/stateOrProvinceName=\0" ; pub const WOLFSSL_STREET_ADDR_NAME : & [u8 ; 9] = b"/street=\0" ; pub const WOLFSSL_LN_STREET_ADDR_NAME : & [u8 ; 16] = b"/streetAddress=\0" ; pub const WOLFSSL_POSTAL_NAME : & [u8 ; 13] = b"/postalCode=\0" ; pub const WOLFSSL_ORG_NAME : & [u8 ; 4] = b"/O=\0" ; pub const WOLFSSL_LN_ORG_NAME : & [u8 ; 19] = b"/organizationName=\0" ; pub const WOLFSSL_ORGUNIT_NAME : & [u8 ; 5] = b"/OU=\0" ; pub const WOLFSSL_LN_ORGUNIT_NAME : & [u8 ; 25] = b"/organizationalUnitName=\0" ; pub const WOLFSSL_DOMAIN_COMPONENT : & [u8 ; 5] = b"/DC=\0" ; pub const WOLFSSL_LN_DOMAIN_COMPONENT : & [u8 ; 18] = b"/domainComponent=\0" ; pub const WOLFSSL_BUS_CAT : & [u8 ; 19] = b"/businessCategory=\0" ; pub const WOLFSSL_JOI_C : & [u8 ; 16] = b"/jurisdictionC=\0" ; pub const WOLFSSL_JOI_ST : & [u8 ; 17] = b"/jurisdictionST=\0" ; pub const WOLFSSL_EMAIL_ADDR : & [u8 ; 15] = b"/emailAddress=\0" ; pub const WOLFSSL_USER_ID : & [u8 ; 6] = b"/UID=\0" ; pub const WOLFSSL_RFC822_MAILBOX : & [u8 ; 16] = b"/rfc822Mailbox=\0" ; pub const WOLFSSL_FAVOURITE_DRINK : & [u8 ; 17] = b"/favouriteDrink=\0" ; pub const WOLFSSL_CONTENT_TYPE : & [u8 ; 14] = b"/contentType=\0" ; pub const WOLFSSL_MAX_ALT_NAMES : u32 = 1024 ; pub const WOLFSSL_MAX_NAME_CONSTRAINTS : u32 = 128 ; pub const WC_NID_undef : u32 = 0 ; pub const WC_MAX_CERT_VERIFY_SZ : u32 = 6000 ; pub const ASN_JOI_PREFIX_SZ : u32 = 10 ; pub const ASN_JOI_PREFIX : & [u8 ; 11] = b"+\x06\x01\x04\x01\x827<\x02\x01\0" ; pub const ASN_JOI_C : u32 = 3 ; pub const ASN_JOI_ST : u32 = 2 ; pub const WC_ASN_NAME_MAX : u32 = 360 ; pub const ASN1_OID_DOTTED_MAX_SZ : u32 = 16 ; pub const WC_MAX_NAME_ENTRIES : u32 = 14 ; pub const MAX_NAME_ENTRIES : u32 = 14 ; pub const KEYUSE_DIGITAL_SIG : u32 = 128 ; pub const KEYUSE_CONTENT_COMMIT : u32 = 64 ; pub const KEYUSE_KEY_ENCIPHER : u32 = 32 ; pub const KEYUSE_DATA_ENCIPHER : u32 = 16 ; pub const KEYUSE_KEY_AGREE : u32 = 8 ; pub const KEYUSE_KEY_CERT_SIGN : u32 = 4 ; pub const KEYUSE_CRL_SIGN : u32 = 2 ; pub const KEYUSE_ENCIPHER_ONLY : u32 = 1 ; pub const KEYUSE_DECIPHER_ONLY : u32 = 32768 ; pub const EXTKEYUSE_USER : u32 = 128 ; pub const EXTKEYUSE_OCSP_SIGN : u32 = 64 ; pub const EXTKEYUSE_TIMESTAMP : u32 = 32 ; pub const EXTKEYUSE_EMAILPROT : u32 = 16 ; pub const EXTKEYUSE_CODESIGN : u32 = 8 ; pub const EXTKEYUSE_CLIENT_AUTH : u32 = 4 ; pub const EXTKEYUSE_SERVER_AUTH : u32 = 2 ; pub const EXTKEYUSE_ANY : u32 = 1 ; pub const WC_NS_SSL_CLIENT : u32 = 128 ; pub const WC_NS_SSL_SERVER : u32 = 64 ; pub const WC_NS_SMIME : u32 = 32 ; pub const WC_NS_OBJSIGN : u32 = 16 ; pub const WC_NS_SSL_CA : u32 = 4 ; pub const WC_NS_SMIME_CA : u32 = 2 ; pub const WC_NS_OBJSIGN_CA : u32 = 1 ; pub const DOMAIN_COMPONENT_MAX : u32 = 10 ; pub const WOLFSSL_MAX_PATH_LEN : u32 = 127 ; pub const WOLFSSL_MAX_AIA_ENTRIES : u32 = 8 ; pub const SIGNER_DIGEST_SIZE : u32 = 20 ; pub const PKCS_MAX_KEY_SIZE : u32 = 64 ; pub const MAX_KEY_SIZE : u32 = 64 ; pub const MAX_UNICODE_SZ : u32 = 256 ; pub const LIBWOLFSSL_VERSION_STRING : & [u8 ; 6] = b"5.9.1\0" ; pub const LIBWOLFSSL_VERSION_HEX : u32 = 83922945 ; pub const WOLFSSL_VERSION : & [u8 ; 6] = b"5.9.1\0" ; pub const _ERRNO_H : u32 = 1 ; pub const _BITS_ERRNO_H : u32 = 1 ; pub const EPERM : u32 = 1 ; pub const ENOENT : u32 = 2 ; pub const ESRCH : u32 = 3 ; pub const EINTR : u32 = 4 ; pub const EIO : u32 = 5 ; pub const ENXIO : u32 = 6 ; pub const E2BIG : u32 = 7 ; pub const ENOEXEC : u32 = 8 ; pub const EBADF : u32 = 9 ; pub const ECHILD : u32 = 10 ; pub const EAGAIN : u32 = 11 ; pub const ENOMEM : u32 = 12 ; pub const EACCES : u32 = 13 ; pub const EFAULT : u32 = 14 ; pub const ENOTBLK : u32 = 15 ; pub const EBUSY : u32 = 16 ; pub const EEXIST : u32 = 17 ; pub const EXDEV : u32 = 18 ; pub const ENODEV : u32 = 19 ; pub const ENOTDIR : u32 = 20 ; pub const EISDIR : u32 = 21 ; pub const EINVAL : u32 = 22 ; pub const ENFILE : u32 = 23 ; pub const EMFILE : u32 = 24 ; pub const ENOTTY : u32 = 25 ; pub const ETXTBSY : u32 = 26 ; pub const EFBIG : u32 = 27 ; pub const ENOSPC : u32 = 28 ; pub const ESPIPE : u32 = 29 ; pub const EROFS : u32 = 30 ; pub const EMLINK : u32 = 31 ; pub const EPIPE : u32 = 32 ; pub const EDOM : u32 = 33 ; pub const ERANGE : u32 = 34 ; pub const EDEADLK : u32 = 35 ; pub const ENAMETOOLONG : u32 = 36 ; pub const ENOLCK : u32 = 37 ; pub const ENOSYS : u32 = 38 ; pub const ENOTEMPTY : u32 = 39 ; pub const ELOOP : u32 = 40 ; pub const EWOULDBLOCK : u32 = 11 ; pub const ENOMSG : u32 = 42 ; pub const EIDRM : u32 = 43 ; pub const ECHRNG : u32 = 44 ; pub const EL2NSYNC : u32 = 45 ; pub const EL3HLT : u32 = 46 ; pub const EL3RST : u32 = 47 ; pub const ELNRNG : u32 = 48 ; pub const EUNATCH : u32 = 49 ; pub const ENOCSI : u32 = 50 ; pub const EL2HLT : u32 = 51 ; pub const EBADE : u32 = 52 ; pub const EBADR : u32 = 53 ; pub const EXFULL : u32 = 54 ; pub const ENOANO : u32 = 55 ; pub const EBADRQC : u32 = 56 ; pub const EBADSLT : u32 = 57 ; pub const EDEADLOCK : u32 = 35 ; pub const EBFONT : u32 = 59 ; pub const ENOSTR : u32 = 60 ; pub const ENODATA : u32 = 61 ; pub const ETIME : u32 = 62 ; pub const ENOSR : u32 = 63 ; pub const ENONET : u32 = 64 ; pub const ENOPKG : u32 = 65 ; pub const EREMOTE : u32 = 66 ; pub const ENOLINK : u32 = 67 ; pub const EADV : u32 = 68 ; pub const ESRMNT : u32 = 69 ; pub const ECOMM : u32 = 70 ; pub const EPROTO : u32 = 71 ; pub const EMULTIHOP : u32 = 72 ; pub const EDOTDOT : u32 = 73 ; pub const EBADMSG : u32 = 74 ; pub const EOVERFLOW : u32 = 75 ; pub const ENOTUNIQ : u32 = 76 ; pub const EBADFD : u32 = 77 ; pub const EREMCHG : u32 = 78 ; pub const ELIBACC : u32 = 79 ; pub const ELIBBAD : u32 = 80 ; pub const ELIBSCN : u32 = 81 ; pub const ELIBMAX : u32 = 82 ; pub const ELIBEXEC : u32 = 83 ; pub const EILSEQ : u32 = 84 ; pub const ERESTART : u32 = 85 ; pub const ESTRPIPE : u32 = 86 ; pub const EUSERS : u32 = 87 ; pub const ENOTSOCK : u32 = 88 ; pub const EDESTADDRREQ : u32 = 89 ; pub const EMSGSIZE : u32 = 90 ; pub const EPROTOTYPE : u32 = 91 ; pub const ENOPROTOOPT : u32 = 92 ; pub const EPROTONOSUPPORT : u32 = 93 ; pub const ESOCKTNOSUPPORT : u32 = 94 ; pub const EOPNOTSUPP : u32 = 95 ; pub const EPFNOSUPPORT : u32 = 96 ; pub const EAFNOSUPPORT : u32 = 97 ; pub const EADDRINUSE : u32 = 98 ; pub const EADDRNOTAVAIL : u32 = 99 ; pub const ENETDOWN : u32 = 100 ; pub const ENETUNREACH : u32 = 101 ; pub const ENETRESET : u32 = 102 ; pub const ECONNABORTED : u32 = 103 ; pub const ECONNRESET : u32 = 104 ; pub const ENOBUFS : u32 = 105 ; pub const EISCONN : u32 = 106 ; pub const ENOTCONN : u32 = 107 ; pub const ESHUTDOWN : u32 = 108 ; pub const ETOOMANYREFS : u32 = 109 ; pub const ETIMEDOUT : u32 = 110 ; pub const ECONNREFUSED : u32 = 111 ; pub const EHOSTDOWN : u32 = 112 ; pub const EHOSTUNREACH : u32 = 113 ; pub const EALREADY : u32 = 114 ; pub const EINPROGRESS : u32 = 115 ; pub const ESTALE : u32 = 116 ; pub const EUCLEAN : u32 = 117 ; pub const ENOTNAM : u32 = 118 ; pub const ENAVAIL : u32 = 119 ; pub const EISNAM : u32 = 120 ; pub const EREMOTEIO : u32 = 121 ; pub const EDQUOT : u32 = 122 ; pub const ENOMEDIUM : u32 = 123 ; pub const EMEDIUMTYPE : u32 = 124 ; pub const ECANCELED : u32 = 125 ; pub const ENOKEY : u32 = 126 ; pub const EKEYEXPIRED : u32 = 127 ; pub const EKEYREVOKED : u32 = 128 ; pub const EKEYREJECTED : u32 = 129 ; pub const EOWNERDEAD : u32 = 130 ; pub const ENOTRECOVERABLE : u32 = 131 ; pub const ERFKILL : u32 = 132 ; pub const EHWPOISON : u32 = 133 ; pub const ENOTSUP : u32 = 95 ; pub const _FCNTL_H : u32 = 1 ; pub const __O_LARGEFILE : u32 = 0 ; pub const F_GETLK64 : u32 = 5 ; pub const F_SETLK64 : u32 = 6 ; pub const F_SETLKW64 : u32 = 7 ; pub const O_ACCMODE : u32 = 3 ; pub const O_RDONLY : u32 = 0 ; pub const O_WRONLY : u32 = 1 ; pub const O_RDWR : u32 = 2 ; pub const O_CREAT : u32 = 64 ; pub const O_EXCL : u32 = 128 ; pub const O_NOCTTY : u32 = 256 ; pub const O_TRUNC : u32 = 512 ; pub const O_APPEND : u32 = 1024 ; pub const O_NONBLOCK : u32 = 2048 ; pub const O_NDELAY : u32 = 2048 ; pub const O_SYNC : u32 = 1052672 ; pub const O_FSYNC : u32 = 1052672 ; pub const O_ASYNC : u32 = 8192 ; pub const __O_DIRECTORY : u32 = 65536 ; pub const __O_NOFOLLOW : u32 = 131072 ; pub const __O_CLOEXEC : u32 = 524288 ; pub const __O_DIRECT : u32 = 16384 ; pub const __O_NOATIME : u32 = 262144 ; pub const __O_PATH : u32 = 2097152 ; pub const __O_DSYNC : u32 = 4096 ; pub const __O_TMPFILE : u32 = 4259840 ; pub const F_GETLK : u32 = 5 ; pub const F_SETLK : u32 = 6 ; pub const F_SETLKW : u32 = 7 ; pub const O_DIRECTORY : u32 = 65536 ; pub const O_NOFOLLOW : u32 = 131072 ; pub const O_CLOEXEC : u32 = 524288 ; pub const O_DSYNC : u32 = 4096 ; pub const O_RSYNC : u32 = 1052672 ; pub const F_DUPFD : u32 = 0 ; pub const F_GETFD : u32 = 1 ; pub const F_SETFD : u32 = 2 ; pub const F_GETFL : u32 = 3 ; pub const F_SETFL : u32 = 4 ; pub const __F_SETOWN : u32 = 8 ; pub const __F_GETOWN : u32 = 9 ; pub const F_SETOWN : u32 = 8 ; pub const F_GETOWN : u32 = 9 ; pub const __F_SETSIG : u32 = 10 ; pub const __F_GETSIG : u32 = 11 ; pub const __F_SETOWN_EX : u32 = 15 ; pub const __F_GETOWN_EX : u32 = 16 ; pub const F_DUPFD_CLOEXEC : u32 = 1030 ; pub const FD_CLOEXEC : u32 = 1 ; pub const F_RDLCK : u32 = 0 ; pub const F_WRLCK : u32 = 1 ; pub const F_UNLCK : u32 = 2 ; pub const F_EXLCK : u32 = 4 ; pub const F_SHLCK : u32 = 8 ; pub const LOCK_SH : u32 = 1 ; pub const LOCK_EX : u32 = 2 ; pub const LOCK_NB : u32 = 4 ; pub const LOCK_UN : u32 = 8 ; pub const FAPPEND : u32 = 1024 ; pub const FFSYNC : u32 = 1052672 ; pub const FASYNC : u32 = 8192 ; pub const FNONBLOCK : u32 = 2048 ; pub const FNDELAY : u32 = 2048 ; pub const __POSIX_FADV_DONTNEED : u32 = 4 ; pub const __POSIX_FADV_NOREUSE : u32 = 5 ; pub const POSIX_FADV_NORMAL : u32 = 0 ; pub const POSIX_FADV_RANDOM : u32 = 1 ; pub const POSIX_FADV_SEQUENTIAL : u32 = 2 ; pub const POSIX_FADV_WILLNEED : u32 = 3 ; pub const POSIX_FADV_DONTNEED : u32 = 4 ; pub const POSIX_FADV_NOREUSE : u32 = 5 ; pub const AT_FDCWD : i32 = - 100 ; pub const AT_SYMLINK_NOFOLLOW : u32 = 256 ; pub const AT_REMOVEDIR : u32 = 512 ; pub const AT_SYMLINK_FOLLOW : u32 = 1024 ; pub const AT_EACCESS : u32 = 512 ; pub const _SYS_SOCKET_H : u32 = 1 ; pub const __iovec_defined : u32 = 1 ; pub const PF_UNSPEC : u32 = 0 ; pub const PF_LOCAL : u32 = 1 ; pub const PF_UNIX : u32 = 1 ; pub const PF_FILE : u32 = 1 ; pub const PF_INET : u32 = 2 ; pub const PF_AX25 : u32 = 3 ; pub const PF_IPX : u32 = 4 ; pub const PF_APPLETALK : u32 = 5 ; pub const PF_NETROM : u32 = 6 ; pub const PF_BRIDGE : u32 = 7 ; pub const PF_ATMPVC : u32 = 8 ; pub const PF_X25 : u32 = 9 ; pub const PF_INET6 : u32 = 10 ; pub const PF_ROSE : u32 = 11 ; pub const PF_DECnet : u32 = 12 ; pub const PF_NETBEUI : u32 = 13 ; pub const PF_SECURITY : u32 = 14 ; pub const PF_KEY : u32 = 15 ; pub const PF_NETLINK : u32 = 16 ; pub const PF_ROUTE : u32 = 16 ; pub const PF_PACKET : u32 = 17 ; pub const PF_ASH : u32 = 18 ; pub const PF_ECONET : u32 = 19 ; pub const PF_ATMSVC : u32 = 20 ; pub const PF_RDS : u32 = 21 ; pub const PF_SNA : u32 = 22 ; pub const PF_IRDA : u32 = 23 ; pub const PF_PPPOX : u32 = 24 ; pub const PF_WANPIPE : u32 = 25 ; pub const PF_LLC : u32 = 26 ; pub const PF_IB : u32 = 27 ; pub const PF_MPLS : u32 = 28 ; pub const PF_CAN : u32 = 29 ; pub const PF_TIPC : u32 = 30 ; pub const PF_BLUETOOTH : u32 = 31 ; pub const PF_IUCV : u32 = 32 ; pub const PF_RXRPC : u32 = 33 ; pub const PF_ISDN : u32 = 34 ; pub const PF_PHONET : u32 = 35 ; pub const PF_IEEE802154 : u32 = 36 ; pub const PF_CAIF : u32 = 37 ; pub const PF_ALG : u32 = 38 ; pub const PF_NFC : u32 = 39 ; pub const PF_VSOCK : u32 = 40 ; pub const PF_KCM : u32 = 41 ; pub const PF_QIPCRTR : u32 = 42 ; pub const PF_SMC : u32 = 43 ; pub const PF_XDP : u32 = 44 ; pub const PF_MCTP : u32 = 45 ; pub const PF_MAX : u32 = 46 ; pub const AF_UNSPEC : u32 = 0 ; pub const AF_LOCAL : u32 = 1 ; pub const AF_UNIX : u32 = 1 ; pub const AF_FILE : u32 = 1 ; pub const AF_INET : u32 = 2 ; pub const AF_AX25 : u32 = 3 ; pub const AF_IPX : u32 = 4 ; pub const AF_APPLETALK : u32 = 5 ; pub const AF_NETROM : u32 = 6 ; pub const AF_BRIDGE : u32 = 7 ; pub const AF_ATMPVC : u32 = 8 ; pub const AF_X25 : u32 = 9 ; pub const AF_INET6 : u32 = 10 ; pub const AF_ROSE : u32 = 11 ; pub const AF_DECnet : u32 = 12 ; pub const AF_NETBEUI : u32 = 13 ; pub const AF_SECURITY : u32 = 14 ; pub const AF_KEY : u32 = 15 ; pub const AF_NETLINK : u32 = 16 ; pub const AF_ROUTE : u32 = 16 ; pub const AF_PACKET : u32 = 17 ; pub const AF_ASH : u32 = 18 ; pub const AF_ECONET : u32 = 19 ; pub const AF_ATMSVC : u32 = 20 ; pub const AF_RDS : u32 = 21 ; pub const AF_SNA : u32 = 22 ; pub const AF_IRDA : u32 = 23 ; pub const AF_PPPOX : u32 = 24 ; pub const AF_WANPIPE : u32 = 25 ; pub const AF_LLC : u32 = 26 ; pub const AF_IB : u32 = 27 ; pub const AF_MPLS : u32 = 28 ; pub const AF_CAN : u32 = 29 ; pub const AF_TIPC : u32 = 30 ; pub const AF_BLUETOOTH : u32 = 31 ; pub const AF_IUCV : u32 = 32 ; pub const AF_RXRPC : u32 = 33 ; pub const AF_ISDN : u32 = 34 ; pub const AF_PHONET : u32 = 35 ; pub const AF_IEEE802154 : u32 = 36 ; pub const AF_CAIF : u32 = 37 ; pub const AF_ALG : u32 = 38 ; pub const AF_NFC : u32 = 39 ; pub const AF_VSOCK : u32 = 40 ; pub const AF_KCM : u32 = 41 ; pub const AF_QIPCRTR : u32 = 42 ; pub const AF_SMC : u32 = 43 ; pub const AF_XDP : u32 = 44 ; pub const AF_MCTP : u32 = 45 ; pub const AF_MAX : u32 = 46 ; pub const SOL_RAW : u32 = 255 ; pub const SOL_DECNET : u32 = 261 ; pub const SOL_X25 : u32 = 262 ; pub const SOL_PACKET : u32 = 263 ; pub const SOL_ATM : u32 = 264 ; pub const SOL_AAL : u32 = 265 ; pub const SOL_IRDA : u32 = 266 ; pub const SOL_NETBEUI : u32 = 267 ; pub const SOL_LLC : u32 = 268 ; pub const SOL_DCCP : u32 = 269 ; pub const SOL_NETLINK : u32 = 270 ; pub const SOL_TIPC : u32 = 271 ; pub const SOL_RXRPC : u32 = 272 ; pub const SOL_PPPOL2TP : u32 = 273 ; pub const SOL_BLUETOOTH : u32 = 274 ; pub const SOL_PNPIPE : u32 = 275 ; pub const SOL_RDS : u32 = 276 ; pub const SOL_IUCV : u32 = 277 ; pub const SOL_CAIF : u32 = 278 ; pub const SOL_ALG : u32 = 279 ; pub const SOL_NFC : u32 = 280 ; pub const SOL_KCM : u32 = 281 ; pub const SOL_TLS : u32 = 282 ; pub const SOL_XDP : u32 = 283 ; pub const SOL_MPTCP : u32 = 284 ; pub const SOL_MCTP : u32 = 285 ; pub const SOL_SMC : u32 = 286 ; pub const SOL_VSOCK : u32 = 287 ; pub const SOMAXCONN : u32 = 4096 ; pub const _BITS_SOCKADDR_H : u32 = 1 ; pub const _SS_SIZE : u32 = 128 ; pub const __BITS_PER_LONG : u32 = 64 ; pub const __BITS_PER_LONG_LONG : u32 = 64 ; pub const FIOSETOWN : u32 = 35073 ; pub const SIOCSPGRP : u32 = 35074 ; pub const FIOGETOWN : u32 = 35075 ; pub const SIOCGPGRP : u32 = 35076 ; pub const SIOCATMARK : u32 = 35077 ; pub const SIOCGSTAMP_OLD : u32 = 35078 ; pub const SIOCGSTAMPNS_OLD : u32 = 35079 ; pub const SOL_SOCKET : u32 = 1 ; pub const SO_DEBUG : u32 = 1 ; pub const SO_REUSEADDR : u32 = 2 ; pub const SO_TYPE : u32 = 3 ; pub const SO_ERROR : u32 = 4 ; pub const SO_DONTROUTE : u32 = 5 ; pub const SO_BROADCAST : u32 = 6 ; pub const SO_SNDBUF : u32 = 7 ; pub const SO_RCVBUF : u32 = 8 ; pub const SO_SNDBUFFORCE : u32 = 32 ; pub const SO_RCVBUFFORCE : u32 = 33 ; pub const SO_KEEPALIVE : u32 = 9 ; pub const SO_OOBINLINE : u32 = 10 ; pub const SO_NO_CHECK : u32 = 11 ; pub const SO_PRIORITY : u32 = 12 ; pub const SO_LINGER : u32 = 13 ; pub const SO_BSDCOMPAT : u32 = 14 ; pub const SO_REUSEPORT : u32 = 15 ; pub const SO_PASSCRED : u32 = 16 ; pub const SO_PEERCRED : u32 = 17 ; pub const SO_RCVLOWAT : u32 = 18 ; pub const SO_SNDLOWAT : u32 = 19 ; pub const SO_RCVTIMEO_OLD : u32 = 20 ; pub const SO_SNDTIMEO_OLD : u32 = 21 ; pub const SO_SECURITY_AUTHENTICATION : u32 = 22 ; pub const SO_SECURITY_ENCRYPTION_TRANSPORT : u32 = 23 ; pub const SO_SECURITY_ENCRYPTION_NETWORK : u32 = 24 ; pub const SO_BINDTODEVICE : u32 = 25 ; pub const SO_ATTACH_FILTER : u32 = 26 ; pub const SO_DETACH_FILTER : u32 = 27 ; pub const SO_GET_FILTER : u32 = 26 ; pub const SO_PEERNAME : u32 = 28 ; pub const SO_ACCEPTCONN : u32 = 30 ; pub const SO_PEERSEC : u32 = 31 ; pub const SO_PASSSEC : u32 = 34 ; pub const SO_MARK : u32 = 36 ; pub const SO_PROTOCOL : u32 = 38 ; pub const SO_DOMAIN : u32 = 39 ; pub const SO_RXQ_OVFL : u32 = 40 ; pub const SO_WIFI_STATUS : u32 = 41 ; pub const SCM_WIFI_STATUS : u32 = 41 ; pub const SO_PEEK_OFF : u32 = 42 ; pub const SO_NOFCS : u32 = 43 ; pub const SO_LOCK_FILTER : u32 = 44 ; pub const SO_SELECT_ERR_QUEUE : u32 = 45 ; pub const SO_BUSY_POLL : u32 = 46 ; pub const SO_MAX_PACING_RATE : u32 = 47 ; pub const SO_BPF_EXTENSIONS : u32 = 48 ; pub const SO_INCOMING_CPU : u32 = 49 ; pub const SO_ATTACH_BPF : u32 = 50 ; pub const SO_DETACH_BPF : u32 = 27 ; pub const SO_ATTACH_REUSEPORT_CBPF : u32 = 51 ; pub const SO_ATTACH_REUSEPORT_EBPF : u32 = 52 ; pub const SO_CNX_ADVICE : u32 = 53 ; pub const SCM_TIMESTAMPING_OPT_STATS : u32 = 54 ; pub const SO_MEMINFO : u32 = 55 ; pub const SO_INCOMING_NAPI_ID : u32 = 56 ; pub const SO_COOKIE : u32 = 57 ; pub const SCM_TIMESTAMPING_PKTINFO : u32 = 58 ; pub const SO_PEERGROUPS : u32 = 59 ; pub const SO_ZEROCOPY : u32 = 60 ; pub const SO_TXTIME : u32 = 61 ; pub const SCM_TXTIME : u32 = 61 ; pub const SO_BINDTOIFINDEX : u32 = 62 ; pub const SO_TIMESTAMP_OLD : u32 = 29 ; pub const SO_TIMESTAMPNS_OLD : u32 = 35 ; pub const SO_TIMESTAMPING_OLD : u32 = 37 ; pub const SO_TIMESTAMP_NEW : u32 = 63 ; pub const SO_TIMESTAMPNS_NEW : u32 = 64 ; pub const SO_TIMESTAMPING_NEW : u32 = 65 ; pub const SO_RCVTIMEO_NEW : u32 = 66 ; pub const SO_SNDTIMEO_NEW : u32 = 67 ; pub const SO_DETACH_REUSEPORT_BPF : u32 = 68 ; pub const SO_PREFER_BUSY_POLL : u32 = 69 ; pub const SO_BUSY_POLL_BUDGET : u32 = 70 ; pub const SO_NETNS_COOKIE : u32 = 71 ; pub const SO_BUF_LOCK : u32 = 72 ; pub const SO_RESERVE_MEM : u32 = 73 ; pub const SO_TXREHASH : u32 = 74 ; pub const SO_RCVMARK : u32 = 75 ; pub const SO_PASSPIDFD : u32 = 76 ; pub const SO_PEERPIDFD : u32 = 77 ; pub const SO_TIMESTAMP : u32 = 29 ; pub const SO_TIMESTAMPNS : u32 = 35 ; pub const SO_TIMESTAMPING : u32 = 37 ; pub const SO_RCVTIMEO : u32 = 20 ; pub const SO_SNDTIMEO : u32 = 21 ; pub const SCM_TIMESTAMP : u32 = 29 ; pub const SCM_TIMESTAMPNS : u32 = 35 ; pub const SCM_TIMESTAMPING : u32 = 37 ; pub const __osockaddr_defined : u32 = 1 ; pub const _ARPA_INET_H : u32 = 1 ; pub const _NETINET_IN_H : u32 = 1 ; pub const __USE_KERNEL_IPV6_DEFS : u32 = 0 ; pub const IP_OPTIONS : u32 = 4 ; pub const IP_HDRINCL : u32 = 3 ; pub const IP_TOS : u32 = 1 ; pub const IP_TTL : u32 = 2 ; pub const IP_RECVOPTS : u32 = 6 ; pub const IP_RETOPTS : u32 = 7 ; pub const IP_MULTICAST_IF : u32 = 32 ; pub const IP_MULTICAST_TTL : u32 = 33 ; pub const IP_MULTICAST_LOOP : u32 = 34 ; pub const IP_ADD_MEMBERSHIP : u32 = 35 ; pub const IP_DROP_MEMBERSHIP : u32 = 36 ; pub const IP_UNBLOCK_SOURCE : u32 = 37 ; pub const IP_BLOCK_SOURCE : u32 = 38 ; pub const IP_ADD_SOURCE_MEMBERSHIP : u32 = 39 ; pub const IP_DROP_SOURCE_MEMBERSHIP : u32 = 40 ; pub const IP_MSFILTER : u32 = 41 ; pub const MCAST_JOIN_GROUP : u32 = 42 ; pub const MCAST_BLOCK_SOURCE : u32 = 43 ; pub const MCAST_UNBLOCK_SOURCE : u32 = 44 ; pub const MCAST_LEAVE_GROUP : u32 = 45 ; pub const MCAST_JOIN_SOURCE_GROUP : u32 = 46 ; pub const MCAST_LEAVE_SOURCE_GROUP : u32 = 47 ; pub const MCAST_MSFILTER : u32 = 48 ; pub const IP_MULTICAST_ALL : u32 = 49 ; pub const IP_UNICAST_IF : u32 = 50 ; pub const MCAST_EXCLUDE : u32 = 0 ; pub const MCAST_INCLUDE : u32 = 1 ; pub const IP_ROUTER_ALERT : u32 = 5 ; pub const IP_PKTINFO : u32 = 8 ; pub const IP_PKTOPTIONS : u32 = 9 ; pub const IP_PMTUDISC : u32 = 10 ; pub const IP_MTU_DISCOVER : u32 = 10 ; pub const IP_RECVERR : u32 = 11 ; pub const IP_RECVTTL : u32 = 12 ; pub const IP_RECVTOS : u32 = 13 ; pub const IP_MTU : u32 = 14 ; pub const IP_FREEBIND : u32 = 15 ; pub const IP_IPSEC_POLICY : u32 = 16 ; pub const IP_XFRM_POLICY : u32 = 17 ; pub const IP_PASSSEC : u32 = 18 ; pub const IP_TRANSPARENT : u32 = 19 ; pub const IP_ORIGDSTADDR : u32 = 20 ; pub const IP_RECVORIGDSTADDR : u32 = 20 ; pub const IP_MINTTL : u32 = 21 ; pub const IP_NODEFRAG : u32 = 22 ; pub const IP_CHECKSUM : u32 = 23 ; pub const IP_BIND_ADDRESS_NO_PORT : u32 = 24 ; pub const IP_RECVFRAGSIZE : u32 = 25 ; pub const IP_RECVERR_RFC4884 : u32 = 26 ; pub const IP_PMTUDISC_DONT : u32 = 0 ; pub const IP_PMTUDISC_WANT : u32 = 1 ; pub const IP_PMTUDISC_DO : u32 = 2 ; pub const IP_PMTUDISC_PROBE : u32 = 3 ; pub const IP_PMTUDISC_INTERFACE : u32 = 4 ; pub const IP_PMTUDISC_OMIT : u32 = 5 ; pub const IP_LOCAL_PORT_RANGE : u32 = 51 ; pub const IP_PROTOCOL : u32 = 52 ; pub const SOL_IP : u32 = 0 ; pub const IP_DEFAULT_MULTICAST_TTL : u32 = 1 ; pub const IP_DEFAULT_MULTICAST_LOOP : u32 = 1 ; pub const IP_MAX_MEMBERSHIPS : u32 = 20 ; pub const IPV6_ADDRFORM : u32 = 1 ; pub const IPV6_2292PKTINFO : u32 = 2 ; pub const IPV6_2292HOPOPTS : u32 = 3 ; pub const IPV6_2292DSTOPTS : u32 = 4 ; pub const IPV6_2292RTHDR : u32 = 5 ; pub const IPV6_2292PKTOPTIONS : u32 = 6 ; pub const IPV6_CHECKSUM : u32 = 7 ; pub const IPV6_2292HOPLIMIT : u32 = 8 ; pub const IPV6_NEXTHOP : u32 = 9 ; pub const IPV6_AUTHHDR : u32 = 10 ; pub const IPV6_UNICAST_HOPS : u32 = 16 ; pub const IPV6_MULTICAST_IF : u32 = 17 ; pub const IPV6_MULTICAST_HOPS : u32 = 18 ; pub const IPV6_MULTICAST_LOOP : u32 = 19 ; pub const IPV6_JOIN_GROUP : u32 = 20 ; pub const IPV6_LEAVE_GROUP : u32 = 21 ; pub const IPV6_ROUTER_ALERT : u32 = 22 ; pub const IPV6_MTU_DISCOVER : u32 = 23 ; pub const IPV6_MTU : u32 = 24 ; pub const IPV6_RECVERR : u32 = 25 ; pub const IPV6_V6ONLY : u32 = 26 ; pub const IPV6_JOIN_ANYCAST : u32 = 27 ; pub const IPV6_LEAVE_ANYCAST : u32 = 28 ; pub const IPV6_MULTICAST_ALL : u32 = 29 ; pub const IPV6_ROUTER_ALERT_ISOLATE : u32 = 30 ; pub const IPV6_RECVERR_RFC4884 : u32 = 31 ; pub const IPV6_IPSEC_POLICY : u32 = 34 ; pub const IPV6_XFRM_POLICY : u32 = 35 ; pub const IPV6_HDRINCL : u32 = 36 ; pub const IPV6_RECVPKTINFO : u32 = 49 ; pub const IPV6_PKTINFO : u32 = 50 ; pub const IPV6_RECVHOPLIMIT : u32 = 51 ; pub const IPV6_HOPLIMIT : u32 = 52 ; pub const IPV6_RECVHOPOPTS : u32 = 53 ; pub const IPV6_HOPOPTS : u32 = 54 ; pub const IPV6_RTHDRDSTOPTS : u32 = 55 ; pub const IPV6_RECVRTHDR : u32 = 56 ; pub const IPV6_RTHDR : u32 = 57 ; pub const IPV6_RECVDSTOPTS : u32 = 58 ; pub const IPV6_DSTOPTS : u32 = 59 ; pub const IPV6_RECVPATHMTU : u32 = 60 ; pub const IPV6_PATHMTU : u32 = 61 ; pub const IPV6_DONTFRAG : u32 = 62 ; pub const IPV6_RECVTCLASS : u32 = 66 ; pub const IPV6_TCLASS : u32 = 67 ; pub const IPV6_AUTOFLOWLABEL : u32 = 70 ; pub const IPV6_ADDR_PREFERENCES : u32 = 72 ; pub const IPV6_MINHOPCOUNT : u32 = 73 ; pub const IPV6_ORIGDSTADDR : u32 = 74 ; pub const IPV6_RECVORIGDSTADDR : u32 = 74 ; pub const IPV6_TRANSPARENT : u32 = 75 ; pub const IPV6_UNICAST_IF : u32 = 76 ; pub const IPV6_RECVFRAGSIZE : u32 = 77 ; pub const IPV6_FREEBIND : u32 = 78 ; pub const IPV6_ADD_MEMBERSHIP : u32 = 20 ; pub const IPV6_DROP_MEMBERSHIP : u32 = 21 ; pub const IPV6_RXHOPOPTS : u32 = 54 ; pub const IPV6_RXDSTOPTS : u32 = 59 ; pub const IPV6_PMTUDISC_DONT : u32 = 0 ; pub const IPV6_PMTUDISC_WANT : u32 = 1 ; pub const IPV6_PMTUDISC_DO : u32 = 2 ; pub const IPV6_PMTUDISC_PROBE : u32 = 3 ; pub const IPV6_PMTUDISC_INTERFACE : u32 = 4 ; pub const IPV6_PMTUDISC_OMIT : u32 = 5 ; pub const SOL_IPV6 : u32 = 41 ; pub const SOL_ICMPV6 : u32 = 58 ; pub const IPV6_RTHDR_LOOSE : u32 = 0 ; pub const IPV6_RTHDR_STRICT : u32 = 1 ; pub const IPV6_RTHDR_TYPE_0 : u32 = 0 ; pub const IN_CLASSA_NET : u32 = 4278190080 ; pub const IN_CLASSA_NSHIFT : u32 = 24 ; pub const IN_CLASSA_HOST : u32 = 16777215 ; pub const IN_CLASSA_MAX : u32 = 128 ; pub const IN_CLASSB_NET : u32 = 4294901760 ; pub const IN_CLASSB_NSHIFT : u32 = 16 ; pub const IN_CLASSB_HOST : u32 = 65535 ; pub const IN_CLASSB_MAX : u32 = 65536 ; pub const IN_CLASSC_NET : u32 = 4294967040 ; pub const IN_CLASSC_NSHIFT : u32 = 8 ; pub const IN_CLASSC_HOST : u32 = 255 ; pub const IN_LOOPBACKNET : u32 = 127 ; pub const INET_ADDRSTRLEN : u32 = 16 ; pub const INET6_ADDRSTRLEN : u32 = 46 ; pub const SOCKET_RECEIVING : u32 = 1 ; pub const SOCKET_SENDING : u32 = 2 ; pub const SOCKET_EWOULDBLOCK : u32 = 11 ; pub const SOCKET_EAGAIN : u32 = 11 ; pub const SOCKET_ETIMEDOUT : u32 = 110 ; pub const SOCKET_ECONNRESET : u32 = 104 ; pub const SOCKET_EINTR : u32 = 4 ; pub const SOCKET_EPIPE : u32 = 32 ; pub const SOCKET_ECONNREFUSED : u32 = 111 ; pub const SOCKET_ECONNABORTED : u32 = 103 ; pub const WOLFSSL_IP4 : u32 = 2 ; pub const WOLFSSL_IP6 : u32 = 10 ; pub const WOLFSSL_V_ASN1_BIT_STRING : u32 = 3 ; pub const WOLFSSL_V_ASN1_INTEGER : u32 = 2 ; pub const WOLFSSL_V_ASN1_NEG : u32 = 256 ; pub const WOLFSSL_V_ASN1_NEG_INTEGER : u32 = 258 ; pub const WOLFSSL_V_ASN1_NEG_ENUMERATED : u32 = 266 ; pub const WOLFSSL_ASN1_STRFLGS_ESC_2253 : u32 = 1 ; pub const WOLFSSL_ASN1_STRFLGS_ESC_CTRL : u32 = 2 ; pub const WOLFSSL_ASN1_STRFLGS_ESC_MSB : u32 = 4 ; pub const WOLFSSL_ASN1_STRFLGS_ESC_QUOTE : u32 = 8 ; pub const WOLFSSL_ASN1_STRFLGS_UTF8_CONVERT : u32 = 16 ; pub const WOLFSSL_ASN1_STRFLGS_IGNORE_TYPE : u32 = 32 ; pub const WOLFSSL_ASN1_STRFLGS_SHOW_TYPE : u32 = 64 ; pub const WOLFSSL_ASN1_STRFLGS_DUMP_ALL : u32 = 128 ; pub const WOLFSSL_ASN1_STRFLGS_DUMP_UNKNOWN : u32 = 256 ; pub const WOLFSSL_ASN1_STRFLGS_DUMP_DER : u32 = 512 ; pub const WOLFSSL_ASN1_STRFLGS_RFC2253 : u32 = 791 ; pub const WOLFSSL_MBSTRING_UTF8 : u32 = 4096 ; pub const WOLFSSL_MBSTRING_ASC : u32 = 4097 ; pub const WOLFSSL_MBSTRING_BMP : u32 = 4098 ; pub const WOLFSSL_MBSTRING_UNIV : u32 = 4100 ; pub const WOLFSSL_V_ASN1_EOC : u32 = 0 ; pub const WOLFSSL_V_ASN1_BOOLEAN : u32 = 1 ; pub const WOLFSSL_V_ASN1_OCTET_STRING : u32 = 4 ; pub const WOLFSSL_V_ASN1_NULL : u32 = 5 ; pub const WOLFSSL_V_ASN1_OBJECT : u32 = 6 ; pub const WOLFSSL_V_ASN1_UTF8STRING : u32 = 12 ; pub const WOLFSSL_V_ASN1_SEQUENCE : u32 = 16 ; pub const WOLFSSL_V_ASN1_SET : u32 = 17 ; pub const WOLFSSL_V_ASN1_PRINTABLESTRING : u32 = 19 ; pub const WOLFSSL_V_ASN1_T61STRING : u32 = 20 ; pub const WOLFSSL_V_ASN1_IA5STRING : u32 = 22 ; pub const WOLFSSL_V_ASN1_UTCTIME : u32 = 23 ; pub const WOLFSSL_V_ASN1_GENERALIZEDTIME : u32 = 24 ; pub const WOLFSSL_V_ASN1_UNIVERSALSTRING : u32 = 28 ; pub const WOLFSSL_V_ASN1_BMPSTRING : u32 = 30 ; pub const WOLFSSL_V_ASN1_CONSTRUCTED : u32 = 32 ; pub const WOLFSSL_ASN1_STRING_FLAG_BITS_LEFT : u32 = 8 ; pub const WOLFSSL_ASN1_STRING_FLAG_NDEF : u32 = 16 ; pub const WOLFSSL_ASN1_STRING_FLAG_CONT : u32 = 32 ; pub const WOLFSSL_ASN1_STRING_FLAG_MSTRING : u32 = 64 ; pub const WOLFSSL_ASN1_STRING_FLAG_EMBED : u32 = 128 ; pub const WOLFSSL_MAX_SNAME : u32 = 40 ; pub const WOLFSSL_HOST_NAME_MAX : u32 = 256 ; pub const WOLFSSL_ASN1_DYNAMIC : u32 = 1 ; pub const WOLFSSL_ASN1_DYNAMIC_DATA : u32 = 2 ; pub const WOLFSSL_ALWAYS_CHECK_SUBJECT : u32 = 1 ; pub const WOLFSSL_NO_WILDCARDS : u32 = 2 ; pub const WOLFSSL_NO_PARTIAL_WILDCARDS : u32 = 4 ; pub const WOLFSSL_MULTI_LABEL_WILDCARDS : u32 = 8 ; pub const WOLFSSL_LEFT_MOST_WILDCARD_ONLY : u32 = 64 ; pub const WOLFSSL_MAX_MASTER_KEY_LENGTH : u32 = 48 ; pub const WOLFSSL_MAX_GROUP_COUNT : u32 = 36 ; pub const WOLFSSL_MODE_AUTO_RETRY_ATTEMPTS : u32 = 10 ; pub const WOLFSSL_LOAD_FLAG_NONE : u32 = 0 ; pub const WOLFSSL_LOAD_FLAG_IGNORE_ERR : u32 = 1 ; pub const WOLFSSL_LOAD_FLAG_DATE_ERR_OKAY : u32 = 2 ; pub const WOLFSSL_LOAD_FLAG_PEM_CA_ONLY : u32 = 4 ; pub const WOLFSSL_LOAD_VERIFY_DEFAULT_FLAGS : u32 = 0 ; pub const WOLFSSL_CIPHER_SUITE_FLAG_NONE : u32 = 0 ; pub const WOLFSSL_CIPHER_SUITE_FLAG_NAMEALIAS : u32 = 1 ; pub const WOLFSSL_DEFAULT_CIPHER_LIST : & [u8 ; 1] = b"\0" ; pub const _SYS_UIO_H : u32 = 1 ; pub const _BITS_UIO_LIM_H : u32 = 1 ; pub const __IOV_MAX : u32 = 1024 ; pub const UIO_MAXIOV : u32 = 1024 ; pub const WOLFSSL_CRL_MONITOR : u32 = 1 ; pub const WOLFSSL_CRL_START_MON : u32 = 2 ; pub const SSL2_VERSION : u32 = 2 ; pub const SSL3_VERSION : u32 = 768 ; pub const TLS1_VERSION : u32 = 769 ; pub const TLS1_1_VERSION : u32 = 770 ; pub const TLS1_2_VERSION : u32 = 771 ; pub const TLS1_3_VERSION : u32 = 772 ; pub const DTLS1_VERSION : u32 = 65279 ; pub const DTLS1_2_VERSION : u32 = 65277 ; pub const DTLS1_3_VERSION : u32 = 65276 ; pub const WOLFSSL_SNI_MIN_SIZE_CLIENT : u32 = 4 ; pub const WOLFSSL_SNI_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_EDI_MIN_SIZE_CLIENT : u32 = 0 ; pub const WOLFSSL_EDI_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_TCA_MIN_SIZE_CLIENT : u32 = 2 ; pub const WOLFSSL_TCA_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_CSR_MIN_SIZE_CLIENT : u32 = 5 ; pub const WOLFSSL_CSR_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_PKM_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_PKM_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_CWEP_MIN_SIZE_CLIENT : u32 = 0 ; pub const WOLFSSL_CWEP_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_CSR2_MIN_SIZE_CLIENT : u32 = 7 ; pub const WOLFSSL_CSR2_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_CID_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_CID_MIN_SIZE_SERVER : u32 = 1 ; pub const WOLFSSL_ALPN_MIN_SIZE_CLIENT : u32 = 2 ; pub const WOLFSSL_ALPN_MIN_SIZE_SERVER : u32 = 2 ; pub const WOLFSSL_SRTP_MIN_SIZE_CLIENT : u32 = 3 ; pub const WOLFSSL_SRTP_MIN_SIZE_SERVER : u32 = 3 ; pub const WOLFSSL_KS_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_KS_MIN_SIZE_SERVER : u32 = 1 ; pub const WOLFSSL_ETM_MIN_SIZE_CLIENT : u32 = 0 ; pub const WOLFSSL_ETM_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_PSK_MIN_SIZE_CLIENT : u32 = 2 ; pub const WOLFSSL_PSK_MIN_SIZE_SERVER : u32 = 2 ; pub const WOLFSSL_CCT_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_CCT_MIN_SIZE_SERVER : u32 = 1 ; pub const WOLFSSL_SCT_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_SCT_MIN_SIZE_SERVER : u32 = 1 ; pub const WOLFSSL_PHA_MIN_SIZE_CLIENT : u32 = 0 ; pub const WOLFSSL_PHA_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_THM_MIN_SIZE_CLIENT : u32 = 0 ; pub const WOLFSSL_THM_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_SA_MIN_SIZE_CLIENT : u32 = 2 ; pub const WOLFSSL_SA_MIN_SIZE_SERVER : u32 = 2 ; pub const WOLFSSL_SAC_MIN_SIZE_CLIENT : u32 = 2 ; pub const WOLFSSL_SAC_MIN_SIZE_SERVER : u32 = 2 ; pub const WOLFSSL_EC_MIN_SIZE_CLIENT : u32 = 2 ; pub const WOLFSSL_EC_MIN_SIZE_SERVER : u32 = 2 ; pub const WOLFSSL_ECH_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_ECH_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_MFL_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_MFL_MIN_SIZE_SERVER : u32 = 1 ; pub const WOLFSSL_CKE_MIN_SIZE_CLIENT : u32 = 3 ; pub const WOLFSSL_CKE_MIN_SIZE_SERVER : u32 = 3 ; pub const WOLFSSL_SV_MIN_SIZE_CLIENT : u32 = 2 ; pub const WOLFSSL_SV_MIN_SIZE_SERVER : u32 = 2 ; pub const WOLFSSL_SCR_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_SCR_MIN_SIZE_SERVER : u32 = 1 ; pub const WOLFSSL_PF_MIN_SIZE_CLIENT : u32 = 1 ; pub const WOLFSSL_PF_MIN_SIZE_SERVER : u32 = 1 ; pub const WOLFSSL_CAN_MIN_SIZE_CLIENT : u32 = 3 ; pub const WOLFSSL_CAN_MIN_SIZE_SERVER : u32 = 3 ; pub const WOLFSSL_QTP_MIN_SIZE_CLIENT : u32 = 0 ; pub const WOLFSSL_QTP_MIN_SIZE_SERVER : u32 = 0 ; pub const WOLFSSL_STK_MIN_SIZE_CLIENT : u32 = 0 ; pub const WOLFSSL_STK_MIN_SIZE_SERVER : u32 = 0 ; pub const ENCODING_TYPE_PEM : u32 = 1 ; pub const ENCODING_TYPE_ASN1 : u32 = 2 ; pub const TPM2_SPI_MAX_HZ : u32 = 33000000 ; pub const TPM_MD5_DIGEST_SIZE : u32 = 16 ; pub const TPM_SHA_DIGEST_SIZE : u32 = 20 ; pub const TPM_SHA224_DIGEST_SIZE : u32 = 28 ; pub const TPM_SHA256_DIGEST_SIZE : u32 = 32 ; pub const TPM_SHA384_DIGEST_SIZE : u32 = 48 ; pub const TPM_SHA512_DIGEST_SIZE : u32 = 64 ; pub const TPM_MAX_BLOCK_SIZE : u32 = 128 ; pub const TPM_MAX_DIGEST_SIZE : u32 = 64 ; pub const MAX_SPI_FRAMESIZE : u32 = 64 ; pub const TPM_STARTUP_TEST_TRIES : u32 = 2 ; pub const TPM_TIMEOUT_TRIES : u32 = 0 ; pub const TPM_SPI_WAIT_RETRY : u32 = 50 ; pub const WOLFTPM_MAX_RETRIES : u32 = 0 ; pub const MAX_SYM_BLOCK_SIZE : u32 = 20 ; pub const MAX_SYM_KEY_BYTES : u32 = 32 ; pub const LABEL_MAX_BUFFER : u32 = 32 ; pub const MAX_RSA_KEY_BITS : u32 = 2048 ; pub const MAX_RSA_KEY_BYTES : u32 = 512 ; pub const MAX_ECC_KEY_BITS : u32 = 521 ; pub const MAX_ECC_KEY_BYTES : u32 = 66 ; pub const MAX_AES_KEY_BITS : u32 = 256 ; pub const MAX_AES_BLOCK_SIZE_BYTES : u32 = 16 ; pub const MAX_AES_KEY_BYTES : u32 = 32 ; pub const XTPM_WAIT_POLLING_US : u32 = 10 ; pub const BUFFER_ALIGNMENT : u32 = 4 ; pub const IMPLEMENTATION_PCR : u32 = 24 ; pub const PLATFORM_PCR : u32 = 24 ; pub const DRTM_PCR : u32 = 17 ; pub const HCRTM_PCR : u32 = 0 ; pub const NUM_LOCALITIES : u32 = 1 ; pub const WOLFTPM_LOCALITY_MAX : u32 = 4 ; pub const MAX_HANDLE_NUM : u32 = 3 ; pub const MAX_ACTIVE_SESSIONS : u32 = 64 ; pub const MAX_LOADED_SESSIONS : u32 = 3 ; pub const MAX_SESSION_NUM : u32 = 3 ; pub const MAX_LOADED_OBJECTS : u32 = 3 ; pub const MIN_EVICT_OBJECTS : u32 = 2 ; pub const PCR_SELECT_MIN : u32 = 3 ; pub const PCR_SELECT_MAX : u32 = 3 ; pub const MAX_CONTEXT_SIZE : u32 = 2048 ; pub const MAX_DIGEST_BUFFER : u32 = 1024 ; pub const MAX_NV_INDEX_SIZE : u32 = 2048 ; pub const MAX_NV_BUFFER_SIZE : u32 = 768 ; pub const MAX_CAP_BUFFER : u32 = 1024 ; pub const NV_MEMORY_SIZE : u32 = 16384 ; pub const NUM_STATIC_PCR : u32 = 16 ; pub const MAX_ALG_LIST_SIZE : u32 = 64 ; pub const TIMER_PRESCALE : u32 = 100000 ; pub const PRIMARY_SEED_SIZE : u32 = 32 ; pub const NV_CLOCK_UPDATE_INTERVAL : u32 = 12 ; pub const NUM_POLICY_PCR : u32 = 1 ; pub const MAX_COMMAND_SIZE : u32 = 4096 ; pub const MAX_RESPONSE_SIZE : u32 = 4096 ; pub const ORDERLY_BITS : u32 = 8 ; pub const MAX_ORDERLY_COUNT : u32 = 255 ; pub const MAX_SYM_DATA : u32 = 128 ; pub const MAX_RNG_ENTROPY_SIZE : u32 = 64 ; pub const MAX_RNG_REQ_SIZE : u32 = 32 ; pub const RAM_INDEX_SPACE : u32 = 512 ; pub const RSA_DEFAULT_PUBLIC_EXPONENT : u32 = 65537 ; pub const ENABLE_PCR_NO_INCREMENT : u32 = 1 ; pub const CRT_FORMAT_RSA : u32 = 1 ; pub const PRIVATE_VENDOR_SPECIFIC_BYTES : u32 = 1280 ; pub const HASH_COUNT_SHA1 : u32 = 1 ; pub const HASH_COUNT_SHA256 : u32 = 1 ; pub const HASH_COUNT_SHA384 : u32 = 1 ; pub const HASH_COUNT_SHA512 : u32 = 1 ; pub const HASH_COUNT_SHA3 : u32 = 1 ; pub const HASH_COUNT : u32 = 5 ; pub const MAX_AC_HANDLES : u32 = 16 ; pub const WOLFTPM2_WRAP_RSA_KEY_BITS : u32 = 2048 ; pub const WOLFTPM2_WRAP_RSA_EXPONENT : u32 = 65537 ; pub const WOLFTPM2_WRAP_ECC_KEY_BITS : u32 = 4168 ; pub const TPM_SPEC_FAMILY : u32 = 841887744 ; pub const TPM_SPEC_LEVEL : u32 = 0 ; pub const TPM_SPEC_VERSION : u32 = 138 ; pub const TPM_SPEC_YEAR : u32 = 2016 ; pub const TPM_SPEC_DAY_OF_YEAR : u32 = 273 ; pub const TPM_GENERATED_VALUE : u32 = 4283712327 ; pub const TPM_MAX_DERIVATION_BITS : u32 = 8192 ; pub const HR_HANDLE_MASK : u32 = 16777215 ; pub const HR_RANGE_MASK : u32 = 4278190080 ; pub const HR_SHIFT : u32 = 24 ; pub const TPMA_STARTUP_CLEAR_phEnable : u32 = 1 ; pub const TPMA_STARTUP_CLEAR_shEnable : u32 = 2 ; pub const TPMA_STARTUP_CLEAR_ehEnable : u32 = 4 ; pub const TPMA_STARTUP_CLEAR_phEnableNV : u32 = 8 ; pub const TPMA_STARTUP_CLEAR_orderly : u32 = 2147483648 ; pub const TPM_NV_INDEX_index : u32 = 16777215 ; pub const TPM_NV_INDEX_RH_NV : u32 = 4278190080 ; pub const TPMA_NV_PPWRITE : u32 = 1 ; pub const TPMA_NV_OWNERWRITE : u32 = 2 ; pub const TPMA_NV_AUTHWRITE : u32 = 4 ; pub const TPMA_NV_POLICYWRITE : u32 = 8 ; pub const TPMA_NV_TPM_NT : u32 = 240 ; pub const TPMA_NV_POLICY_DELETE : u32 = 1024 ; pub const TPMA_NV_WRITELOCKED : u32 = 2048 ; pub const TPMA_NV_WRITEALL : u32 = 4096 ; pub const TPMA_NV_WRITEDEFINE : u32 = 8192 ; pub const TPMA_NV_WRITE_STCLEAR : u32 = 16384 ; pub const TPMA_NV_GLOBALLOCK : u32 = 32768 ; pub const TPMA_NV_PPREAD : u32 = 65536 ; pub const TPMA_NV_OWNERREAD : u32 = 131072 ; pub const TPMA_NV_AUTHREAD : u32 = 262144 ; pub const TPMA_NV_POLICYREAD : u32 = 524288 ; pub const TPMA_NV_NO_DA : u32 = 33554432 ; pub const TPMA_NV_ORDERLY : u32 = 67108864 ; pub const TPMA_NV_CLEAR_STCLEAR : u32 = 134217728 ; pub const TPMA_NV_READLOCKED : u32 = 268435456 ; pub const TPMA_NV_WRITTEN : u32 = 536870912 ; pub const TPMA_NV_PLATFORMCREATE : u32 = 1073741824 ; pub const TPMA_NV_READ_STCLEAR : u32 = 2147483648 ; pub const XFER_MAX_SIZE : u32 = 4096 ; pub const TPM_SES_PWD : u32 = 255 ; pub const WOLFTPM2_ENCRYPT : u32 = 0 ; pub const WOLFTPM2_DECRYPT : u32 = 1 ; pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __fsid_t"] [:: core :: mem :: size_of :: < __fsid_t > () - 8usize] ; ["Alignment of __fsid_t"] [:: core :: mem :: align_of :: < __fsid_t > () - 4usize] ; ["Offset of field: __fsid_t::__val"] [:: core :: mem :: offset_of ! (__fsid_t , __val) - 0usize] ; } ; pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: core :: ffi :: c_schar ; pub type int_fast16_t = :: core :: ffi :: c_long ; pub type int_fast32_t = :: core :: ffi :: c_long ; pub type int_fast64_t = :: core :: ffi :: c_long ; pub type uint_fast8_t = :: core :: ffi :: c_uchar ; pub type uint_fast16_t = :: core :: ffi :: c_ulong ; pub type uint_fast32_t = :: core :: ffi :: c_ulong ; pub type uint_fast64_t = :: core :: ffi :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type UINT8 = u8 ; pub type BYTE = u8 ; pub type INT8 = i8 ; pub type BOOL = :: core :: ffi :: c_int ; pub type UINT16 = u16 ; pub type INT16 = i16 ; pub type UINT32 = u32 ; pub type INT32 = i32 ; pub type UINT64 = u64 ; pub type INT64 = i64 ; pub type time_t = __time_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timespec"] [:: core :: mem :: size_of :: < timespec > () - 16usize] ; ["Alignment of timespec"] [:: core :: mem :: align_of :: < timespec > () - 8usize] ; ["Offset of field: timespec::tv_sec"] [:: core :: mem :: offset_of ! (timespec , tv_sec) - 0usize] ; ["Offset of field: timespec::tv_nsec"] [:: core :: mem :: offset_of ! (timespec , tv_nsec) - 8usize] ; } ; pub type pid_t = __pid_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sched_param { pub sched_priority : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sched_param"] [:: core :: mem :: size_of :: < sched_param > () - 4usize] ; ["Alignment of sched_param"] [:: core :: mem :: align_of :: < sched_param > () - 4usize] ; ["Offset of field: sched_param::sched_priority"] [:: core :: mem :: offset_of ! (sched_param , sched_priority) - 0usize] ; } ; pub type __cpu_mask = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cpu_set_t { pub __bits : [__cpu_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cpu_set_t"] [:: core :: mem :: size_of :: < cpu_set_t > () - 128usize] ; ["Alignment of cpu_set_t"] [:: core :: mem :: align_of :: < cpu_set_t > () - 8usize] ; ["Offset of field: cpu_set_t::__bits"] [:: core :: mem :: offset_of ! (cpu_set_t , __bits) - 0usize] ; } ; unsafe extern "C" { pub fn __sched_cpucount (__setsize : usize , __setp : * const cpu_set_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn __sched_cpualloc (__count : usize) -> * mut cpu_set_t ; } unsafe extern "C" { pub fn __sched_cpufree (__set : * mut cpu_set_t) ; } unsafe extern "C" { pub fn sched_setparam (__pid : __pid_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sched_getparam (__pid : __pid_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sched_setscheduler (__pid : __pid_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sched_getscheduler (__pid : __pid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sched_yield () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sched_get_priority_max (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sched_get_priority_min (__algorithm : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sched_rr_get_interval (__pid : __pid_t , __t : * mut timespec) -> :: core :: ffi :: c_int ; } pub type clock_t = __clock_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tm { pub tm_sec : :: core :: ffi :: c_int , pub tm_min : :: core :: ffi :: c_int , pub tm_hour : :: core :: ffi :: c_int , pub tm_mday : :: core :: ffi :: c_int , pub tm_mon : :: core :: ffi :: c_int , pub tm_year : :: core :: ffi :: c_int , pub tm_wday : :: core :: ffi :: c_int , pub tm_yday : :: core :: ffi :: c_int , pub tm_isdst : :: core :: ffi :: c_int , pub tm_gmtoff : :: core :: ffi :: c_long , pub tm_zone : * const :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tm"] [:: core :: mem :: size_of :: < tm > () - 56usize] ; ["Alignment of tm"] [:: core :: mem :: align_of :: < tm > () - 8usize] ; ["Offset of field: tm::tm_sec"] [:: core :: mem :: offset_of ! (tm , tm_sec) - 0usize] ; ["Offset of field: tm::tm_min"] [:: core :: mem :: offset_of ! (tm , tm_min) - 4usize] ; ["Offset of field: tm::tm_hour"] [:: core :: mem :: offset_of ! (tm , tm_hour) - 8usize] ; ["Offset of field: tm::tm_mday"] [:: core :: mem :: offset_of ! (tm , tm_mday) - 12usize] ; ["Offset of field: tm::tm_mon"] [:: core :: mem :: offset_of ! (tm , tm_mon) - 16usize] ; ["Offset of field: tm::tm_year"] [:: core :: mem :: offset_of ! (tm , tm_year) - 20usize] ; ["Offset of field: tm::tm_wday"] [:: core :: mem :: offset_of ! (tm , tm_wday) - 24usize] ; ["Offset of field: tm::tm_yday"] [:: core :: mem :: offset_of ! (tm , tm_yday) - 28usize] ; ["Offset of field: tm::tm_isdst"] [:: core :: mem :: offset_of ! (tm , tm_isdst) - 32usize] ; ["Offset of field: tm::tm_gmtoff"] [:: core :: mem :: offset_of ! (tm , tm_gmtoff) - 40usize] ; ["Offset of field: tm::tm_zone"] [:: core :: mem :: offset_of ! (tm , tm_zone) - 48usize] ; } ; pub type clockid_t = __clockid_t ; pub type timer_t = __timer_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct itimerspec { pub it_interval : timespec , pub it_value : timespec , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of itimerspec"] [:: core :: mem :: size_of :: < itimerspec > () - 32usize] ; ["Alignment of itimerspec"] [:: core :: mem :: align_of :: < itimerspec > () - 8usize] ; ["Offset of field: itimerspec::it_interval"] [:: core :: mem :: offset_of ! (itimerspec , it_interval) - 0usize] ; ["Offset of field: itimerspec::it_value"] [:: core :: mem :: offset_of ! (itimerspec , it_value) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sigevent { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_struct { pub __locales : [* mut __locale_data ; 13usize] , pub __ctype_b : * const :: core :: ffi :: c_ushort , pub __ctype_tolower : * const :: core :: ffi :: c_int , pub __ctype_toupper : * const :: core :: ffi :: c_int , pub __names : [* const :: core :: ffi :: c_char ; 13usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __locale_struct"] [:: core :: mem :: size_of :: < __locale_struct > () - 232usize] ; ["Alignment of __locale_struct"] [:: core :: mem :: align_of :: < __locale_struct > () - 8usize] ; ["Offset of field: __locale_struct::__locales"] [:: core :: mem :: offset_of ! (__locale_struct , __locales) - 0usize] ; ["Offset of field: __locale_struct::__ctype_b"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_b) - 104usize] ; ["Offset of field: __locale_struct::__ctype_tolower"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_tolower) - 112usize] ; ["Offset of field: __locale_struct::__ctype_toupper"] [:: core :: mem :: offset_of ! (__locale_struct , __ctype_toupper) - 120usize] ; ["Offset of field: __locale_struct::__names"] [:: core :: mem :: offset_of ! (__locale_struct , __names) - 128usize] ; } ; pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; unsafe extern "C" { pub fn clock () -> clock_t ; } unsafe extern "C" { pub fn time (__timer : * mut time_t) -> time_t ; } unsafe extern "C" { pub fn difftime (__time1 : time_t , __time0 : time_t) -> f64 ; } unsafe extern "C" { pub fn mktime (__tp : * mut tm) -> time_t ; } unsafe extern "C" { pub fn strftime (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm) -> usize ; } unsafe extern "C" { pub fn strftime_l (__s : * mut :: core :: ffi :: c_char , __maxsize : usize , __format : * const :: core :: ffi :: c_char , __tp : * const tm , __loc : locale_t) -> usize ; } unsafe extern "C" { pub fn gmtime (__timer : * const time_t) -> * mut tm ; } unsafe extern "C" { pub fn localtime (__timer : * const time_t) -> * mut tm ; } unsafe extern "C" { pub fn gmtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } unsafe extern "C" { pub fn localtime_r (__timer : * const time_t , __tp : * mut tm) -> * mut tm ; } unsafe extern "C" { pub fn asctime (__tp : * const tm) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn ctime (__timer : * const time_t) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn asctime_r (__tp : * const tm , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn ctime_r (__timer : * const time_t , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub static mut __tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } unsafe extern "C" { pub static mut __daylight : :: core :: ffi :: c_int ; } unsafe extern "C" { pub static mut __timezone : :: core :: ffi :: c_long ; } unsafe extern "C" { pub static mut tzname : [* mut :: core :: ffi :: c_char ; 2usize] ; } unsafe extern "C" { pub fn tzset () ; } unsafe extern "C" { pub static mut daylight : :: core :: ffi :: c_int ; } unsafe extern "C" { pub static mut timezone : :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn timegm (__tp : * mut tm) -> time_t ; } unsafe extern "C" { pub fn timelocal (__tp : * mut tm) -> time_t ; } unsafe extern "C" { pub fn dysize (__year : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn nanosleep (__requested_time : * const timespec , __remaining : * mut timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn clock_getres (__clock_id : clockid_t , __res : * mut timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn clock_gettime (__clock_id : clockid_t , __tp : * mut timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn clock_settime (__clock_id : clockid_t , __tp : * const timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn clock_nanosleep (__clock_id : clockid_t , __flags : :: core :: ffi :: c_int , __req : * const timespec , __rem : * mut timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn clock_getcpuclockid (__pid : pid_t , __clock_id : * mut clockid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn timer_create (__clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn timer_delete (__timerid : timer_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn timer_settime (__timerid : timer_t , __flags : :: core :: ffi :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn timer_gettime (__timerid : timer_t , __value : * mut itimerspec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn timer_getoverrun (__timerid : timer_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn timespec_get (__ts : * mut timespec , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: core :: ffi :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: core :: ffi :: c_uint , pub __high : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 8usize] ; ["Alignment of __atomic_wide_counter__bindgen_ty_1"] [:: core :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__low"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __low) - 0usize] ; ["Offset of field: __atomic_wide_counter__bindgen_ty_1::__high"] [:: core :: mem :: offset_of ! (__atomic_wide_counter__bindgen_ty_1 , __high) - 4usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __atomic_wide_counter"] [:: core :: mem :: size_of :: < __atomic_wide_counter > () - 8usize] ; ["Alignment of __atomic_wide_counter"] [:: core :: mem :: align_of :: < __atomic_wide_counter > () - 8usize] ; ["Offset of field: __atomic_wide_counter::__value64"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value64) - 0usize] ; ["Offset of field: __atomic_wide_counter::__value32"] [:: core :: mem :: offset_of ! (__atomic_wide_counter , __value32) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_list"] [:: core :: mem :: size_of :: < __pthread_internal_list > () - 16usize] ; ["Alignment of __pthread_internal_list"] [:: core :: mem :: align_of :: < __pthread_internal_list > () - 8usize] ; ["Offset of field: __pthread_internal_list::__prev"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __prev) - 0usize] ; ["Offset of field: __pthread_internal_list::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_list , __next) - 8usize] ; } ; pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_internal_slist"] [:: core :: mem :: size_of :: < __pthread_internal_slist > () - 8usize] ; ["Alignment of __pthread_internal_slist"] [:: core :: mem :: align_of :: < __pthread_internal_slist > () - 8usize] ; ["Offset of field: __pthread_internal_slist::__next"] [:: core :: mem :: offset_of ! (__pthread_internal_slist , __next) - 0usize] ; } ; pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: core :: ffi :: c_int , pub __count : :: core :: ffi :: c_uint , pub __owner : :: core :: ffi :: c_int , pub __nusers : :: core :: ffi :: c_uint , pub __kind : :: core :: ffi :: c_int , pub __spins : :: core :: ffi :: c_short , pub __elision : :: core :: ffi :: c_short , pub __list : __pthread_list_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_mutex_s"] [:: core :: mem :: size_of :: < __pthread_mutex_s > () - 40usize] ; ["Alignment of __pthread_mutex_s"] [:: core :: mem :: align_of :: < __pthread_mutex_s > () - 8usize] ; ["Offset of field: __pthread_mutex_s::__lock"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __lock) - 0usize] ; ["Offset of field: __pthread_mutex_s::__count"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __count) - 4usize] ; ["Offset of field: __pthread_mutex_s::__owner"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __owner) - 8usize] ; ["Offset of field: __pthread_mutex_s::__nusers"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __nusers) - 12usize] ; ["Offset of field: __pthread_mutex_s::__kind"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __kind) - 16usize] ; ["Offset of field: __pthread_mutex_s::__spins"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __spins) - 20usize] ; ["Offset of field: __pthread_mutex_s::__elision"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __elision) - 22usize] ; ["Offset of field: __pthread_mutex_s::__list"] [:: core :: mem :: offset_of ! (__pthread_mutex_s , __list) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: core :: ffi :: c_uint , pub __writers : :: core :: ffi :: c_uint , pub __wrphase_futex : :: core :: ffi :: c_uint , pub __writers_futex : :: core :: ffi :: c_uint , pub __pad3 : :: core :: ffi :: c_uint , pub __pad4 : :: core :: ffi :: c_uint , pub __cur_writer : :: core :: ffi :: c_int , pub __shared : :: core :: ffi :: c_int , pub __rwelision : :: core :: ffi :: c_schar , pub __pad1 : [:: core :: ffi :: c_uchar ; 7usize] , pub __pad2 : :: core :: ffi :: c_ulong , pub __flags : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_rwlock_arch_t"] [:: core :: mem :: size_of :: < __pthread_rwlock_arch_t > () - 56usize] ; ["Alignment of __pthread_rwlock_arch_t"] [:: core :: mem :: align_of :: < __pthread_rwlock_arch_t > () - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__readers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __readers) - 0usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers) - 4usize] ; ["Offset of field: __pthread_rwlock_arch_t::__wrphase_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __wrphase_futex) - 8usize] ; ["Offset of field: __pthread_rwlock_arch_t::__writers_futex"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __writers_futex) - 12usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad3"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad3) - 16usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad4"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad4) - 20usize] ; ["Offset of field: __pthread_rwlock_arch_t::__cur_writer"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __cur_writer) - 24usize] ; ["Offset of field: __pthread_rwlock_arch_t::__shared"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __shared) - 28usize] ; ["Offset of field: __pthread_rwlock_arch_t::__rwelision"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __rwelision) - 32usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad1"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad1) - 33usize] ; ["Offset of field: __pthread_rwlock_arch_t::__pad2"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __pad2) - 40usize] ; ["Offset of field: __pthread_rwlock_arch_t::__flags"] [:: core :: mem :: offset_of ! (__pthread_rwlock_arch_t , __flags) - 48usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __wseq : __atomic_wide_counter , pub __g1_start : __atomic_wide_counter , pub __g_refs : [:: core :: ffi :: c_uint ; 2usize] , pub __g_size : [:: core :: ffi :: c_uint ; 2usize] , pub __g1_orig_size : :: core :: ffi :: c_uint , pub __wrefs : :: core :: ffi :: c_uint , pub __g_signals : [:: core :: ffi :: c_uint ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cond_s"] [:: core :: mem :: size_of :: < __pthread_cond_s > () - 48usize] ; ["Alignment of __pthread_cond_s"] [:: core :: mem :: align_of :: < __pthread_cond_s > () - 8usize] ; ["Offset of field: __pthread_cond_s::__wseq"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wseq) - 0usize] ; ["Offset of field: __pthread_cond_s::__g1_start"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_start) - 8usize] ; ["Offset of field: __pthread_cond_s::__g_refs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_refs) - 16usize] ; ["Offset of field: __pthread_cond_s::__g_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_size) - 24usize] ; ["Offset of field: __pthread_cond_s::__g1_orig_size"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g1_orig_size) - 32usize] ; ["Offset of field: __pthread_cond_s::__wrefs"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __wrefs) - 36usize] ; ["Offset of field: __pthread_cond_s::__g_signals"] [:: core :: mem :: offset_of ! (__pthread_cond_s , __g_signals) - 40usize] ; } ; pub type __tss_t = :: core :: ffi :: c_uint ; pub type __thrd_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __once_flag"] [:: core :: mem :: size_of :: < __once_flag > () - 4usize] ; ["Alignment of __once_flag"] [:: core :: mem :: align_of :: < __once_flag > () - 4usize] ; ["Offset of field: __once_flag::__data"] [:: core :: mem :: offset_of ! (__once_flag , __data) - 0usize] ; } ; pub type pthread_t = :: core :: ffi :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutexattr_t"] [:: core :: mem :: size_of :: < pthread_mutexattr_t > () - 4usize] ; ["Alignment of pthread_mutexattr_t"] [:: core :: mem :: align_of :: < pthread_mutexattr_t > () - 4usize] ; ["Offset of field: pthread_mutexattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __size) - 0usize] ; ["Offset of field: pthread_mutexattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutexattr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_condattr_t"] [:: core :: mem :: size_of :: < pthread_condattr_t > () - 4usize] ; ["Alignment of pthread_condattr_t"] [:: core :: mem :: align_of :: < pthread_condattr_t > () - 4usize] ; ["Offset of field: pthread_condattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __size) - 0usize] ; ["Offset of field: pthread_condattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_condattr_t , __align) - 0usize] ; } ; pub type pthread_key_t = :: core :: ffi :: c_uint ; pub type pthread_once_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_attr_t"] [:: core :: mem :: size_of :: < pthread_attr_t > () - 56usize] ; ["Alignment of pthread_attr_t"] [:: core :: mem :: align_of :: < pthread_attr_t > () - 8usize] ; ["Offset of field: pthread_attr_t::__size"] [:: core :: mem :: offset_of ! (pthread_attr_t , __size) - 0usize] ; ["Offset of field: pthread_attr_t::__align"] [:: core :: mem :: offset_of ! (pthread_attr_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: core :: ffi :: c_char ; 40usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_mutex_t"] [:: core :: mem :: size_of :: < pthread_mutex_t > () - 40usize] ; ["Alignment of pthread_mutex_t"] [:: core :: mem :: align_of :: < pthread_mutex_t > () - 8usize] ; ["Offset of field: pthread_mutex_t::__data"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __data) - 0usize] ; ["Offset of field: pthread_mutex_t::__size"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __size) - 0usize] ; ["Offset of field: pthread_mutex_t::__align"] [:: core :: mem :: offset_of ! (pthread_mutex_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: core :: ffi :: c_char ; 48usize] , pub __align : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_cond_t"] [:: core :: mem :: size_of :: < pthread_cond_t > () - 48usize] ; ["Alignment of pthread_cond_t"] [:: core :: mem :: align_of :: < pthread_cond_t > () - 8usize] ; ["Offset of field: pthread_cond_t::__data"] [:: core :: mem :: offset_of ! (pthread_cond_t , __data) - 0usize] ; ["Offset of field: pthread_cond_t::__size"] [:: core :: mem :: offset_of ! (pthread_cond_t , __size) - 0usize] ; ["Offset of field: pthread_cond_t::__align"] [:: core :: mem :: offset_of ! (pthread_cond_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: core :: ffi :: c_char ; 56usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlock_t"] [:: core :: mem :: size_of :: < pthread_rwlock_t > () - 56usize] ; ["Alignment of pthread_rwlock_t"] [:: core :: mem :: align_of :: < pthread_rwlock_t > () - 8usize] ; ["Offset of field: pthread_rwlock_t::__data"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __data) - 0usize] ; ["Offset of field: pthread_rwlock_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __size) - 0usize] ; ["Offset of field: pthread_rwlock_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlock_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: core :: ffi :: c_char ; 8usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_rwlockattr_t"] [:: core :: mem :: size_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Alignment of pthread_rwlockattr_t"] [:: core :: mem :: align_of :: < pthread_rwlockattr_t > () - 8usize] ; ["Offset of field: pthread_rwlockattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __size) - 0usize] ; ["Offset of field: pthread_rwlockattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_rwlockattr_t , __align) - 0usize] ; } ; pub type pthread_spinlock_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: core :: ffi :: c_char ; 32usize] , pub __align : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrier_t"] [:: core :: mem :: size_of :: < pthread_barrier_t > () - 32usize] ; ["Alignment of pthread_barrier_t"] [:: core :: mem :: align_of :: < pthread_barrier_t > () - 8usize] ; ["Offset of field: pthread_barrier_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __size) - 0usize] ; ["Offset of field: pthread_barrier_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrier_t , __align) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: core :: ffi :: c_char ; 4usize] , pub __align : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of pthread_barrierattr_t"] [:: core :: mem :: size_of :: < pthread_barrierattr_t > () - 4usize] ; ["Alignment of pthread_barrierattr_t"] [:: core :: mem :: align_of :: < pthread_barrierattr_t > () - 4usize] ; ["Offset of field: pthread_barrierattr_t::__size"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __size) - 0usize] ; ["Offset of field: pthread_barrierattr_t::__align"] [:: core :: mem :: offset_of ! (pthread_barrierattr_t , __align) - 0usize] ; } ; pub type __jmp_buf = [:: core :: ffi :: c_long ; 8usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __sigset_t"] [:: core :: mem :: size_of :: < __sigset_t > () - 128usize] ; ["Alignment of __sigset_t"] [:: core :: mem :: align_of :: < __sigset_t > () - 8usize] ; ["Offset of field: __sigset_t::__val"] [:: core :: mem :: offset_of ! (__sigset_t , __val) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , pub __saved_mask : __sigset_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __jmp_buf_tag"] [:: core :: mem :: size_of :: < __jmp_buf_tag > () - 200usize] ; ["Alignment of __jmp_buf_tag"] [:: core :: mem :: align_of :: < __jmp_buf_tag > () - 8usize] ; ["Offset of field: __jmp_buf_tag::__jmpbuf"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __jmpbuf) - 0usize] ; ["Offset of field: __jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __mask_was_saved) - 64usize] ; ["Offset of field: __jmp_buf_tag::__saved_mask"] [:: core :: mem :: offset_of ! (__jmp_buf_tag , __saved_mask) - 72usize] ; } ; pub const PTHREAD_CREATE_JOINABLE : _bindgen_ty_1 = 0 ; pub const PTHREAD_CREATE_DETACHED : _bindgen_ty_1 = 1 ; pub type _bindgen_ty_1 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_TIMED_NP : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE_NP : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK_NP : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_ADAPTIVE_NP : _bindgen_ty_2 = 3 ; pub const PTHREAD_MUTEX_NORMAL : _bindgen_ty_2 = 0 ; pub const PTHREAD_MUTEX_RECURSIVE : _bindgen_ty_2 = 1 ; pub const PTHREAD_MUTEX_ERRORCHECK : _bindgen_ty_2 = 2 ; pub const PTHREAD_MUTEX_DEFAULT : _bindgen_ty_2 = 0 ; pub type _bindgen_ty_2 = :: core :: ffi :: c_uint ; pub const PTHREAD_MUTEX_STALLED : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_STALLED_NP : _bindgen_ty_3 = 0 ; pub const PTHREAD_MUTEX_ROBUST : _bindgen_ty_3 = 1 ; pub const PTHREAD_MUTEX_ROBUST_NP : _bindgen_ty_3 = 1 ; pub type _bindgen_ty_3 = :: core :: ffi :: c_uint ; pub const PTHREAD_PRIO_NONE : _bindgen_ty_4 = 0 ; pub const PTHREAD_PRIO_INHERIT : _bindgen_ty_4 = 1 ; pub const PTHREAD_PRIO_PROTECT : _bindgen_ty_4 = 2 ; pub type _bindgen_ty_4 = :: core :: ffi :: c_uint ; pub const PTHREAD_RWLOCK_PREFER_READER_NP : _bindgen_ty_5 = 0 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP : _bindgen_ty_5 = 1 ; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP : _bindgen_ty_5 = 2 ; pub const PTHREAD_RWLOCK_DEFAULT_NP : _bindgen_ty_5 = 0 ; pub type _bindgen_ty_5 = :: core :: ffi :: c_uint ; pub const PTHREAD_INHERIT_SCHED : _bindgen_ty_6 = 0 ; pub const PTHREAD_EXPLICIT_SCHED : _bindgen_ty_6 = 1 ; pub type _bindgen_ty_6 = :: core :: ffi :: c_uint ; pub const PTHREAD_SCOPE_SYSTEM : _bindgen_ty_7 = 0 ; pub const PTHREAD_SCOPE_PROCESS : _bindgen_ty_7 = 1 ; pub type _bindgen_ty_7 = :: core :: ffi :: c_uint ; pub const PTHREAD_PROCESS_PRIVATE : _bindgen_ty_8 = 0 ; pub const PTHREAD_PROCESS_SHARED : _bindgen_ty_8 = 1 ; pub type _bindgen_ty_8 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _pthread_cleanup_buffer { pub __routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __arg : * mut :: core :: ffi :: c_void , pub __canceltype : :: core :: ffi :: c_int , pub __prev : * mut _pthread_cleanup_buffer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _pthread_cleanup_buffer"] [:: core :: mem :: size_of :: < _pthread_cleanup_buffer > () - 32usize] ; ["Alignment of _pthread_cleanup_buffer"] [:: core :: mem :: align_of :: < _pthread_cleanup_buffer > () - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__routine"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __routine) - 0usize] ; ["Offset of field: _pthread_cleanup_buffer::__arg"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __arg) - 8usize] ; ["Offset of field: _pthread_cleanup_buffer::__canceltype"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __canceltype) - 16usize] ; ["Offset of field: _pthread_cleanup_buffer::__prev"] [:: core :: mem :: offset_of ! (_pthread_cleanup_buffer , __prev) - 24usize] ; } ; pub const PTHREAD_CANCEL_ENABLE : _bindgen_ty_9 = 0 ; pub const PTHREAD_CANCEL_DISABLE : _bindgen_ty_9 = 1 ; pub type _bindgen_ty_9 = :: core :: ffi :: c_uint ; pub const PTHREAD_CANCEL_DEFERRED : _bindgen_ty_10 = 0 ; pub const PTHREAD_CANCEL_ASYNCHRONOUS : _bindgen_ty_10 = 1 ; pub type _bindgen_ty_10 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn pthread_create (__newthread : * mut pthread_t , __attr : * const pthread_attr_t , __start_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) -> * mut :: core :: ffi :: c_void > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_exit (__retval : * mut :: core :: ffi :: c_void) -> ! ; } unsafe extern "C" { pub fn pthread_join (__th : pthread_t , __thread_return : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_detach (__th : pthread_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_self () -> pthread_t ; } unsafe extern "C" { pub fn pthread_equal (__thread1 : pthread_t , __thread2 : pthread_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_init (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_destroy (__attr : * mut pthread_attr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getdetachstate (__attr : * const pthread_attr_t , __detachstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setdetachstate (__attr : * mut pthread_attr_t , __detachstate : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getguardsize (__attr : * const pthread_attr_t , __guardsize : * mut usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setguardsize (__attr : * mut pthread_attr_t , __guardsize : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getschedparam (__attr : * const pthread_attr_t , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setschedparam (__attr : * mut pthread_attr_t , __param : * const sched_param) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getschedpolicy (__attr : * const pthread_attr_t , __policy : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setschedpolicy (__attr : * mut pthread_attr_t , __policy : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getinheritsched (__attr : * const pthread_attr_t , __inherit : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setinheritsched (__attr : * mut pthread_attr_t , __inherit : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getscope (__attr : * const pthread_attr_t , __scope : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setscope (__attr : * mut pthread_attr_t , __scope : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getstackaddr (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setstackaddr (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getstacksize (__attr : * const pthread_attr_t , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setstacksize (__attr : * mut pthread_attr_t , __stacksize : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_getstack (__attr : * const pthread_attr_t , __stackaddr : * mut * mut :: core :: ffi :: c_void , __stacksize : * mut usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_attr_setstack (__attr : * mut pthread_attr_t , __stackaddr : * mut :: core :: ffi :: c_void , __stacksize : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_setschedparam (__target_thread : pthread_t , __policy : :: core :: ffi :: c_int , __param : * const sched_param) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_getschedparam (__target_thread : pthread_t , __policy : * mut :: core :: ffi :: c_int , __param : * mut sched_param) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_setschedprio (__target_thread : pthread_t , __prio : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_once (__once_control : * mut pthread_once_t , __init_routine : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_setcancelstate (__state : :: core :: ffi :: c_int , __oldstate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_setcanceltype (__type : :: core :: ffi :: c_int , __oldtype : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_cancel (__th : pthread_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_testcancel () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf : __jmp_buf , pub __mask_was_saved : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __cancel_jmp_buf_tag"] [:: core :: mem :: size_of :: < __cancel_jmp_buf_tag > () - 72usize] ; ["Alignment of __cancel_jmp_buf_tag"] [:: core :: mem :: align_of :: < __cancel_jmp_buf_tag > () - 8usize] ; ["Offset of field: __cancel_jmp_buf_tag::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __cancel_jmp_buf_tag::__mask_was_saved"] [:: core :: mem :: offset_of ! (__cancel_jmp_buf_tag , __mask_was_saved) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf : [__cancel_jmp_buf_tag ; 1usize] , pub __pad : [* mut :: core :: ffi :: c_void ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_unwind_buf_t"] [:: core :: mem :: size_of :: < __pthread_unwind_buf_t > () - 104usize] ; ["Alignment of __pthread_unwind_buf_t"] [:: core :: mem :: align_of :: < __pthread_unwind_buf_t > () - 8usize] ; ["Offset of field: __pthread_unwind_buf_t::__cancel_jmp_buf"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __cancel_jmp_buf) - 0usize] ; ["Offset of field: __pthread_unwind_buf_t::__pad"] [:: core :: mem :: offset_of ! (__pthread_unwind_buf_t , __pad) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) > , pub __cancel_arg : * mut :: core :: ffi :: c_void , pub __do_it : :: core :: ffi :: c_int , pub __cancel_type : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __pthread_cleanup_frame"] [:: core :: mem :: size_of :: < __pthread_cleanup_frame > () - 24usize] ; ["Alignment of __pthread_cleanup_frame"] [:: core :: mem :: align_of :: < __pthread_cleanup_frame > () - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_routine"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_routine) - 0usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_arg"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_arg) - 8usize] ; ["Offset of field: __pthread_cleanup_frame::__do_it"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __do_it) - 16usize] ; ["Offset of field: __pthread_cleanup_frame::__cancel_type"] [:: core :: mem :: offset_of ! (__pthread_cleanup_frame , __cancel_type) - 20usize] ; } ; unsafe extern "C" { pub fn __pthread_register_cancel (__buf : * mut __pthread_unwind_buf_t) ; } unsafe extern "C" { pub fn __pthread_unregister_cancel (__buf : * mut __pthread_unwind_buf_t) ; } unsafe extern "C" { pub fn __pthread_unwind_next (__buf : * mut __pthread_unwind_buf_t) -> ! ; } unsafe extern "C" { pub fn __sigsetjmp (__env : * mut __jmp_buf_tag , __savemask : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_init (__mutex : * mut pthread_mutex_t , __mutexattr : * const pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_destroy (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_trylock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_lock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_timedlock (__mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_unlock (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_getprioceiling (__mutex : * const pthread_mutex_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_setprioceiling (__mutex : * mut pthread_mutex_t , __prioceiling : :: core :: ffi :: c_int , __old_ceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutex_consistent (__mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_init (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_destroy (__attr : * mut pthread_mutexattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_getpshared (__attr : * const pthread_mutexattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_setpshared (__attr : * mut pthread_mutexattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_gettype (__attr : * const pthread_mutexattr_t , __kind : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_settype (__attr : * mut pthread_mutexattr_t , __kind : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_getprotocol (__attr : * const pthread_mutexattr_t , __protocol : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_setprotocol (__attr : * mut pthread_mutexattr_t , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_getprioceiling (__attr : * const pthread_mutexattr_t , __prioceiling : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_setprioceiling (__attr : * mut pthread_mutexattr_t , __prioceiling : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_getrobust (__attr : * const pthread_mutexattr_t , __robustness : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_mutexattr_setrobust (__attr : * mut pthread_mutexattr_t , __robustness : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_init (__rwlock : * mut pthread_rwlock_t , __attr : * const pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_destroy (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_rdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_tryrdlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_timedrdlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_wrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_trywrlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_timedwrlock (__rwlock : * mut pthread_rwlock_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlock_unlock (__rwlock : * mut pthread_rwlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlockattr_init (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlockattr_destroy (__attr : * mut pthread_rwlockattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlockattr_getpshared (__attr : * const pthread_rwlockattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlockattr_setpshared (__attr : * mut pthread_rwlockattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlockattr_getkind_np (__attr : * const pthread_rwlockattr_t , __pref : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_rwlockattr_setkind_np (__attr : * mut pthread_rwlockattr_t , __pref : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_cond_init (__cond : * mut pthread_cond_t , __cond_attr : * const pthread_condattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_cond_destroy (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_cond_signal (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_cond_broadcast (__cond : * mut pthread_cond_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_cond_wait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_cond_timedwait (__cond : * mut pthread_cond_t , __mutex : * mut pthread_mutex_t , __abstime : * const timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_condattr_init (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_condattr_destroy (__attr : * mut pthread_condattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_condattr_getpshared (__attr : * const pthread_condattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_condattr_setpshared (__attr : * mut pthread_condattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_condattr_getclock (__attr : * const pthread_condattr_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_condattr_setclock (__attr : * mut pthread_condattr_t , __clock_id : __clockid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_spin_init (__lock : * mut pthread_spinlock_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_spin_destroy (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_spin_lock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_spin_trylock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_spin_unlock (__lock : * mut pthread_spinlock_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_barrier_init (__barrier : * mut pthread_barrier_t , __attr : * const pthread_barrierattr_t , __count : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_barrier_destroy (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_barrier_wait (__barrier : * mut pthread_barrier_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_barrierattr_init (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_barrierattr_destroy (__attr : * mut pthread_barrierattr_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_barrierattr_getpshared (__attr : * const pthread_barrierattr_t , __pshared : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_barrierattr_setpshared (__attr : * mut pthread_barrierattr_t , __pshared : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_key_create (__key : * mut pthread_key_t , __destr_function : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void) >) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_key_delete (__key : pthread_key_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_getspecific (__key : pthread_key_t) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn pthread_setspecific (__key : pthread_key_t , __pointer : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_getcpuclockid (__thread_id : pthread_t , __clock_id : * mut __clockid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pthread_atfork (__prepare : :: core :: option :: Option < unsafe extern "C" fn () > , __parent : :: core :: option :: Option < unsafe extern "C" fn () > , __child : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Mutex = pthread_mutex_t ; pub type wolfSSL_RwLock = wolfSSL_Mutex ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of max_align_t"] [:: core :: mem :: size_of :: < max_align_t > () - 32usize] ; ["Alignment of max_align_t"] [:: core :: mem :: align_of :: < max_align_t > () - 16usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce1) - 0usize] ; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [:: core :: mem :: offset_of ! (max_align_t , __clang_max_align_nonce2) - 16usize] ; } ; pub const memory_order_memory_order_relaxed : memory_order = 0 ; pub const memory_order_memory_order_consume : memory_order = 1 ; pub const memory_order_memory_order_acquire : memory_order = 2 ; pub const memory_order_memory_order_release : memory_order = 3 ; pub const memory_order_memory_order_acq_rel : memory_order = 4 ; pub const memory_order_memory_order_seq_cst : memory_order = 5 ; pub type memory_order = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn atomic_thread_fence (arg1 : memory_order) ; } unsafe extern "C" { pub fn atomic_signal_fence (arg1 : memory_order) ; } pub type atomic_bool = bool ; pub type atomic_char = :: core :: ffi :: c_char ; pub type atomic_schar = :: core :: ffi :: c_schar ; pub type atomic_uchar = :: core :: ffi :: c_uchar ; pub type atomic_short = :: core :: ffi :: c_short ; pub type atomic_ushort = :: core :: ffi :: c_ushort ; pub type atomic_int = :: core :: ffi :: c_int ; pub type atomic_uint = :: core :: ffi :: c_uint ; pub type atomic_long = :: core :: ffi :: c_long ; pub type atomic_ulong = :: core :: ffi :: c_ulong ; pub type atomic_llong = :: core :: ffi :: c_longlong ; pub type atomic_ullong = :: core :: ffi :: c_ulonglong ; pub type atomic_char16_t = uint_least16_t ; pub type atomic_char32_t = uint_least32_t ; pub type atomic_wchar_t = wchar_t ; pub type atomic_int_least8_t = int_least8_t ; pub type atomic_uint_least8_t = uint_least8_t ; pub type atomic_int_least16_t = int_least16_t ; pub type atomic_uint_least16_t = uint_least16_t ; pub type atomic_int_least32_t = int_least32_t ; pub type atomic_uint_least32_t = uint_least32_t ; pub type atomic_int_least64_t = int_least64_t ; pub type atomic_uint_least64_t = uint_least64_t ; pub type atomic_int_fast8_t = int_fast8_t ; pub type atomic_uint_fast8_t = uint_fast8_t ; pub type atomic_int_fast16_t = int_fast16_t ; pub type atomic_uint_fast16_t = uint_fast16_t ; pub type atomic_int_fast32_t = int_fast32_t ; pub type atomic_uint_fast32_t = uint_fast32_t ; pub type atomic_int_fast64_t = int_fast64_t ; pub type atomic_uint_fast64_t = uint_fast64_t ; pub type atomic_intptr_t = isize ; pub type atomic_uintptr_t = usize ; pub type atomic_size_t = usize ; pub type atomic_ptrdiff_t = isize ; pub type atomic_intmax_t = intmax_t ; pub type atomic_uintmax_t = uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct atomic_flag { pub _Value : atomic_bool , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of atomic_flag"] [:: core :: mem :: size_of :: < atomic_flag > () - 1usize] ; ["Alignment of atomic_flag"] [:: core :: mem :: align_of :: < atomic_flag > () - 1usize] ; ["Offset of field: atomic_flag::_Value"] [:: core :: mem :: offset_of ! (atomic_flag , _Value) - 0usize] ; } ; unsafe extern "C" { pub fn atomic_flag_test_and_set (arg1 : * mut atomic_flag) -> bool ; } unsafe extern "C" { pub fn atomic_flag_test_and_set_explicit (arg1 : * mut atomic_flag , arg2 : memory_order) -> bool ; } unsafe extern "C" { pub fn atomic_flag_clear (arg1 : * mut atomic_flag) ; } unsafe extern "C" { pub fn atomic_flag_clear_explicit (arg1 : * mut atomic_flag , arg2 : memory_order) ; } pub type wolfSSL_Atomic_Int = atomic_int ; pub type wolfSSL_Atomic_Uint = atomic_uint ; unsafe extern "C" { pub fn wolfSSL_Atomic_Int_Init (c : * mut wolfSSL_Atomic_Int , i : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Uint_Init (c : * mut wolfSSL_Atomic_Uint , i : :: core :: ffi :: c_uint) ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Int_FetchAdd (c : * mut wolfSSL_Atomic_Int , i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Int_FetchSub (c : * mut wolfSSL_Atomic_Int , i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Int_AddFetch (c : * mut wolfSSL_Atomic_Int , i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Int_SubFetch (c : * mut wolfSSL_Atomic_Int , i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Int_Exchange (c : * mut wolfSSL_Atomic_Int , new_i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Int_CompareExchange (c : * mut wolfSSL_Atomic_Int , expected_i : * mut :: core :: ffi :: c_int , new_i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Uint_FetchAdd (c : * mut wolfSSL_Atomic_Uint , i : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Uint_FetchSub (c : * mut wolfSSL_Atomic_Uint , i : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Uint_AddFetch (c : * mut wolfSSL_Atomic_Uint , i : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Uint_SubFetch (c : * mut wolfSSL_Atomic_Uint , i : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Uint_CompareExchange (c : * mut wolfSSL_Atomic_Uint , expected_i : * mut :: core :: ffi :: c_uint , new_i : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Atomic_Ptr_CompareExchange (c : * mut * mut :: core :: ffi :: c_void , expected_ptr : * mut * mut :: core :: ffi :: c_void , new_ptr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct wolfSSL_RefWithMutex { pub mutex : wolfSSL_Mutex , pub count : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_RefWithMutex"] [:: core :: mem :: size_of :: < wolfSSL_RefWithMutex > () - 48usize] ; ["Alignment of wolfSSL_RefWithMutex"] [:: core :: mem :: align_of :: < wolfSSL_RefWithMutex > () - 8usize] ; ["Offset of field: wolfSSL_RefWithMutex::mutex"] [:: core :: mem :: offset_of ! (wolfSSL_RefWithMutex , mutex) - 0usize] ; ["Offset of field: wolfSSL_RefWithMutex::count"] [:: core :: mem :: offset_of ! (wolfSSL_RefWithMutex , count) - 40usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wolfSSL_Ref { pub count : wolfSSL_Atomic_Int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfSSL_Ref"] [:: core :: mem :: size_of :: < wolfSSL_Ref > () - 4usize] ; ["Alignment of wolfSSL_Ref"] [:: core :: mem :: align_of :: < wolfSSL_Ref > () - 4usize] ; ["Offset of field: wolfSSL_Ref::count"] [:: core :: mem :: offset_of ! (wolfSSL_Ref , count) - 0usize] ; } ; unsafe extern "C" { pub fn wolfSSL_RefWithMutexInit (ref_ : * mut wolfSSL_RefWithMutex , err : * mut :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_RefWithMutexFree (ref_ : * mut wolfSSL_RefWithMutex) ; } unsafe extern "C" { pub fn wolfSSL_RefWithMutexInc (ref_ : * mut wolfSSL_RefWithMutex , err : * mut :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_RefWithMutexInc2 (ref_ : * mut wolfSSL_RefWithMutex , new_count : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_RefWithMutexLock (ref_ : * mut wolfSSL_RefWithMutex) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_RefWithMutexUnlock (ref_ : * mut wolfSSL_RefWithMutex) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_RefWithMutexDec (ref_ : * mut wolfSSL_RefWithMutex , isZero : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_RefWithMutexDec2 (ref_ : * mut wolfSSL_RefWithMutex , new_count : * mut :: core :: ffi :: c_int , err : * mut :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wc_InitMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_FreeMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_LockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_UnLockMutex (m : * mut wolfSSL_Mutex) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitAndAllocMutex () -> * mut wolfSSL_Mutex ; } unsafe extern "C" { pub fn wc_InitRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_FreeRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_LockRwLock_Wr (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_LockRwLock_Rd (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_UnLockRwLock (m : * mut wolfSSL_RwLock) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfCrypt_Init () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfCrypt_Cleanup () -> :: core :: ffi :: c_int ; } pub type __gnuc_va_list = __builtin_va_list ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: core :: ffi :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: core :: ffi :: c_uint , pub __wchb : [:: core :: ffi :: c_char ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Alignment of __mbstate_t__bindgen_ty_1"] [:: core :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () - 4usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wch"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wch) - 0usize] ; ["Offset of field: __mbstate_t__bindgen_ty_1::__wchb"] [:: core :: mem :: offset_of ! (__mbstate_t__bindgen_ty_1 , __wchb) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __mbstate_t"] [:: core :: mem :: size_of :: < __mbstate_t > () - 8usize] ; ["Alignment of __mbstate_t"] [:: core :: mem :: align_of :: < __mbstate_t > () - 4usize] ; ["Offset of field: __mbstate_t::__count"] [:: core :: mem :: offset_of ! (__mbstate_t , __count) - 0usize] ; ["Offset of field: __mbstate_t::__value"] [:: core :: mem :: offset_of ! (__mbstate_t , __value) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos_t"] [:: core :: mem :: size_of :: < _G_fpos_t > () - 16usize] ; ["Alignment of _G_fpos_t"] [:: core :: mem :: align_of :: < _G_fpos_t > () - 8usize] ; ["Offset of field: _G_fpos_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos_t , __pos) - 0usize] ; ["Offset of field: _G_fpos_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos_t , __state) - 8usize] ; } ; pub type __fpos_t = _G_fpos_t ; # [repr (C)] # [derive (Copy , Clone)] pub struct _G_fpos64_t { pub __pos : __off64_t , pub __state : __mbstate_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _G_fpos64_t"] [:: core :: mem :: size_of :: < _G_fpos64_t > () - 16usize] ; ["Alignment of _G_fpos64_t"] [:: core :: mem :: align_of :: < _G_fpos64_t > () - 8usize] ; ["Offset of field: _G_fpos64_t::__pos"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __pos) - 0usize] ; ["Offset of field: _G_fpos64_t::__state"] [:: core :: mem :: offset_of ! (_G_fpos64_t , __state) - 8usize] ; } ; pub type __fpos64_t = _G_fpos64_t ; pub type __FILE = _IO_FILE ; pub type FILE = _IO_FILE ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_marker { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_codecvt { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_wide_data { _unused : [u8 ; 0] , } pub type _IO_lock_t = :: core :: ffi :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: core :: ffi :: c_int , pub _IO_read_ptr : * mut :: core :: ffi :: c_char , pub _IO_read_end : * mut :: core :: ffi :: c_char , pub _IO_read_base : * mut :: core :: ffi :: c_char , pub _IO_write_base : * mut :: core :: ffi :: c_char , pub _IO_write_ptr : * mut :: core :: ffi :: c_char , pub _IO_write_end : * mut :: core :: ffi :: c_char , pub _IO_buf_base : * mut :: core :: ffi :: c_char , pub _IO_buf_end : * mut :: core :: ffi :: c_char , pub _IO_save_base : * mut :: core :: ffi :: c_char , pub _IO_backup_base : * mut :: core :: ffi :: c_char , pub _IO_save_end : * mut :: core :: ffi :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: core :: ffi :: c_int , pub _flags2 : :: core :: ffi :: c_int , pub _old_offset : __off_t , pub _cur_column : :: core :: ffi :: c_ushort , pub _vtable_offset : :: core :: ffi :: c_schar , pub _shortbuf : [:: core :: ffi :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: core :: ffi :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: core :: ffi :: c_int , pub _unused2 : [:: core :: ffi :: c_char ; 20usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_FILE"] [:: core :: mem :: size_of :: < _IO_FILE > () - 216usize] ; ["Alignment of _IO_FILE"] [:: core :: mem :: align_of :: < _IO_FILE > () - 8usize] ; ["Offset of field: _IO_FILE::_flags"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags) - 0usize] ; ["Offset of field: _IO_FILE::_IO_read_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_ptr) - 8usize] ; ["Offset of field: _IO_FILE::_IO_read_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_end) - 16usize] ; ["Offset of field: _IO_FILE::_IO_read_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_read_base) - 24usize] ; ["Offset of field: _IO_FILE::_IO_write_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_base) - 32usize] ; ["Offset of field: _IO_FILE::_IO_write_ptr"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_ptr) - 40usize] ; ["Offset of field: _IO_FILE::_IO_write_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_write_end) - 48usize] ; ["Offset of field: _IO_FILE::_IO_buf_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_base) - 56usize] ; ["Offset of field: _IO_FILE::_IO_buf_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_buf_end) - 64usize] ; ["Offset of field: _IO_FILE::_IO_save_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_base) - 72usize] ; ["Offset of field: _IO_FILE::_IO_backup_base"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_backup_base) - 80usize] ; ["Offset of field: _IO_FILE::_IO_save_end"] [:: core :: mem :: offset_of ! (_IO_FILE , _IO_save_end) - 88usize] ; ["Offset of field: _IO_FILE::_markers"] [:: core :: mem :: offset_of ! (_IO_FILE , _markers) - 96usize] ; ["Offset of field: _IO_FILE::_chain"] [:: core :: mem :: offset_of ! (_IO_FILE , _chain) - 104usize] ; ["Offset of field: _IO_FILE::_fileno"] [:: core :: mem :: offset_of ! (_IO_FILE , _fileno) - 112usize] ; ["Offset of field: _IO_FILE::_flags2"] [:: core :: mem :: offset_of ! (_IO_FILE , _flags2) - 116usize] ; ["Offset of field: _IO_FILE::_old_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _old_offset) - 120usize] ; ["Offset of field: _IO_FILE::_cur_column"] [:: core :: mem :: offset_of ! (_IO_FILE , _cur_column) - 128usize] ; ["Offset of field: _IO_FILE::_vtable_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _vtable_offset) - 130usize] ; ["Offset of field: _IO_FILE::_shortbuf"] [:: core :: mem :: offset_of ! (_IO_FILE , _shortbuf) - 131usize] ; ["Offset of field: _IO_FILE::_lock"] [:: core :: mem :: offset_of ! (_IO_FILE , _lock) - 136usize] ; ["Offset of field: _IO_FILE::_offset"] [:: core :: mem :: offset_of ! (_IO_FILE , _offset) - 144usize] ; ["Offset of field: _IO_FILE::_codecvt"] [:: core :: mem :: offset_of ! (_IO_FILE , _codecvt) - 152usize] ; ["Offset of field: _IO_FILE::_wide_data"] [:: core :: mem :: offset_of ! (_IO_FILE , _wide_data) - 160usize] ; ["Offset of field: _IO_FILE::_freeres_list"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_list) - 168usize] ; ["Offset of field: _IO_FILE::_freeres_buf"] [:: core :: mem :: offset_of ! (_IO_FILE , _freeres_buf) - 176usize] ; ["Offset of field: _IO_FILE::_prevchain"] [:: core :: mem :: offset_of ! (_IO_FILE , _prevchain) - 184usize] ; ["Offset of field: _IO_FILE::_mode"] [:: core :: mem :: offset_of ! (_IO_FILE , _mode) - 192usize] ; ["Offset of field: _IO_FILE::_unused2"] [:: core :: mem :: offset_of ! (_IO_FILE , _unused2) - 196usize] ; } ; pub type cookie_read_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __buf : * const :: core :: ffi :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void , __pos : * mut __off64_t , __w : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; pub type cookie_close_function_t = :: core :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of _IO_cookie_io_functions_t"] [:: core :: mem :: size_of :: < _IO_cookie_io_functions_t > () - 32usize] ; ["Alignment of _IO_cookie_io_functions_t"] [:: core :: mem :: align_of :: < _IO_cookie_io_functions_t > () - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::read"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , read) - 0usize] ; ["Offset of field: _IO_cookie_io_functions_t::write"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , write) - 8usize] ; ["Offset of field: _IO_cookie_io_functions_t::seek"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , seek) - 16usize] ; ["Offset of field: _IO_cookie_io_functions_t::close"] [:: core :: mem :: offset_of ! (_IO_cookie_io_functions_t , close) - 24usize] ; } ; pub type cookie_io_functions_t = _IO_cookie_io_functions_t ; pub type va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; unsafe extern "C" { pub static mut stdin : * mut FILE ; } unsafe extern "C" { pub static mut stdout : * mut FILE ; } unsafe extern "C" { pub static mut stderr : * mut FILE ; } unsafe extern "C" { pub fn remove (__filename : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn rename (__old : * const :: core :: ffi :: c_char , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn renameat (__oldfd : :: core :: ffi :: c_int , __old : * const :: core :: ffi :: c_char , __newfd : :: core :: ffi :: c_int , __new : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn tmpfile () -> * mut FILE ; } unsafe extern "C" { pub fn tmpnam (arg1 : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn tmpnam_r (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn tempnam (__dir : * const :: core :: ffi :: c_char , __pfx : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn fflush (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn freopen (__filename : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> * mut FILE ; } unsafe extern "C" { pub fn fdopen (__fd : :: core :: ffi :: c_int , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn fopencookie (__magic_cookie : * mut :: core :: ffi :: c_void , __modes : * const :: core :: ffi :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } unsafe extern "C" { pub fn fmemopen (__s : * mut :: core :: ffi :: c_void , __len : usize , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: core :: ffi :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } unsafe extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char) ; } unsafe extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __modes : :: core :: ffi :: c_int , __n : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: core :: ffi :: c_char , __size : usize) ; } unsafe extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn printf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vprintf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vsprintf (__s : * mut :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn snprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vsnprintf (__s : * mut :: core :: ffi :: c_char , __maxlen : :: core :: ffi :: c_ulong , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vasprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __f : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn __asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn asprintf (__ptr : * mut * mut :: core :: ffi :: c_char , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vdprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn dprintf (__fd : :: core :: ffi :: c_int , __fmt : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn scanf (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; unsafe extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vscanf (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vsscanf (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: core :: ffi :: c_char , __format : * const :: core :: ffi :: c_char , __arg : * mut __va_list_tag) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getc (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getchar () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getchar_unlocked () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fputc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn putc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn putchar (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fputc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn putc_unlocked (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn putchar_unlocked (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getw (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn putw (__w : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fgets (__s : * mut :: core :: ffi :: c_char , __n : :: core :: ffi :: c_int , __stream : * mut FILE) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getdelim (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __delimiter : :: core :: ffi :: c_int , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn getline (__lineptr : * mut * mut :: core :: ffi :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } unsafe extern "C" { pub fn fputs (__s : * const :: core :: ffi :: c_char , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn puts (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ungetc (__c : :: core :: ffi :: c_int , __stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fread (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __stream : * mut FILE) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn fwrite (__ptr : * const :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong , __n : :: core :: ffi :: c_ulong , __s : * mut FILE) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn fread_unlocked (__ptr : * mut :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fwrite_unlocked (__ptr : * const :: core :: ffi :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } unsafe extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: core :: ffi :: c_long , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ftell (__stream : * mut FILE) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn rewind (__stream : * mut FILE) ; } unsafe extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } unsafe extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn clearerr (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ferror (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } unsafe extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn perror (__s : * const :: core :: ffi :: c_char) ; } unsafe extern "C" { pub fn fileno (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pclose (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn popen (__command : * const :: core :: ffi :: c_char , __modes : * const :: core :: ffi :: c_char) -> * mut FILE ; } unsafe extern "C" { pub fn ctermid (__s : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn flockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } unsafe extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dirent { pub d_ino : __ino_t , pub d_off : __off_t , pub d_reclen : :: core :: ffi :: c_ushort , pub d_type : :: core :: ffi :: c_uchar , pub d_name : [:: core :: ffi :: c_char ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dirent"] [:: core :: mem :: size_of :: < dirent > () - 280usize] ; ["Alignment of dirent"] [:: core :: mem :: align_of :: < dirent > () - 8usize] ; ["Offset of field: dirent::d_ino"] [:: core :: mem :: offset_of ! (dirent , d_ino) - 0usize] ; ["Offset of field: dirent::d_off"] [:: core :: mem :: offset_of ! (dirent , d_off) - 8usize] ; ["Offset of field: dirent::d_reclen"] [:: core :: mem :: offset_of ! (dirent , d_reclen) - 16usize] ; ["Offset of field: dirent::d_type"] [:: core :: mem :: offset_of ! (dirent , d_type) - 18usize] ; ["Offset of field: dirent::d_name"] [:: core :: mem :: offset_of ! (dirent , d_name) - 19usize] ; } ; pub const DT_UNKNOWN : _bindgen_ty_11 = 0 ; pub const DT_FIFO : _bindgen_ty_11 = 1 ; pub const DT_CHR : _bindgen_ty_11 = 2 ; pub const DT_DIR : _bindgen_ty_11 = 4 ; pub const DT_BLK : _bindgen_ty_11 = 6 ; pub const DT_REG : _bindgen_ty_11 = 8 ; pub const DT_LNK : _bindgen_ty_11 = 10 ; pub const DT_SOCK : _bindgen_ty_11 = 12 ; pub const DT_WHT : _bindgen_ty_11 = 14 ; pub type _bindgen_ty_11 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __dirstream { _unused : [u8 ; 0] , } pub type DIR = __dirstream ; unsafe extern "C" { pub fn closedir (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn opendir (__name : * const :: core :: ffi :: c_char) -> * mut DIR ; } unsafe extern "C" { pub fn fdopendir (__fd : :: core :: ffi :: c_int) -> * mut DIR ; } unsafe extern "C" { pub fn readdir (__dirp : * mut DIR) -> * mut dirent ; } unsafe extern "C" { pub fn readdir_r (__dirp : * mut DIR , __entry : * mut dirent , __result : * mut * mut dirent) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn rewinddir (__dirp : * mut DIR) ; } unsafe extern "C" { pub fn seekdir (__dirp : * mut DIR , __pos : :: core :: ffi :: c_long) ; } unsafe extern "C" { pub fn telldir (__dirp : * mut DIR) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn dirfd (__dirp : * mut DIR) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn scandir (__dir : * const :: core :: ffi :: c_char , __namelist : * mut * mut * mut dirent , __selector : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const dirent) -> :: core :: ffi :: c_int > , __cmp : :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut * const dirent , arg2 : * mut * const dirent) -> :: core :: ffi :: c_int >) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn alphasort (__e1 : * mut * const dirent , __e2 : * mut * const dirent) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getdirentries (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __nbytes : usize , __basep : * mut __off_t) -> __ssize_t ; } pub type gid_t = __gid_t ; pub type uid_t = __uid_t ; pub type useconds_t = __useconds_t ; pub type socklen_t = __socklen_t ; unsafe extern "C" { pub fn access (__name : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn faccessat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __type : :: core :: ffi :: c_int , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn lseek (__fd : :: core :: ffi :: c_int , __offset : __off_t , __whence : :: core :: ffi :: c_int) -> __off_t ; } unsafe extern "C" { pub fn close (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn closefrom (__lowfd : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn read (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize) -> isize ; } unsafe extern "C" { pub fn write (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize) -> isize ; } unsafe extern "C" { pub fn pread (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __nbytes : usize , __offset : __off_t) -> isize ; } unsafe extern "C" { pub fn pwrite (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __offset : __off_t) -> isize ; } unsafe extern "C" { pub fn pipe (__pipedes : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn alarm (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } unsafe extern "C" { pub fn sleep (__seconds : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_uint ; } unsafe extern "C" { pub fn ualarm (__value : __useconds_t , __interval : __useconds_t) -> __useconds_t ; } unsafe extern "C" { pub fn usleep (__useconds : __useconds_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pause () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn chown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fchown (__fd : :: core :: ffi :: c_int , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn lchown (__file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fchownat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __owner : __uid_t , __group : __gid_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn chdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fchdir (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getcwd (__buf : * mut :: core :: ffi :: c_char , __size : usize) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn getwd (__buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn dup (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn dup2 (__fd : :: core :: ffi :: c_int , __fd2 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub static mut __environ : * mut * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn execve (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fexecve (__fd : :: core :: ffi :: c_int , __argv : * const * mut :: core :: ffi :: c_char , __envp : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn execv (__path : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn execle (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn execl (__path : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn execvp (__file : * const :: core :: ffi :: c_char , __argv : * const * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn execlp (__file : * const :: core :: ffi :: c_char , __arg : * const :: core :: ffi :: c_char , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn nice (__inc : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn _exit (__status : :: core :: ffi :: c_int) -> ! ; } pub const _PC_LINK_MAX : _bindgen_ty_12 = 0 ; pub const _PC_MAX_CANON : _bindgen_ty_12 = 1 ; pub const _PC_MAX_INPUT : _bindgen_ty_12 = 2 ; pub const _PC_NAME_MAX : _bindgen_ty_12 = 3 ; pub const _PC_PATH_MAX : _bindgen_ty_12 = 4 ; pub const _PC_PIPE_BUF : _bindgen_ty_12 = 5 ; pub const _PC_CHOWN_RESTRICTED : _bindgen_ty_12 = 6 ; pub const _PC_NO_TRUNC : _bindgen_ty_12 = 7 ; pub const _PC_VDISABLE : _bindgen_ty_12 = 8 ; pub const _PC_SYNC_IO : _bindgen_ty_12 = 9 ; pub const _PC_ASYNC_IO : _bindgen_ty_12 = 10 ; pub const _PC_PRIO_IO : _bindgen_ty_12 = 11 ; pub const _PC_SOCK_MAXBUF : _bindgen_ty_12 = 12 ; pub const _PC_FILESIZEBITS : _bindgen_ty_12 = 13 ; pub const _PC_REC_INCR_XFER_SIZE : _bindgen_ty_12 = 14 ; pub const _PC_REC_MAX_XFER_SIZE : _bindgen_ty_12 = 15 ; pub const _PC_REC_MIN_XFER_SIZE : _bindgen_ty_12 = 16 ; pub const _PC_REC_XFER_ALIGN : _bindgen_ty_12 = 17 ; pub const _PC_ALLOC_SIZE_MIN : _bindgen_ty_12 = 18 ; pub const _PC_SYMLINK_MAX : _bindgen_ty_12 = 19 ; pub const _PC_2_SYMLINKS : _bindgen_ty_12 = 20 ; pub type _bindgen_ty_12 = :: core :: ffi :: c_uint ; pub const _SC_ARG_MAX : _bindgen_ty_13 = 0 ; pub const _SC_CHILD_MAX : _bindgen_ty_13 = 1 ; pub const _SC_CLK_TCK : _bindgen_ty_13 = 2 ; pub const _SC_NGROUPS_MAX : _bindgen_ty_13 = 3 ; pub const _SC_OPEN_MAX : _bindgen_ty_13 = 4 ; pub const _SC_STREAM_MAX : _bindgen_ty_13 = 5 ; pub const _SC_TZNAME_MAX : _bindgen_ty_13 = 6 ; pub const _SC_JOB_CONTROL : _bindgen_ty_13 = 7 ; pub const _SC_SAVED_IDS : _bindgen_ty_13 = 8 ; pub const _SC_REALTIME_SIGNALS : _bindgen_ty_13 = 9 ; pub const _SC_PRIORITY_SCHEDULING : _bindgen_ty_13 = 10 ; pub const _SC_TIMERS : _bindgen_ty_13 = 11 ; pub const _SC_ASYNCHRONOUS_IO : _bindgen_ty_13 = 12 ; pub const _SC_PRIORITIZED_IO : _bindgen_ty_13 = 13 ; pub const _SC_SYNCHRONIZED_IO : _bindgen_ty_13 = 14 ; pub const _SC_FSYNC : _bindgen_ty_13 = 15 ; pub const _SC_MAPPED_FILES : _bindgen_ty_13 = 16 ; pub const _SC_MEMLOCK : _bindgen_ty_13 = 17 ; pub const _SC_MEMLOCK_RANGE : _bindgen_ty_13 = 18 ; pub const _SC_MEMORY_PROTECTION : _bindgen_ty_13 = 19 ; pub const _SC_MESSAGE_PASSING : _bindgen_ty_13 = 20 ; pub const _SC_SEMAPHORES : _bindgen_ty_13 = 21 ; pub const _SC_SHARED_MEMORY_OBJECTS : _bindgen_ty_13 = 22 ; pub const _SC_AIO_LISTIO_MAX : _bindgen_ty_13 = 23 ; pub const _SC_AIO_MAX : _bindgen_ty_13 = 24 ; pub const _SC_AIO_PRIO_DELTA_MAX : _bindgen_ty_13 = 25 ; pub const _SC_DELAYTIMER_MAX : _bindgen_ty_13 = 26 ; pub const _SC_MQ_OPEN_MAX : _bindgen_ty_13 = 27 ; pub const _SC_MQ_PRIO_MAX : _bindgen_ty_13 = 28 ; pub const _SC_VERSION : _bindgen_ty_13 = 29 ; pub const _SC_PAGESIZE : _bindgen_ty_13 = 30 ; pub const _SC_RTSIG_MAX : _bindgen_ty_13 = 31 ; pub const _SC_SEM_NSEMS_MAX : _bindgen_ty_13 = 32 ; pub const _SC_SEM_VALUE_MAX : _bindgen_ty_13 = 33 ; pub const _SC_SIGQUEUE_MAX : _bindgen_ty_13 = 34 ; pub const _SC_TIMER_MAX : _bindgen_ty_13 = 35 ; pub const _SC_BC_BASE_MAX : _bindgen_ty_13 = 36 ; pub const _SC_BC_DIM_MAX : _bindgen_ty_13 = 37 ; pub const _SC_BC_SCALE_MAX : _bindgen_ty_13 = 38 ; pub const _SC_BC_STRING_MAX : _bindgen_ty_13 = 39 ; pub const _SC_COLL_WEIGHTS_MAX : _bindgen_ty_13 = 40 ; pub const _SC_EQUIV_CLASS_MAX : _bindgen_ty_13 = 41 ; pub const _SC_EXPR_NEST_MAX : _bindgen_ty_13 = 42 ; pub const _SC_LINE_MAX : _bindgen_ty_13 = 43 ; pub const _SC_RE_DUP_MAX : _bindgen_ty_13 = 44 ; pub const _SC_CHARCLASS_NAME_MAX : _bindgen_ty_13 = 45 ; pub const _SC_2_VERSION : _bindgen_ty_13 = 46 ; pub const _SC_2_C_BIND : _bindgen_ty_13 = 47 ; pub const _SC_2_C_DEV : _bindgen_ty_13 = 48 ; pub const _SC_2_FORT_DEV : _bindgen_ty_13 = 49 ; pub const _SC_2_FORT_RUN : _bindgen_ty_13 = 50 ; pub const _SC_2_SW_DEV : _bindgen_ty_13 = 51 ; pub const _SC_2_LOCALEDEF : _bindgen_ty_13 = 52 ; pub const _SC_PII : _bindgen_ty_13 = 53 ; pub const _SC_PII_XTI : _bindgen_ty_13 = 54 ; pub const _SC_PII_SOCKET : _bindgen_ty_13 = 55 ; pub const _SC_PII_INTERNET : _bindgen_ty_13 = 56 ; pub const _SC_PII_OSI : _bindgen_ty_13 = 57 ; pub const _SC_POLL : _bindgen_ty_13 = 58 ; pub const _SC_SELECT : _bindgen_ty_13 = 59 ; pub const _SC_UIO_MAXIOV : _bindgen_ty_13 = 60 ; pub const _SC_IOV_MAX : _bindgen_ty_13 = 60 ; pub const _SC_PII_INTERNET_STREAM : _bindgen_ty_13 = 61 ; pub const _SC_PII_INTERNET_DGRAM : _bindgen_ty_13 = 62 ; pub const _SC_PII_OSI_COTS : _bindgen_ty_13 = 63 ; pub const _SC_PII_OSI_CLTS : _bindgen_ty_13 = 64 ; pub const _SC_PII_OSI_M : _bindgen_ty_13 = 65 ; pub const _SC_T_IOV_MAX : _bindgen_ty_13 = 66 ; pub const _SC_THREADS : _bindgen_ty_13 = 67 ; pub const _SC_THREAD_SAFE_FUNCTIONS : _bindgen_ty_13 = 68 ; pub const _SC_GETGR_R_SIZE_MAX : _bindgen_ty_13 = 69 ; pub const _SC_GETPW_R_SIZE_MAX : _bindgen_ty_13 = 70 ; pub const _SC_LOGIN_NAME_MAX : _bindgen_ty_13 = 71 ; pub const _SC_TTY_NAME_MAX : _bindgen_ty_13 = 72 ; pub const _SC_THREAD_DESTRUCTOR_ITERATIONS : _bindgen_ty_13 = 73 ; pub const _SC_THREAD_KEYS_MAX : _bindgen_ty_13 = 74 ; pub const _SC_THREAD_STACK_MIN : _bindgen_ty_13 = 75 ; pub const _SC_THREAD_THREADS_MAX : _bindgen_ty_13 = 76 ; pub const _SC_THREAD_ATTR_STACKADDR : _bindgen_ty_13 = 77 ; pub const _SC_THREAD_ATTR_STACKSIZE : _bindgen_ty_13 = 78 ; pub const _SC_THREAD_PRIORITY_SCHEDULING : _bindgen_ty_13 = 79 ; pub const _SC_THREAD_PRIO_INHERIT : _bindgen_ty_13 = 80 ; pub const _SC_THREAD_PRIO_PROTECT : _bindgen_ty_13 = 81 ; pub const _SC_THREAD_PROCESS_SHARED : _bindgen_ty_13 = 82 ; pub const _SC_NPROCESSORS_CONF : _bindgen_ty_13 = 83 ; pub const _SC_NPROCESSORS_ONLN : _bindgen_ty_13 = 84 ; pub const _SC_PHYS_PAGES : _bindgen_ty_13 = 85 ; pub const _SC_AVPHYS_PAGES : _bindgen_ty_13 = 86 ; pub const _SC_ATEXIT_MAX : _bindgen_ty_13 = 87 ; pub const _SC_PASS_MAX : _bindgen_ty_13 = 88 ; pub const _SC_XOPEN_VERSION : _bindgen_ty_13 = 89 ; pub const _SC_XOPEN_XCU_VERSION : _bindgen_ty_13 = 90 ; pub const _SC_XOPEN_UNIX : _bindgen_ty_13 = 91 ; pub const _SC_XOPEN_CRYPT : _bindgen_ty_13 = 92 ; pub const _SC_XOPEN_ENH_I18N : _bindgen_ty_13 = 93 ; pub const _SC_XOPEN_SHM : _bindgen_ty_13 = 94 ; pub const _SC_2_CHAR_TERM : _bindgen_ty_13 = 95 ; pub const _SC_2_C_VERSION : _bindgen_ty_13 = 96 ; pub const _SC_2_UPE : _bindgen_ty_13 = 97 ; pub const _SC_XOPEN_XPG2 : _bindgen_ty_13 = 98 ; pub const _SC_XOPEN_XPG3 : _bindgen_ty_13 = 99 ; pub const _SC_XOPEN_XPG4 : _bindgen_ty_13 = 100 ; pub const _SC_CHAR_BIT : _bindgen_ty_13 = 101 ; pub const _SC_CHAR_MAX : _bindgen_ty_13 = 102 ; pub const _SC_CHAR_MIN : _bindgen_ty_13 = 103 ; pub const _SC_INT_MAX : _bindgen_ty_13 = 104 ; pub const _SC_INT_MIN : _bindgen_ty_13 = 105 ; pub const _SC_LONG_BIT : _bindgen_ty_13 = 106 ; pub const _SC_WORD_BIT : _bindgen_ty_13 = 107 ; pub const _SC_MB_LEN_MAX : _bindgen_ty_13 = 108 ; pub const _SC_NZERO : _bindgen_ty_13 = 109 ; pub const _SC_SSIZE_MAX : _bindgen_ty_13 = 110 ; pub const _SC_SCHAR_MAX : _bindgen_ty_13 = 111 ; pub const _SC_SCHAR_MIN : _bindgen_ty_13 = 112 ; pub const _SC_SHRT_MAX : _bindgen_ty_13 = 113 ; pub const _SC_SHRT_MIN : _bindgen_ty_13 = 114 ; pub const _SC_UCHAR_MAX : _bindgen_ty_13 = 115 ; pub const _SC_UINT_MAX : _bindgen_ty_13 = 116 ; pub const _SC_ULONG_MAX : _bindgen_ty_13 = 117 ; pub const _SC_USHRT_MAX : _bindgen_ty_13 = 118 ; pub const _SC_NL_ARGMAX : _bindgen_ty_13 = 119 ; pub const _SC_NL_LANGMAX : _bindgen_ty_13 = 120 ; pub const _SC_NL_MSGMAX : _bindgen_ty_13 = 121 ; pub const _SC_NL_NMAX : _bindgen_ty_13 = 122 ; pub const _SC_NL_SETMAX : _bindgen_ty_13 = 123 ; pub const _SC_NL_TEXTMAX : _bindgen_ty_13 = 124 ; pub const _SC_XBS5_ILP32_OFF32 : _bindgen_ty_13 = 125 ; pub const _SC_XBS5_ILP32_OFFBIG : _bindgen_ty_13 = 126 ; pub const _SC_XBS5_LP64_OFF64 : _bindgen_ty_13 = 127 ; pub const _SC_XBS5_LPBIG_OFFBIG : _bindgen_ty_13 = 128 ; pub const _SC_XOPEN_LEGACY : _bindgen_ty_13 = 129 ; pub const _SC_XOPEN_REALTIME : _bindgen_ty_13 = 130 ; pub const _SC_XOPEN_REALTIME_THREADS : _bindgen_ty_13 = 131 ; pub const _SC_ADVISORY_INFO : _bindgen_ty_13 = 132 ; pub const _SC_BARRIERS : _bindgen_ty_13 = 133 ; pub const _SC_BASE : _bindgen_ty_13 = 134 ; pub const _SC_C_LANG_SUPPORT : _bindgen_ty_13 = 135 ; pub const _SC_C_LANG_SUPPORT_R : _bindgen_ty_13 = 136 ; pub const _SC_CLOCK_SELECTION : _bindgen_ty_13 = 137 ; pub const _SC_CPUTIME : _bindgen_ty_13 = 138 ; pub const _SC_THREAD_CPUTIME : _bindgen_ty_13 = 139 ; pub const _SC_DEVICE_IO : _bindgen_ty_13 = 140 ; pub const _SC_DEVICE_SPECIFIC : _bindgen_ty_13 = 141 ; pub const _SC_DEVICE_SPECIFIC_R : _bindgen_ty_13 = 142 ; pub const _SC_FD_MGMT : _bindgen_ty_13 = 143 ; pub const _SC_FIFO : _bindgen_ty_13 = 144 ; pub const _SC_PIPE : _bindgen_ty_13 = 145 ; pub const _SC_FILE_ATTRIBUTES : _bindgen_ty_13 = 146 ; pub const _SC_FILE_LOCKING : _bindgen_ty_13 = 147 ; pub const _SC_FILE_SYSTEM : _bindgen_ty_13 = 148 ; pub const _SC_MONOTONIC_CLOCK : _bindgen_ty_13 = 149 ; pub const _SC_MULTI_PROCESS : _bindgen_ty_13 = 150 ; pub const _SC_SINGLE_PROCESS : _bindgen_ty_13 = 151 ; pub const _SC_NETWORKING : _bindgen_ty_13 = 152 ; pub const _SC_READER_WRITER_LOCKS : _bindgen_ty_13 = 153 ; pub const _SC_SPIN_LOCKS : _bindgen_ty_13 = 154 ; pub const _SC_REGEXP : _bindgen_ty_13 = 155 ; pub const _SC_REGEX_VERSION : _bindgen_ty_13 = 156 ; pub const _SC_SHELL : _bindgen_ty_13 = 157 ; pub const _SC_SIGNALS : _bindgen_ty_13 = 158 ; pub const _SC_SPAWN : _bindgen_ty_13 = 159 ; pub const _SC_SPORADIC_SERVER : _bindgen_ty_13 = 160 ; pub const _SC_THREAD_SPORADIC_SERVER : _bindgen_ty_13 = 161 ; pub const _SC_SYSTEM_DATABASE : _bindgen_ty_13 = 162 ; pub const _SC_SYSTEM_DATABASE_R : _bindgen_ty_13 = 163 ; pub const _SC_TIMEOUTS : _bindgen_ty_13 = 164 ; pub const _SC_TYPED_MEMORY_OBJECTS : _bindgen_ty_13 = 165 ; pub const _SC_USER_GROUPS : _bindgen_ty_13 = 166 ; pub const _SC_USER_GROUPS_R : _bindgen_ty_13 = 167 ; pub const _SC_2_PBS : _bindgen_ty_13 = 168 ; pub const _SC_2_PBS_ACCOUNTING : _bindgen_ty_13 = 169 ; pub const _SC_2_PBS_LOCATE : _bindgen_ty_13 = 170 ; pub const _SC_2_PBS_MESSAGE : _bindgen_ty_13 = 171 ; pub const _SC_2_PBS_TRACK : _bindgen_ty_13 = 172 ; pub const _SC_SYMLOOP_MAX : _bindgen_ty_13 = 173 ; pub const _SC_STREAMS : _bindgen_ty_13 = 174 ; pub const _SC_2_PBS_CHECKPOINT : _bindgen_ty_13 = 175 ; pub const _SC_V6_ILP32_OFF32 : _bindgen_ty_13 = 176 ; pub const _SC_V6_ILP32_OFFBIG : _bindgen_ty_13 = 177 ; pub const _SC_V6_LP64_OFF64 : _bindgen_ty_13 = 178 ; pub const _SC_V6_LPBIG_OFFBIG : _bindgen_ty_13 = 179 ; pub const _SC_HOST_NAME_MAX : _bindgen_ty_13 = 180 ; pub const _SC_TRACE : _bindgen_ty_13 = 181 ; pub const _SC_TRACE_EVENT_FILTER : _bindgen_ty_13 = 182 ; pub const _SC_TRACE_INHERIT : _bindgen_ty_13 = 183 ; pub const _SC_TRACE_LOG : _bindgen_ty_13 = 184 ; pub const _SC_LEVEL1_ICACHE_SIZE : _bindgen_ty_13 = 185 ; pub const _SC_LEVEL1_ICACHE_ASSOC : _bindgen_ty_13 = 186 ; pub const _SC_LEVEL1_ICACHE_LINESIZE : _bindgen_ty_13 = 187 ; pub const _SC_LEVEL1_DCACHE_SIZE : _bindgen_ty_13 = 188 ; pub const _SC_LEVEL1_DCACHE_ASSOC : _bindgen_ty_13 = 189 ; pub const _SC_LEVEL1_DCACHE_LINESIZE : _bindgen_ty_13 = 190 ; pub const _SC_LEVEL2_CACHE_SIZE : _bindgen_ty_13 = 191 ; pub const _SC_LEVEL2_CACHE_ASSOC : _bindgen_ty_13 = 192 ; pub const _SC_LEVEL2_CACHE_LINESIZE : _bindgen_ty_13 = 193 ; pub const _SC_LEVEL3_CACHE_SIZE : _bindgen_ty_13 = 194 ; pub const _SC_LEVEL3_CACHE_ASSOC : _bindgen_ty_13 = 195 ; pub const _SC_LEVEL3_CACHE_LINESIZE : _bindgen_ty_13 = 196 ; pub const _SC_LEVEL4_CACHE_SIZE : _bindgen_ty_13 = 197 ; pub const _SC_LEVEL4_CACHE_ASSOC : _bindgen_ty_13 = 198 ; pub const _SC_LEVEL4_CACHE_LINESIZE : _bindgen_ty_13 = 199 ; pub const _SC_IPV6 : _bindgen_ty_13 = 235 ; pub const _SC_RAW_SOCKETS : _bindgen_ty_13 = 236 ; pub const _SC_V7_ILP32_OFF32 : _bindgen_ty_13 = 237 ; pub const _SC_V7_ILP32_OFFBIG : _bindgen_ty_13 = 238 ; pub const _SC_V7_LP64_OFF64 : _bindgen_ty_13 = 239 ; pub const _SC_V7_LPBIG_OFFBIG : _bindgen_ty_13 = 240 ; pub const _SC_SS_REPL_MAX : _bindgen_ty_13 = 241 ; pub const _SC_TRACE_EVENT_NAME_MAX : _bindgen_ty_13 = 242 ; pub const _SC_TRACE_NAME_MAX : _bindgen_ty_13 = 243 ; pub const _SC_TRACE_SYS_MAX : _bindgen_ty_13 = 244 ; pub const _SC_TRACE_USER_EVENT_MAX : _bindgen_ty_13 = 245 ; pub const _SC_XOPEN_STREAMS : _bindgen_ty_13 = 246 ; pub const _SC_THREAD_ROBUST_PRIO_INHERIT : _bindgen_ty_13 = 247 ; pub const _SC_THREAD_ROBUST_PRIO_PROTECT : _bindgen_ty_13 = 248 ; pub const _SC_MINSIGSTKSZ : _bindgen_ty_13 = 249 ; pub const _SC_SIGSTKSZ : _bindgen_ty_13 = 250 ; pub type _bindgen_ty_13 = :: core :: ffi :: c_uint ; pub const _CS_PATH : _bindgen_ty_14 = 0 ; pub const _CS_V6_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 1 ; pub const _CS_GNU_LIBC_VERSION : _bindgen_ty_14 = 2 ; pub const _CS_GNU_LIBPTHREAD_VERSION : _bindgen_ty_14 = 3 ; pub const _CS_V5_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 4 ; pub const _CS_V7_WIDTH_RESTRICTED_ENVS : _bindgen_ty_14 = 5 ; pub const _CS_LFS_CFLAGS : _bindgen_ty_14 = 1000 ; pub const _CS_LFS_LDFLAGS : _bindgen_ty_14 = 1001 ; pub const _CS_LFS_LIBS : _bindgen_ty_14 = 1002 ; pub const _CS_LFS_LINTFLAGS : _bindgen_ty_14 = 1003 ; pub const _CS_LFS64_CFLAGS : _bindgen_ty_14 = 1004 ; pub const _CS_LFS64_LDFLAGS : _bindgen_ty_14 = 1005 ; pub const _CS_LFS64_LIBS : _bindgen_ty_14 = 1006 ; pub const _CS_LFS64_LINTFLAGS : _bindgen_ty_14 = 1007 ; pub const _CS_XBS5_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1100 ; pub const _CS_XBS5_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1101 ; pub const _CS_XBS5_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1102 ; pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1103 ; pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1104 ; pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1105 ; pub const _CS_XBS5_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1106 ; pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1107 ; pub const _CS_XBS5_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1108 ; pub const _CS_XBS5_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1109 ; pub const _CS_XBS5_LP64_OFF64_LIBS : _bindgen_ty_14 = 1110 ; pub const _CS_XBS5_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1111 ; pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1112 ; pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1113 ; pub const _CS_XBS5_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1114 ; pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1115 ; pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1116 ; pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1117 ; pub const _CS_POSIX_V6_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1118 ; pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1119 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1120 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1121 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1122 ; pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1123 ; pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1124 ; pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1125 ; pub const _CS_POSIX_V6_LP64_OFF64_LIBS : _bindgen_ty_14 = 1126 ; pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1127 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1128 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1129 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1130 ; pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1131 ; pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS : _bindgen_ty_14 = 1132 ; pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS : _bindgen_ty_14 = 1133 ; pub const _CS_POSIX_V7_ILP32_OFF32_LIBS : _bindgen_ty_14 = 1134 ; pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS : _bindgen_ty_14 = 1135 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS : _bindgen_ty_14 = 1136 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1137 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS : _bindgen_ty_14 = 1138 ; pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1139 ; pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS : _bindgen_ty_14 = 1140 ; pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS : _bindgen_ty_14 = 1141 ; pub const _CS_POSIX_V7_LP64_OFF64_LIBS : _bindgen_ty_14 = 1142 ; pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS : _bindgen_ty_14 = 1143 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS : _bindgen_ty_14 = 1144 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS : _bindgen_ty_14 = 1145 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS : _bindgen_ty_14 = 1146 ; pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS : _bindgen_ty_14 = 1147 ; pub const _CS_V6_ENV : _bindgen_ty_14 = 1148 ; pub const _CS_V7_ENV : _bindgen_ty_14 = 1149 ; pub type _bindgen_ty_14 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn pathconf (__path : * const :: core :: ffi :: c_char , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn fpathconf (__fd : :: core :: ffi :: c_int , __name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn sysconf (__name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn confstr (__name : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> usize ; } unsafe extern "C" { pub fn getpid () -> __pid_t ; } unsafe extern "C" { pub fn getppid () -> __pid_t ; } unsafe extern "C" { pub fn getpgrp () -> __pid_t ; } unsafe extern "C" { pub fn __getpgid (__pid : __pid_t) -> __pid_t ; } unsafe extern "C" { pub fn getpgid (__pid : __pid_t) -> __pid_t ; } unsafe extern "C" { pub fn setpgid (__pid : __pid_t , __pgid : __pid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setpgrp () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setsid () -> __pid_t ; } unsafe extern "C" { pub fn getsid (__pid : __pid_t) -> __pid_t ; } unsafe extern "C" { pub fn getuid () -> __uid_t ; } unsafe extern "C" { pub fn geteuid () -> __uid_t ; } unsafe extern "C" { pub fn getgid () -> __gid_t ; } unsafe extern "C" { pub fn getegid () -> __gid_t ; } unsafe extern "C" { pub fn getgroups (__size : :: core :: ffi :: c_int , __list : * mut __gid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setreuid (__ruid : __uid_t , __euid : __uid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn seteuid (__uid : __uid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setgid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setregid (__rgid : __gid_t , __egid : __gid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setegid (__gid : __gid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fork () -> __pid_t ; } unsafe extern "C" { pub fn vfork () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ttyname (__fd : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn ttyname_r (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isatty (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ttyslot () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn link (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn linkat (__fromfd : :: core :: ffi :: c_int , __from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn symlink (__from : * const :: core :: ffi :: c_char , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn readlink (__path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } unsafe extern "C" { pub fn symlinkat (__from : * const :: core :: ffi :: c_char , __tofd : :: core :: ffi :: c_int , __to : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn readlinkat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> isize ; } unsafe extern "C" { pub fn unlink (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn unlinkat (__fd : :: core :: ffi :: c_int , __name : * const :: core :: ffi :: c_char , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn rmdir (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn tcgetpgrp (__fd : :: core :: ffi :: c_int) -> __pid_t ; } unsafe extern "C" { pub fn tcsetpgrp (__fd : :: core :: ffi :: c_int , __pgrp_id : __pid_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getlogin () -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn getlogin_r (__name : * mut :: core :: ffi :: c_char , __name_len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setlogin (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub static mut optarg : * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub static mut optind : :: core :: ffi :: c_int ; } unsafe extern "C" { pub static mut opterr : :: core :: ffi :: c_int ; } unsafe extern "C" { pub static mut optopt : :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getopt (___argc : :: core :: ffi :: c_int , ___argv : * const * mut :: core :: ffi :: c_char , __shortopts : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn gethostname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sethostname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sethostid (__id : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getdomainname (__name : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setdomainname (__name : * const :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn vhangup () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn revoke (__file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn profil (__sample_buffer : * mut :: core :: ffi :: c_ushort , __size : usize , __offset : usize , __scale : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn acct (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getusershell () -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn endusershell () ; } unsafe extern "C" { pub fn setusershell () ; } unsafe extern "C" { pub fn daemon (__nochdir : :: core :: ffi :: c_int , __noclose : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn chroot (__path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getpass (__prompt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn fsync (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn gethostid () -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn sync () ; } unsafe extern "C" { pub fn getpagesize () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getdtablesize () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn truncate (__file : * const :: core :: ffi :: c_char , __length : __off_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ftruncate (__fd : :: core :: ffi :: c_int , __length : __off_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn brk (__addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sbrk (__delta : isize) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn syscall (__sysno : :: core :: ffi :: c_long , ...) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn lockf (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , __len : __off_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fdatasync (__fildes : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn crypt (__key : * const :: core :: ffi :: c_char , __salt : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn getentropy (__buffer : * mut :: core :: ffi :: c_void , __length : usize) -> :: core :: ffi :: c_int ; } pub type dev_t = __dev_t ; pub type ino_t = __ino_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct stat { pub st_dev : __dev_t , pub st_ino : __ino_t , pub st_nlink : __nlink_t , pub st_mode : __mode_t , pub st_uid : __uid_t , pub st_gid : __gid_t , pub __pad0 : :: core :: ffi :: c_int , pub st_rdev : __dev_t , pub st_size : __off_t , pub st_blksize : __blksize_t , pub st_blocks : __blkcnt_t , pub st_atim : timespec , pub st_mtim : timespec , pub st_ctim : timespec , pub __glibc_reserved : [__syscall_slong_t ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of stat"] [:: core :: mem :: size_of :: < stat > () - 144usize] ; ["Alignment of stat"] [:: core :: mem :: align_of :: < stat > () - 8usize] ; ["Offset of field: stat::st_dev"] [:: core :: mem :: offset_of ! (stat , st_dev) - 0usize] ; ["Offset of field: stat::st_ino"] [:: core :: mem :: offset_of ! (stat , st_ino) - 8usize] ; ["Offset of field: stat::st_nlink"] [:: core :: mem :: offset_of ! (stat , st_nlink) - 16usize] ; ["Offset of field: stat::st_mode"] [:: core :: mem :: offset_of ! (stat , st_mode) - 24usize] ; ["Offset of field: stat::st_uid"] [:: core :: mem :: offset_of ! (stat , st_uid) - 28usize] ; ["Offset of field: stat::st_gid"] [:: core :: mem :: offset_of ! (stat , st_gid) - 32usize] ; ["Offset of field: stat::__pad0"] [:: core :: mem :: offset_of ! (stat , __pad0) - 36usize] ; ["Offset of field: stat::st_rdev"] [:: core :: mem :: offset_of ! (stat , st_rdev) - 40usize] ; ["Offset of field: stat::st_size"] [:: core :: mem :: offset_of ! (stat , st_size) - 48usize] ; ["Offset of field: stat::st_blksize"] [:: core :: mem :: offset_of ! (stat , st_blksize) - 56usize] ; ["Offset of field: stat::st_blocks"] [:: core :: mem :: offset_of ! (stat , st_blocks) - 64usize] ; ["Offset of field: stat::st_atim"] [:: core :: mem :: offset_of ! (stat , st_atim) - 72usize] ; ["Offset of field: stat::st_mtim"] [:: core :: mem :: offset_of ! (stat , st_mtim) - 88usize] ; ["Offset of field: stat::st_ctim"] [:: core :: mem :: offset_of ! (stat , st_ctim) - 104usize] ; ["Offset of field: stat::__glibc_reserved"] [:: core :: mem :: offset_of ! (stat , __glibc_reserved) - 120usize] ; } ; unsafe extern "C" { pub fn stat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fstat (__fd : :: core :: ffi :: c_int , __buf : * mut stat) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fstatat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __buf : * mut stat , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn lstat (__file : * const :: core :: ffi :: c_char , __buf : * mut stat) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn chmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn lchmod (__file : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fchmod (__fd : :: core :: ffi :: c_int , __mode : __mode_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fchmodat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __mode : __mode_t , __flag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn umask (__mask : __mode_t) -> __mode_t ; } unsafe extern "C" { pub fn mkdir (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mkdirat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mknod (__path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mknodat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t , __dev : __dev_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mkfifo (__path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mkfifoat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __mode : __mode_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn utimensat (__fd : :: core :: ffi :: c_int , __path : * const :: core :: ffi :: c_char , __times : * const timespec , __flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn futimens (__fd : :: core :: ffi :: c_int , __times : * const timespec) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_FileLoad (fname : * const :: core :: ffi :: c_char , buf : * mut * mut :: core :: ffi :: c_uchar , bufLen : * mut usize , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadDirCtx { pub entry : * mut dirent , pub dir : * mut DIR , pub s : stat , pub name : [:: core :: ffi :: c_char ; 261usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadDirCtx"] [:: core :: mem :: size_of :: < ReadDirCtx > () - 424usize] ; ["Alignment of ReadDirCtx"] [:: core :: mem :: align_of :: < ReadDirCtx > () - 8usize] ; ["Offset of field: ReadDirCtx::entry"] [:: core :: mem :: offset_of ! (ReadDirCtx , entry) - 0usize] ; ["Offset of field: ReadDirCtx::dir"] [:: core :: mem :: offset_of ! (ReadDirCtx , dir) - 8usize] ; ["Offset of field: ReadDirCtx::s"] [:: core :: mem :: offset_of ! (ReadDirCtx , s) - 16usize] ; ["Offset of field: ReadDirCtx::name"] [:: core :: mem :: offset_of ! (ReadDirCtx , name) - 160usize] ; } ; unsafe extern "C" { pub fn wc_ReadDirFirst (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ReadDirNext (ctx : * mut ReadDirCtx , path : * const :: core :: ffi :: c_char , name : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ReadDirClose (ctx : * mut ReadDirCtx) ; } unsafe extern "C" { pub fn wc_FileExists (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } pub type SOCKET_T = :: core :: ffi :: c_int ; unsafe extern "C" { pub fn wolfSSL_strnstr (s1 : * const :: core :: ffi :: c_char , s2 : * const :: core :: ffi :: c_char , n : usize) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wc_set_cloexec (fd : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wc_open_cloexec (path : * const :: core :: ffi :: c_char , flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_socket_cloexec (domain : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int , protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_accept_cloexec (sockfd : :: core :: ffi :: c_int , addr : * mut :: core :: ffi :: c_void , addrlen : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub const Hash_Sum_MD2h : Hash_Sum = 71994333 ; pub const Hash_Sum_MD4h : Hash_Sum = 38439901 ; pub const Hash_Sum_MD5h : Hash_Sum = 55217117 ; pub const Hash_Sum_SHAh : Hash_Sum = 2097410353 ; pub const Hash_Sum_SHA224h : Hash_Sum = 2092137214 ; pub const Hash_Sum_SHA256h : Hash_Sum = 2092137211 ; pub const Hash_Sum_SHA384h : Hash_Sum = 2092137208 ; pub const Hash_Sum_SHA512h : Hash_Sum = 2092137209 ; pub const Hash_Sum_SHA512_224h : Hash_Sum = 2092137215 ; pub const Hash_Sum_SHA512_256h : Hash_Sum = 2092137212 ; pub const Hash_Sum_SHA3_224h : Hash_Sum = 2092137213 ; pub const Hash_Sum_SHA3_256h : Hash_Sum = 2092137202 ; pub const Hash_Sum_SHA3_384h : Hash_Sum = 2092137203 ; pub const Hash_Sum_SHA3_512h : Hash_Sum = 2092137200 ; pub const Hash_Sum_SHAKE128h : Hash_Sum = 2092137201 ; pub const Hash_Sum_SHAKE256h : Hash_Sum = 2092137206 ; pub const Hash_Sum_SM3h : Hash_Sum = 1587511423 ; pub type Hash_Sum = :: core :: ffi :: c_uint ; pub const Block_Sum_AES128CBCb : Block_Sum = 2142468856 ; pub const Block_Sum_AES128GCMb : Block_Sum = 2142468860 ; pub const Block_Sum_AES128CCMb : Block_Sum = 2142468861 ; pub const Block_Sum_AES192CBCb : Block_Sum = 2142468844 ; pub const Block_Sum_AES192GCMb : Block_Sum = 2142468832 ; pub const Block_Sum_AES192CCMb : Block_Sum = 2142468833 ; pub const Block_Sum_AES256CBCb : Block_Sum = 2142468816 ; pub const Block_Sum_AES256GCMb : Block_Sum = 2142468820 ; pub const Block_Sum_AES256CCMb : Block_Sum = 2142468821 ; pub const Block_Sum_DESb : Block_Sum = 2097410348 ; pub const Block_Sum_DES3b : Block_Sum = 21728221 ; pub type Block_Sum = :: core :: ffi :: c_uint ; pub const Key_Sum_ANONk : Key_Sum = 2147483647 ; pub const Key_Sum_DSAk : Key_Sum = 826901010 ; pub const Key_Sum_RSAk : Key_Sum = 2025223203 ; pub const Key_Sum_RSAPSSk : Key_Sum = 2025223208 ; pub const Key_Sum_RSAESOAEPk : Key_Sum = 2025223205 ; pub const Key_Sum_ECDSAk : Key_Sum = 826901527 ; pub const Key_Sum_SM2k : Key_Sum = 1654554751 ; pub const Key_Sum_ED25519k : Key_Sum = 2140104148 ; pub const Key_Sum_X25519k : Key_Sum = 2140235220 ; pub const Key_Sum_ED448k : Key_Sum = 2140038612 ; pub const Key_Sum_X448k : Key_Sum = 2140169684 ; pub const Key_Sum_DHk : Key_Sum = 2058777635 ; pub const Key_Sum_FALCON_LEVEL1k : Key_Sum = 2081370400 ; pub const Key_Sum_FALCON_LEVEL5k : Key_Sum = 2081370405 ; pub const Key_Sum_DILITHIUM_LEVEL2k : Key_Sum = 1886912729 ; pub const Key_Sum_DILITHIUM_LEVEL3k : Key_Sum = 1886978777 ; pub const Key_Sum_DILITHIUM_LEVEL5k : Key_Sum = 1887112409 ; pub const Key_Sum_ML_DSA_LEVEL2k : Key_Sum = 2108914411 ; pub const Key_Sum_ML_DSA_LEVEL3k : Key_Sum = 2108914408 ; pub const Key_Sum_ML_DSA_LEVEL5k : Key_Sum = 2108914409 ; pub const Key_Sum_SLH_DSA_SHA2_128Sk : Key_Sum = 2108914414 ; pub const Key_Sum_SLH_DSA_SHA2_128Fk : Key_Sum = 2108914415 ; pub const Key_Sum_SLH_DSA_SHA2_192Sk : Key_Sum = 2108914412 ; pub const Key_Sum_SLH_DSA_SHA2_192Fk : Key_Sum = 2108914413 ; pub const Key_Sum_SLH_DSA_SHA2_256Sk : Key_Sum = 2108914402 ; pub const Key_Sum_SLH_DSA_SHA2_256Fk : Key_Sum = 2108914403 ; pub const Key_Sum_SLH_DSA_SHAKE_128Sk : Key_Sum = 2108914400 ; pub const Key_Sum_SLH_DSA_SHAKE_128Fk : Key_Sum = 2108914401 ; pub const Key_Sum_SLH_DSA_SHAKE_192Sk : Key_Sum = 2108914406 ; pub const Key_Sum_SLH_DSA_SHAKE_192Fk : Key_Sum = 2108914407 ; pub const Key_Sum_SLH_DSA_SHAKE_256Sk : Key_Sum = 2108914404 ; pub const Key_Sum_SLH_DSA_SHAKE_256Fk : Key_Sum = 2108914405 ; pub const Key_Sum_HSS_LMSk : Key_Sum = 1890027570 ; pub const Key_Sum_XMSSk : Key_Sum = 654770478 ; pub const Key_Sum_XMSSMTk : Key_Sum = 637993262 ; pub type Key_Sum = :: core :: ffi :: c_uint ; pub const KeyWrap_Sum_AES128_WRAP : KeyWrap_Sum = 2142468863 ; pub const KeyWrap_Sum_AES192_WRAP : KeyWrap_Sum = 2142468835 ; pub const KeyWrap_Sum_AES256_WRAP : KeyWrap_Sum = 2142468823 ; pub const KeyWrap_Sum_PWRI_KEK_WRAP : KeyWrap_Sum = 1891600434 ; pub type KeyWrap_Sum = :: core :: ffi :: c_uint ; pub const Key_Agree_dhSinglePass_stdDH_sha1kdf_scheme : Key_Agree = 1875195472 ; pub const Key_Agree_dhSinglePass_stdDH_sha224kdf_scheme : Key_Agree = 33259808 ; pub const Key_Agree_dhSinglePass_stdDH_sha256kdf_scheme : Key_Agree = 33259552 ; pub const Key_Agree_dhSinglePass_stdDH_sha384kdf_scheme : Key_Agree = 33260320 ; pub const Key_Agree_dhSinglePass_stdDH_sha512kdf_scheme : Key_Agree = 33260064 ; pub type Key_Agree = :: core :: ffi :: c_uint ; pub const KDF_Sum_PBKDF2_OID : KDF_Sum = 2092332078 ; pub const KDF_Sum_MGF1_OID : KDF_Sum = 2025223210 ; pub type KDF_Sum = :: core :: ffi :: c_uint ; pub const HMAC_Sum_HMAC_SHA224_OID : HMAC_Sum = 239766493 ; pub const HMAC_Sum_HMAC_SHA256_OID : HMAC_Sum = 256543709 ; pub const HMAC_Sum_HMAC_SHA384_OID : HMAC_Sum = 206212061 ; pub const HMAC_Sum_HMAC_SHA512_OID : HMAC_Sum = 222989277 ; pub const HMAC_Sum_HMAC_SHA3_224_OID : HMAC_Sum = 2092137207 ; pub const HMAC_Sum_HMAC_SHA3_256_OID : HMAC_Sum = 2092137204 ; pub const HMAC_Sum_HMAC_SHA3_384_OID : HMAC_Sum = 2092137205 ; pub const HMAC_Sum_HMAC_SHA3_512_OID : HMAC_Sum = 2092137194 ; pub type HMAC_Sum = :: core :: ffi :: c_uint ; pub const Extensions_Sum_BASIC_CA_OID : Extensions_Sum = 2146180522 ; pub const Extensions_Sum_ALT_NAMES_OID : Extensions_Sum = 2146311594 ; pub const Extensions_Sum_CRL_DIST_OID : Extensions_Sum = 2145394090 ; pub const Extensions_Sum_AUTH_INFO_OID : Extensions_Sum = 67109166 ; pub const Extensions_Sum_AUTH_KEY_OID : Extensions_Sum = 2145131946 ; pub const Extensions_Sum_SUBJ_KEY_OID : Extensions_Sum = 2146508202 ; pub const Extensions_Sum_CERT_POLICY_OID : Extensions_Sum = 2145328554 ; pub const Extensions_Sum_CRL_NUMBER_OID : Extensions_Sum = 2146114986 ; pub const Extensions_Sum_KEY_USAGE_OID : Extensions_Sum = 2146442666 ; pub const Extensions_Sum_INHIBIT_ANY_OID : Extensions_Sum = 2143886762 ; pub const Extensions_Sum_EXT_KEY_USAGE_OID : Extensions_Sum = 2145000874 ; pub const Extensions_Sum_NAME_CONS_OID : Extensions_Sum = 2145459626 ; pub const Extensions_Sum_PRIV_KEY_USAGE_PERIOD_OID : Extensions_Sum = 2146377130 ; pub const Extensions_Sum_SUBJ_INFO_ACC_OID : Extensions_Sum = 234881326 ; pub const Extensions_Sum_POLICY_MAP_OID : Extensions_Sum = 2145263018 ; pub const Extensions_Sum_POLICY_CONST_OID : Extensions_Sum = 2145066410 ; pub const Extensions_Sum_ISSUE_ALT_NAMES_OID : Extensions_Sum = 2146246058 ; pub const Extensions_Sum_TLS_FEATURE_OID : Extensions_Sum = 486539566 ; pub const Extensions_Sum_DNS_SRV_OID : Extensions_Sum = 34144558 ; pub const Extensions_Sum_NETSCAPE_CT_OID : Extensions_Sum = 2146795800 ; pub const Extensions_Sum_OCSP_NOCHECK_OID : Extensions_Sum = 2077163220 ; pub const Extensions_Sum_SUBJ_DIR_ATTR_OID : Extensions_Sum = 2146835882 ; pub const Extensions_Sum_AKEY_PACKAGE_OID : Extensions_Sum = 55148980 ; pub const Extensions_Sum_FASCN_OID : Extensions_Sum = 122586373 ; pub const Extensions_Sum_UPN_OID : Extensions_Sum = 272009175 ; pub const Extensions_Sum_SUBJ_ALT_PUB_KEY_INFO_OID : Extensions_Sum = 2142707114 ; pub const Extensions_Sum_ALT_SIG_ALG_OID : Extensions_Sum = 2142641578 ; pub const Extensions_Sum_ALT_SIG_VAL_OID : Extensions_Sum = 2142576042 ; pub type Extensions_Sum = :: core :: ffi :: c_uint ; pub const CertificatePolicy_Sum_CP_ANY_OID : CertificatePolicy_Sum = 14622122 ; pub const CertificatePolicy_Sum_CP_ISRG_DOMAIN_VALID : CertificatePolicy_Sum = 1746961876 ; pub const CertificatePolicy_Sum_CP_FPKI_HIGH_ASSURANCE_OID : CertificatePolicy_Sum = 4882937 ; pub const CertificatePolicy_Sum_CP_FPKI_COMMON_HARDWARE_OID : CertificatePolicy_Sum = 4883193 ; pub const CertificatePolicy_Sum_CP_FPKI_MEDIUM_HARDWARE_OID : CertificatePolicy_Sum = 4884985 ; pub const CertificatePolicy_Sum_CP_FPKI_COMMON_AUTH_OID : CertificatePolicy_Sum = 4884729 ; pub const CertificatePolicy_Sum_CP_FPKI_COMMON_HIGH_OID : CertificatePolicy_Sum = 4888057 ; pub const CertificatePolicy_Sum_CP_FPKI_PIVI_HARDWARE_OID : CertificatePolicy_Sum = 4888569 ; pub const CertificatePolicy_Sum_CP_FPKI_PIVI_CONTENT_SIGNING_OID : CertificatePolicy_Sum = 4887033 ; pub const CertificatePolicy_Sum_CP_FPKI_COMMON_DEVICES_HARDWARE_OID : CertificatePolicy_Sum = 4891129 ; pub const CertificatePolicy_Sum_CP_FPKI_MEDIUM_DEVICE_HARDWARE_OID : CertificatePolicy_Sum = 4891641 ; pub const CertificatePolicy_Sum_CP_FPKI_COMMON_PIV_CONTENT_SIGNING_OID : CertificatePolicy_Sum = 4891385 ; pub const CertificatePolicy_Sum_CP_FPKI_PIV_AUTH_OID : CertificatePolicy_Sum = 4894201 ; pub const CertificatePolicy_Sum_CP_FPKI_PIV_AUTH_HW_OID : CertificatePolicy_Sum = 4893945 ; pub const CertificatePolicy_Sum_CP_FPKI_PIVI_AUTH_OID : CertificatePolicy_Sum = 4892921 ; pub const CertificatePolicy_Sum_CP_FPKI_COMMON_PIVI_CONTENT_SIGNING_OID : CertificatePolicy_Sum = 4893433 ; pub const CertificatePolicy_Sum_CP_FPKI_AUTH_TEST_OID : CertificatePolicy_Sum = 4886218 ; pub const CertificatePolicy_Sum_CP_FPKI_CARDAUTH_TEST_OID : CertificatePolicy_Sum = 4884682 ; pub const CertificatePolicy_Sum_CP_FPKI_PIV_CONTENT_TEST_OID : CertificatePolicy_Sum = 4903882 ; pub const CertificatePolicy_Sum_CP_FPKI_PIV_AUTH_DERIVED_TEST_OID : CertificatePolicy_Sum = 4909258 ; pub const CertificatePolicy_Sum_CP_FPKI_PIV_AUTH_DERIVED_HW_TEST_OID : CertificatePolicy_Sum = 4910026 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_OID : CertificatePolicy_Sum = 1974893567 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_HARDWARE_OID : CertificatePolicy_Sum = 1974893555 ; pub const CertificatePolicy_Sum_CP_DOD_PIV_AUTH_OID : CertificatePolicy_Sum = 1974893552 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_NPE_OID : CertificatePolicy_Sum = 1974893547 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_2048_OID : CertificatePolicy_Sum = 1974893544 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_HARDWARE_2048_OID : CertificatePolicy_Sum = 1974893545 ; pub const CertificatePolicy_Sum_CP_DOD_PIV_AUTH_2048_OID : CertificatePolicy_Sum = 1974893550 ; pub const CertificatePolicy_Sum_CP_DOD_PEER_INTEROP_OID : CertificatePolicy_Sum = 1974893541 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_NPE_112_OID : CertificatePolicy_Sum = 1974893534 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_NPE_128_OID : CertificatePolicy_Sum = 1974893535 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_NPE_192_OID : CertificatePolicy_Sum = 1974893532 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_112_OID : CertificatePolicy_Sum = 1974893533 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_128_OID : CertificatePolicy_Sum = 1974893522 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_192_OID : CertificatePolicy_Sum = 1974893523 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_HARDWARE_112_OID : CertificatePolicy_Sum = 1974893520 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_HARDWARE_128_OID : CertificatePolicy_Sum = 1974893521 ; pub const CertificatePolicy_Sum_CP_DOD_MEDIUM_HARDWARE_192_OID : CertificatePolicy_Sum = 1974893526 ; pub const CertificatePolicy_Sum_CP_DOD_ADMIN_OID : CertificatePolicy_Sum = 1974893505 ; pub const CertificatePolicy_Sum_CP_DOD_INTERNAL_NPE_112_OID : CertificatePolicy_Sum = 1974893510 ; pub const CertificatePolicy_Sum_CP_DOD_INTERNAL_NPE_128_OID : CertificatePolicy_Sum = 1974893511 ; pub const CertificatePolicy_Sum_CP_DOD_INTERNAL_NPE_192_OID : CertificatePolicy_Sum = 1974893508 ; pub const CertificatePolicy_Sum_CP_ECA_MEDIUM_OID : CertificatePolicy_Sum = 4883702 ; pub const CertificatePolicy_Sum_CP_ECA_MEDIUM_HARDWARE_OID : CertificatePolicy_Sum = 4884470 ; pub const CertificatePolicy_Sum_CP_ECA_MEDIUM_TOKEN_OID : CertificatePolicy_Sum = 4884214 ; pub const CertificatePolicy_Sum_CP_ECA_MEDIUM_SHA256_OID : CertificatePolicy_Sum = 4882934 ; pub const CertificatePolicy_Sum_CP_ECA_MEDIUM_TOKEN_SHA256_OID : CertificatePolicy_Sum = 4882678 ; pub const CertificatePolicy_Sum_CP_ECA_MEDIUM_HARDWARE_PIVI_OID : CertificatePolicy_Sum = 4883446 ; pub const CertificatePolicy_Sum_CP_ECA_CONTENT_SIGNING_PIVI_OID : CertificatePolicy_Sum = 4886006 ; pub const CertificatePolicy_Sum_CP_ECA_MEDIUM_DEVICE_SHA256_OID : CertificatePolicy_Sum = 4885750 ; pub const CertificatePolicy_Sum_CP_ECA_MEDIUM_HARDWARE_SHA256_OID : CertificatePolicy_Sum = 4886518 ; pub const CertificatePolicy_Sum_CP_STATE_BASIC_OID : CertificatePolicy_Sum = 4883708 ; pub const CertificatePolicy_Sum_CP_STATE_LOW_OID : CertificatePolicy_Sum = 4884476 ; pub const CertificatePolicy_Sum_CP_STATE_MODERATE_OID : CertificatePolicy_Sum = 4884220 ; pub const CertificatePolicy_Sum_CP_STATE_HIGH_OID : CertificatePolicy_Sum = 4882940 ; pub const CertificatePolicy_Sum_CP_STATE_MEDHW_OID : CertificatePolicy_Sum = 4884988 ; pub const CertificatePolicy_Sum_CP_STATE_MEDDEVHW_OID : CertificatePolicy_Sum = 4891644 ; pub const CertificatePolicy_Sum_CP_TREAS_MEDIUMHW_OID : CertificatePolicy_Sum = 4882943 ; pub const CertificatePolicy_Sum_CP_TREAS_HIGH_OID : CertificatePolicy_Sum = 4882687 ; pub const CertificatePolicy_Sum_CP_TREAS_PIVI_HW_OID : CertificatePolicy_Sum = 4886527 ; pub const CertificatePolicy_Sum_CP_TREAS_PIVI_CONTENT_OID : CertificatePolicy_Sum = 4884991 ; pub const CertificatePolicy_Sum_CP_BOEING_MEDIUMHW_SHA256_OID : CertificatePolicy_Sum = 118375380 ; pub const CertificatePolicy_Sum_CP_BOEING_MEDIUMHW_CONTENT_SHA256_OID : CertificatePolicy_Sum = 118382292 ; pub const CertificatePolicy_Sum_CP_CARILLON_MEDIUMHW_256_OID : CertificatePolicy_Sum = 1561757142 ; pub const CertificatePolicy_Sum_CP_CARILLON_AIVHW_OID : CertificatePolicy_Sum = 1561232854 ; pub const CertificatePolicy_Sum_CP_CARILLON_AIVCONTENT_OID : CertificatePolicy_Sum = 1561101782 ; pub const CertificatePolicy_Sum_CP_CIS_MEDIUMHW_256_OID : CertificatePolicy_Sum = 624002774 ; pub const CertificatePolicy_Sum_CP_CIS_MEDDEVHW_256_OID : CertificatePolicy_Sum = 624133846 ; pub const CertificatePolicy_Sum_CP_CIS_ICECAP_HW_OID : CertificatePolicy_Sum = 623478486 ; pub const CertificatePolicy_Sum_CP_CIS_ICECAP_CONTENT_OID : CertificatePolicy_Sum = 623609558 ; pub const CertificatePolicy_Sum_CP_CERTIPATH_MEDIUMHW_OID : CertificatePolicy_Sum = 1430554324 ; pub const CertificatePolicy_Sum_CP_CERTIPATH_HIGHHW_OID : CertificatePolicy_Sum = 1413777108 ; pub const CertificatePolicy_Sum_CP_CERTIPATH_ICECAP_HW_OID : CertificatePolicy_Sum = 1346668244 ; pub const CertificatePolicy_Sum_CP_CERTIPATH_ICECAP_CONTENT_OID : CertificatePolicy_Sum = 1581549268 ; pub const CertificatePolicy_Sum_CP_CERTIPATH_VAR_MEDIUMHW_OID : CertificatePolicy_Sum = 1162118868 ; pub const CertificatePolicy_Sum_CP_CERTIPATH_VAR_HIGHHW_OID : CertificatePolicy_Sum = 1145341652 ; pub const CertificatePolicy_Sum_CP_TSCP_MEDIUMHW_OID : CertificatePolicy_Sum = 1431733716 ; pub const CertificatePolicy_Sum_CP_TSCP_PIVI_OID : CertificatePolicy_Sum = 1381402068 ; pub const CertificatePolicy_Sum_CP_TSCP_PIVI_CONTENT_OID : CertificatePolicy_Sum = 1347847636 ; pub const CertificatePolicy_Sum_CP_DIGICERT_NFSSP_MEDIUMHW_OID : CertificatePolicy_Sum = 2114885350 ; pub const CertificatePolicy_Sum_CP_DIGICERT_NFSSP_AUTH_OID : CertificatePolicy_Sum = 2114885356 ; pub const CertificatePolicy_Sum_CP_DIGICERT_NFSSP_PIVI_HW_OID : CertificatePolicy_Sum = 2114885363 ; pub const CertificatePolicy_Sum_CP_DIGICERT_NFSSP_PIVI_CONTENT_OID : CertificatePolicy_Sum = 2114885365 ; pub const CertificatePolicy_Sum_CP_DIGICERT_NFSSP_MEDDEVHW_OID : CertificatePolicy_Sum = 2114885317 ; pub const CertificatePolicy_Sum_CP_ENTRUST_NFSSP_MEDIUMHW_OID : CertificatePolicy_Sum = 2015985836 ; pub const CertificatePolicy_Sum_CP_ENTRUST_NFSSP_MEDAUTH_OID : CertificatePolicy_Sum = 2015985834 ; pub const CertificatePolicy_Sum_CP_ENTRUST_NFSSP_PIVI_HW_OID : CertificatePolicy_Sum = 2015985832 ; pub const CertificatePolicy_Sum_CP_ENTRUST_NFSSP_PIVI_CONTENT_OID : CertificatePolicy_Sum = 2015985831 ; pub const CertificatePolicy_Sum_CP_ENTRUST_NFSSP_MEDDEVHW_OID : CertificatePolicy_Sum = 2015985854 ; pub const CertificatePolicy_Sum_CP_EXOSTAR_MEDIUMHW_SHA2_OID : CertificatePolicy_Sum = 2055531476 ; pub const CertificatePolicy_Sum_CP_IDENTRUST_MEDIUMHW_SIGN_OID : CertificatePolicy_Sum = 2123985789 ; pub const CertificatePolicy_Sum_CP_IDENTRUST_MEDIUMHW_ENC_OID : CertificatePolicy_Sum = 2124051325 ; pub const CertificatePolicy_Sum_CP_IDENTRUST_PIVI_HW_ID_OID : CertificatePolicy_Sum = 2123918717 ; pub const CertificatePolicy_Sum_CP_IDENTRUST_PIVI_HW_SIGN_OID : CertificatePolicy_Sum = 2123984253 ; pub const CertificatePolicy_Sum_CP_IDENTRUST_PIVI_HW_ENC_OID : CertificatePolicy_Sum = 2124049789 ; pub const CertificatePolicy_Sum_CP_IDENTRUST_PIVI_CONTENT_OID : CertificatePolicy_Sum = 2123983741 ; pub const CertificatePolicy_Sum_CP_LOCKHEED_MEDIUMHW_OID : CertificatePolicy_Sum = 2056872660 ; pub const CertificatePolicy_Sum_CP_NORTHROP_MEDIUM_256_HW_OID : CertificatePolicy_Sum = 2025388968 ; pub const CertificatePolicy_Sum_CP_NORTHROP_PIVI_256_HW_OID : CertificatePolicy_Sum = 2025454504 ; pub const CertificatePolicy_Sum_CP_NORTHROP_PIVI_256_CONTENT_OID : CertificatePolicy_Sum = 2025585576 ; pub const CertificatePolicy_Sum_CP_NORTHROP_MEDIUM_384_HW_OID : CertificatePolicy_Sum = 2025782184 ; pub const CertificatePolicy_Sum_CP_RAYTHEON_MEDIUMHW_OID : CertificatePolicy_Sum = 237012692 ; pub const CertificatePolicy_Sum_CP_RAYTHEON_MEDDEVHW_OID : CertificatePolicy_Sum = 237017300 ; pub const CertificatePolicy_Sum_CP_RAYTHEON_SHA2_MEDIUMHW_OID : CertificatePolicy_Sum = 1780713183 ; pub const CertificatePolicy_Sum_CP_RAYTHEON_SHA2_MEDDEVHW_OID : CertificatePolicy_Sum = 1782417119 ; pub const CertificatePolicy_Sum_CP_WIDEPOINT_MEDIUMHW_OID : CertificatePolicy_Sum = 2057345492 ; pub const CertificatePolicy_Sum_CP_WIDEPOINT_PIVI_HW_OID : CertificatePolicy_Sum = 2059311572 ; pub const CertificatePolicy_Sum_CP_WIDEPOINT_PIVI_CONTENT_OID : CertificatePolicy_Sum = 2058918356 ; pub const CertificatePolicy_Sum_CP_WIDEPOINT_MEDDEVHW_OID : CertificatePolicy_Sum = 2055903700 ; pub const CertificatePolicy_Sum_CP_ADO_MEDIUM_OID : CertificatePolicy_Sum = 2096945817 ; pub const CertificatePolicy_Sum_CP_ADO_HIGH_OID : CertificatePolicy_Sum = 2096945816 ; pub const CertificatePolicy_Sum_CP_ADO_RESOURCE_MEDIUM_OID : CertificatePolicy_Sum = 2147277465 ; pub const CertificatePolicy_Sum_CP_COMODO_OID : CertificatePolicy_Sum = 30193111 ; pub const CertificatePolicy_Sum_CP_NL_MOD_AUTH_OID : CertificatePolicy_Sum = 51506717 ; pub const CertificatePolicy_Sum_CP_NL_MOD_IRREFUT_OID : CertificatePolicy_Sum = 51506461 ; pub const CertificatePolicy_Sum_CP_NL_MOD_CONFID_OID : CertificatePolicy_Sum = 51506205 ; pub type CertificatePolicy_Sum = :: core :: ffi :: c_uint ; pub const SepHardwareName_Sum_HW_NAME_OID : SepHardwareName_Sum = 17367342 ; pub type SepHardwareName_Sum = :: core :: ffi :: c_uint ; pub const AuthInfo_Sum_AIA_OCSP_OID : AuthInfo_Sum = 70320430 ; pub const AuthInfo_Sum_AIA_CA_ISSUER_OID : AuthInfo_Sum = 120652078 ; pub const AuthInfo_Sum_AIA_CA_REPO_OID : AuthInfo_Sum = 3211566 ; pub type AuthInfo_Sum = :: core :: ffi :: c_uint ; pub const ExtKeyUsage_Sum_EKU_ANY_OID : ExtKeyUsage_Sum = 14294442 ; pub const ExtKeyUsage_Sum_EKU_SERVER_AUTH_OID : ExtKeyUsage_Sum = 67240238 ; pub const ExtKeyUsage_Sum_EKU_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 117571886 ; pub const ExtKeyUsage_Sum_EKU_CODESIGNING_OID : ExtKeyUsage_Sum = 100794670 ; pub const ExtKeyUsage_Sum_EKU_EMAILPROTECT_OID : ExtKeyUsage_Sum = 16908590 ; pub const ExtKeyUsage_Sum_EKU_TIMESTAMP_OID : ExtKeyUsage_Sum = 218235182 ; pub const ExtKeyUsage_Sum_EKU_OCSP_SIGN_OID : ExtKeyUsage_Sum = 201457966 ; pub const ExtKeyUsage_Sum_EKU_SSH_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 268566830 ; pub const ExtKeyUsage_Sum_EKU_SSH_MSCL_OID : ExtKeyUsage_Sum = 272008919 ; pub const ExtKeyUsage_Sum_EKU_SSH_KP_CLIENT_AUTH_OID : ExtKeyUsage_Sum = 2047149353 ; pub type ExtKeyUsage_Sum = :: core :: ffi :: c_uint ; pub const SubjDirAttr_Sum_SDA_DOB_OID : SubjDirAttr_Sum = 67633454 ; pub const SubjDirAttr_Sum_SDA_POB_OID : SubjDirAttr_Sum = 117965102 ; pub const SubjDirAttr_Sum_SDA_GENDER_OID : SubjDirAttr_Sum = 101187886 ; pub const SubjDirAttr_Sum_SDA_COC_OID : SubjDirAttr_Sum = 17301806 ; pub const SubjDirAttr_Sum_SDA_COR_OID : SubjDirAttr_Sum = 524590 ; pub type SubjDirAttr_Sum = :: core :: ffi :: c_uint ; pub const CompressAlg_Sum_ZLIBc : CompressAlg_Sum = 1891534898 ; pub type CompressAlg_Sum = :: core :: ffi :: c_uint ; pub const CsrAttrType_UNSTRUCTURED_NAME_OID : CsrAttrType = 1891005472 ; pub const CsrAttrType_PKCS9_CONTENT_TYPE_OID : CsrAttrType = 1891005473 ; pub const CsrAttrType_CHALLENGE_PASSWORD_OID : CsrAttrType = 1891005477 ; pub const CsrAttrType_SERIAL_NUMBER_OID : CsrAttrType = 2147091626 ; pub const CsrAttrType_EXTENSION_REQUEST_OID : CsrAttrType = 1891005484 ; pub const CsrAttrType_USER_ID_OID : CsrAttrType = 1829396836 ; pub const CsrAttrType_DNQUALIFIER_OID : CsrAttrType = 2144404650 ; pub const CsrAttrType_INITIALS_OID : CsrAttrType = 2144601258 ; pub const CsrAttrType_SURNAME_OID : CsrAttrType = 2147157162 ; pub const CsrAttrType_NAME_OID : CsrAttrType = 2144732330 ; pub const CsrAttrType_GIVEN_NAME_OID : CsrAttrType = 2144666794 ; pub type CsrAttrType = :: core :: ffi :: c_uint ; pub const Ocsp_Sum_OCSP_BASIC_OID : Ocsp_Sum = 2077163216 ; pub const Ocsp_Sum_OCSP_NONCE_OID : Ocsp_Sum = 2077163219 ; pub type Ocsp_Sum = :: core :: ffi :: c_uint ; pub const Ecc_Sum_ECC_SECP112R1_OID : Ecc_Sum = 2131000877 ; pub const Ecc_Sum_ECC_SECP112R2_OID : Ecc_Sum = 2131000876 ; pub const Ecc_Sum_ECC_SECP128R1_OID : Ecc_Sum = 2131000887 ; pub const Ecc_Sum_ECC_SECP128R2_OID : Ecc_Sum = 2131000886 ; pub const Ecc_Sum_ECC_SECP160R1_OID : Ecc_Sum = 2131000867 ; pub const Ecc_Sum_ECC_SECP160R2_OID : Ecc_Sum = 2131000885 ; pub const Ecc_Sum_ECC_SECP160K1_OID : Ecc_Sum = 2131000866 ; pub const Ecc_Sum_ECC_BRAINPOOLP160R1_OID : Ecc_Sum = 2113786839 ; pub const Ecc_Sum_ECC_SECP192R1_OID : Ecc_Sum = 1330218263 ; pub const Ecc_Sum_ECC_PRIME192V2_OID : Ecc_Sum = 1279886615 ; pub const Ecc_Sum_ECC_PRIME192V3_OID : Ecc_Sum = 1296663831 ; pub const Ecc_Sum_ECC_SECP192K1_OID : Ecc_Sum = 2131000884 ; pub const Ecc_Sum_ECC_BRAINPOOLP192R1_OID : Ecc_Sum = 2113786837 ; pub const Ecc_Sum_ECC_SECP224R1_OID : Ecc_Sum = 2131000842 ; pub const Ecc_Sum_ECC_SECP224K1_OID : Ecc_Sum = 2131000843 ; pub const Ecc_Sum_ECC_BRAINPOOLP224R1_OID : Ecc_Sum = 2113786835 ; pub const Ecc_Sum_ECC_PRIME239V1_OID : Ecc_Sum = 1246332183 ; pub const Ecc_Sum_ECC_PRIME239V2_OID : Ecc_Sum = 1263109399 ; pub const Ecc_Sum_ECC_PRIME239V3_OID : Ecc_Sum = 1212777751 ; pub const Ecc_Sum_ECC_SECP256R1_OID : Ecc_Sum = 1229554967 ; pub const Ecc_Sum_ECC_SECP256K1_OID : Ecc_Sum = 2131000865 ; pub const Ecc_Sum_ECC_BRAINPOOLP256R1_OID : Ecc_Sum = 2113786833 ; pub const Ecc_Sum_ECC_SM2P256V1_OID : Ecc_Sum = 1654554751 ; pub const Ecc_Sum_ECC_X25519_OID : Ecc_Sum = 2140235220 ; pub const Ecc_Sum_ECC_ED25519_OID : Ecc_Sum = 2140104148 ; pub const Ecc_Sum_ECC_BRAINPOOLP320R1_OID : Ecc_Sum = 2113786847 ; pub const Ecc_Sum_ECC_X448_OID : Ecc_Sum = 2140169684 ; pub const Ecc_Sum_ECC_ED448_OID : Ecc_Sum = 2140038612 ; pub const Ecc_Sum_ECC_SECP384R1_OID : Ecc_Sum = 2131000841 ; pub const Ecc_Sum_ECC_BRAINPOOLP384R1_OID : Ecc_Sum = 2113786845 ; pub const Ecc_Sum_ECC_BRAINPOOLP512R1_OID : Ecc_Sum = 2113786843 ; pub const Ecc_Sum_ECC_SECP521R1_OID : Ecc_Sum = 2131000840 ; pub type Ecc_Sum = :: core :: ffi :: c_uint ; pub const Ctc_SigType_CTC_SHAwDSA : Ctc_SigType = 827032082 ; pub const Ctc_SigType_CTC_SHA256wDSA : Ctc_SigType = 2108914424 ; pub const Ctc_SigType_CTC_MD2wRSA : Ctc_SigType = 2025223200 ; pub const Ctc_SigType_CTC_MD5wRSA : Ctc_SigType = 2025223206 ; pub const Ctc_SigType_CTC_SHAwRSA : Ctc_SigType = 2025223207 ; pub const Ctc_SigType_CTC_SHAwECDSA : Ctc_SigType = 826901015 ; pub const Ctc_SigType_CTC_SHA224wRSA : Ctc_SigType = 2025223212 ; pub const Ctc_SigType_CTC_SHA224wECDSA : Ctc_SigType = 1330348567 ; pub const Ctc_SigType_CTC_SHA256wRSA : Ctc_SigType = 2025223209 ; pub const Ctc_SigType_CTC_SHA256wECDSA : Ctc_SigType = 1280016919 ; pub const Ctc_SigType_CTC_SHA384wRSA : Ctc_SigType = 2025223214 ; pub const Ctc_SigType_CTC_SHA384wECDSA : Ctc_SigType = 1296794135 ; pub const Ctc_SigType_CTC_SHA512wRSA : Ctc_SigType = 2025223215 ; pub const Ctc_SigType_CTC_SHA512wECDSA : Ctc_SigType = 1246462487 ; pub const Ctc_SigType_CTC_SHA3_224wECDSA : Ctc_SigType = 2108914419 ; pub const Ctc_SigType_CTC_SHA3_256wECDSA : Ctc_SigType = 2108914416 ; pub const Ctc_SigType_CTC_SHA3_384wECDSA : Ctc_SigType = 2108914417 ; pub const Ctc_SigType_CTC_SHA3_512wECDSA : Ctc_SigType = 2108914422 ; pub const Ctc_SigType_CTC_SHA3_224wRSA : Ctc_SigType = 2108914423 ; pub const Ctc_SigType_CTC_SHA3_256wRSA : Ctc_SigType = 2108914420 ; pub const Ctc_SigType_CTC_SHA3_384wRSA : Ctc_SigType = 2108914421 ; pub const Ctc_SigType_CTC_SHA3_512wRSA : Ctc_SigType = 2108914410 ; pub const Ctc_SigType_CTC_RSASSAPSS : Ctc_SigType = 2025223208 ; pub const Ctc_SigType_CTC_SM3wSM2 : Ctc_SigType = 983531647 ; pub const Ctc_SigType_CTC_ED25519 : Ctc_SigType = 2140104148 ; pub const Ctc_SigType_CTC_ED448 : Ctc_SigType = 2140038612 ; pub const Ctc_SigType_CTC_FALCON_LEVEL1 : Ctc_SigType = 2081370400 ; pub const Ctc_SigType_CTC_FALCON_LEVEL5 : Ctc_SigType = 2081370405 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL2 : Ctc_SigType = 1886912729 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL3 : Ctc_SigType = 1886978777 ; pub const Ctc_SigType_CTC_DILITHIUM_LEVEL5 : Ctc_SigType = 1887112409 ; pub const Ctc_SigType_CTC_ML_DSA_LEVEL2 : Ctc_SigType = 2108914411 ; pub const Ctc_SigType_CTC_ML_DSA_LEVEL3 : Ctc_SigType = 2108914408 ; pub const Ctc_SigType_CTC_ML_DSA_LEVEL5 : Ctc_SigType = 2108914409 ; pub const Ctc_SigType_CTC_SLH_DSA_SHA2_128S : Ctc_SigType = 2108914414 ; pub const Ctc_SigType_CTC_SLH_DSA_SHA2_128F : Ctc_SigType = 2108914415 ; pub const Ctc_SigType_CTC_SLH_DSA_SHA2_192S : Ctc_SigType = 2108914412 ; pub const Ctc_SigType_CTC_SLH_DSA_SHA2_192F : Ctc_SigType = 2108914413 ; pub const Ctc_SigType_CTC_SLH_DSA_SHA2_256S : Ctc_SigType = 2108914402 ; pub const Ctc_SigType_CTC_SLH_DSA_SHA2_256F : Ctc_SigType = 2108914403 ; pub const Ctc_SigType_CTC_SLH_DSA_SHAKE_128S : Ctc_SigType = 2108914400 ; pub const Ctc_SigType_CTC_SLH_DSA_SHAKE_128F : Ctc_SigType = 2108914401 ; pub const Ctc_SigType_CTC_SLH_DSA_SHAKE_192S : Ctc_SigType = 2108914406 ; pub const Ctc_SigType_CTC_SLH_DSA_SHAKE_192F : Ctc_SigType = 2108914407 ; pub const Ctc_SigType_CTC_SLH_DSA_SHAKE_256S : Ctc_SigType = 2108914404 ; pub const Ctc_SigType_CTC_SLH_DSA_SHAKE_256F : Ctc_SigType = 2108914405 ; pub const Ctc_SigType_CTC_HSS_LMS : Ctc_SigType = 1890027570 ; pub const Ctc_SigType_CTC_XMSS : Ctc_SigType = 654770478 ; pub const Ctc_SigType_CTC_XMSSMT : Ctc_SigType = 637993262 ; pub type Ctc_SigType = :: core :: ffi :: c_uint ; pub const PKCS7_TYPES_PKCS7_MSG : PKCS7_TYPES = 21597149 ; pub const PKCS7_TYPES_DATA : PKCS7_TYPES = 2125886499 ; pub const PKCS7_TYPES_SIGNED_DATA : PKCS7_TYPES = 2125886496 ; pub const PKCS7_TYPES_ENVELOPED_DATA : PKCS7_TYPES = 2125886497 ; pub const PKCS7_TYPES_SIGNED_AND_ENVELOPED_DATA : PKCS7_TYPES = 2125886502 ; pub const PKCS7_TYPES_DIGESTED_DATA : PKCS7_TYPES = 2125886503 ; pub const PKCS7_TYPES_COMPRESSED_DATA : PKCS7_TYPES = 1891600946 ; pub const PKCS7_TYPES_ENCRYPTED_DATA : PKCS7_TYPES = 2125886500 ; pub const PKCS7_TYPES_FIRMWARE_PKG_DATA : PKCS7_TYPES = 1889962546 ; pub const PKCS7_TYPES_AUTH_ENVELOPED_DATA : PKCS7_TYPES = 1889634866 ; pub const PKCS7_TYPES_ENCRYPTED_KEY_PACKAGE : PKCS7_TYPES = 55150260 ; pub type PKCS7_TYPES = :: core :: ffi :: c_uint ; pub const PKCS12_TYPES_WC_PKCS12_KeyBag : PKCS12_TYPES = 1974962728 ; pub const PKCS12_TYPES_WC_PKCS12_ShroudedKeyBag : PKCS12_TYPES = 1974766120 ; pub const PKCS12_TYPES_WC_PKCS12_CertBag : PKCS12_TYPES = 1974831656 ; pub const PKCS12_TYPES_WC_PKCS12_CertBag_Type1 : PKCS12_TYPES = 256477748 ; pub const PKCS12_TYPES_WC_PKCS12_CrlBag : PKCS12_TYPES = 1974635048 ; pub const PKCS12_TYPES_WC_PKCS12_SecretBag : PKCS12_TYPES = 1974700584 ; pub const PKCS12_TYPES_WC_PKCS12_SafeContentsBag : PKCS12_TYPES = 1974503976 ; pub const PKCS12_TYPES_WC_PKCS12_DATA : PKCS12_TYPES = 2125886499 ; pub const PKCS12_TYPES_WC_PKCS12_ENCRYPTED_DATA : PKCS12_TYPES = 2125886500 ; pub type PKCS12_TYPES = :: core :: ffi :: c_uint ; pub const CertName_Sum_WC_NAME_COMMON_NAME_OID : CertName_Sum = 2147222698 ; pub const CertName_Sum_WC_NAME_SURNAME_OID : CertName_Sum = 2147157162 ; pub const CertName_Sum_WC_NAME_SERIAL_NUMBER_OID : CertName_Sum = 2147091626 ; pub const CertName_Sum_WC_NAME_COUNTRY_NAME_OID : CertName_Sum = 2147026090 ; pub const CertName_Sum_WC_NAME_LOCALITY_NAME_OID : CertName_Sum = 2146960554 ; pub const CertName_Sum_WC_NAME_STATE_NAME_OID : CertName_Sum = 2146895018 ; pub const CertName_Sum_WC_NAME_STREET_ADDRESS_OID : CertName_Sum = 2146829482 ; pub const CertName_Sum_WC_NAME_ORGANIZATION_NAME_OID : CertName_Sum = 2146763946 ; pub const CertName_Sum_WC_NAME_ORGANIZATION_UNIT_NAME_OID : CertName_Sum = 2146698410 ; pub const CertName_Sum_WC_NAME_TITLE_OID : CertName_Sum = 217449642 ; pub const CertName_Sum_WC_NAME_DESCRIPTION_OID : CertName_Sum = 2146567338 ; pub const CertName_Sum_WC_NAME_BUSINESS_CATEGORY_OID : CertName_Sum = 2146436266 ; pub const CertName_Sum_WC_NAME_POSTAL_CODE_OID : CertName_Sum = 2146305194 ; pub const CertName_Sum_WC_NAME_NAME_OID : CertName_Sum = 2144732330 ; pub const CertName_Sum_WC_NAME_GIVEN_NAME_OID : CertName_Sum = 2144666794 ; pub const CertName_Sum_WC_NAME_INITIALIS_OID : CertName_Sum = 2144601258 ; pub const CertName_Sum_WC_NAME_EMAIL_ADDRESS_OID : CertName_Sum = 1891005475 ; pub const CertName_Sum_WC_NAME_USER_ID_OID : CertName_Sum = 1829396836 ; pub const CertName_Sum_WC_NAME_RFC822_MAILBOX_OID : CertName_Sum = 1829397348 ; pub const CertName_Sum_WC_NAME_FAVOURITE_DRINK_OID : CertName_Sum = 1829397860 ; pub const CertName_Sum_WC_NAME_DOMAIN_COMPONENT_OID : CertName_Sum = 1829402980 ; pub const CertName_Sum_WC_NAME_JURIS_STATE_PROV_OID : CertName_Sum = 1204520407 ; pub const CertName_Sum_WC_NAME_JURIS_COUNTRY_OID : CertName_Sum = 1204454871 ; pub type CertName_Sum = :: core :: ffi :: c_uint ; pub type byte = :: core :: ffi :: c_uchar ; pub type sword8 = :: core :: ffi :: c_schar ; pub type word8 = :: core :: ffi :: c_uchar ; pub type sword16 = :: core :: ffi :: c_short ; pub type word16 = :: core :: ffi :: c_ushort ; pub type sword32 = :: core :: ffi :: c_int ; pub type word32 = :: core :: ffi :: c_uint ; pub type word24 = [byte ; 3usize] ; pub type wcchar = [:: core :: ffi :: c_char ; 0usize] ; pub type uint128_t = __uint128_t ; pub type int128_t = __int128_t ; pub type word128 = __uint128_t ; pub type sword128 = __int128_t ; pub type sword64 = :: core :: ffi :: c_long ; pub type word64 = :: core :: ffi :: c_ulong ; pub type wolfssl_word = word64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct w64wrapper { pub n : word64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of w64wrapper"] [:: core :: mem :: size_of :: < w64wrapper > () - 8usize] ; ["Alignment of w64wrapper"] [:: core :: mem :: align_of :: < w64wrapper > () - 8usize] ; ["Offset of field: w64wrapper::n"] [:: core :: mem :: offset_of ! (w64wrapper , n) - 0usize] ; } ; pub type wc_ptr_t = usize ; pub const WOLFSSL_WORD_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_BIT_SIZE : _bindgen_ty_15 = 8 ; pub const WOLFSSL_WORD_BITS : _bindgen_ty_15 = 64 ; pub type _bindgen_ty_15 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: core :: ffi :: c_int , pub rem : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of div_t"] [:: core :: mem :: size_of :: < div_t > () - 8usize] ; ["Alignment of div_t"] [:: core :: mem :: align_of :: < div_t > () - 4usize] ; ["Offset of field: div_t::quot"] [:: core :: mem :: offset_of ! (div_t , quot) - 0usize] ; ["Offset of field: div_t::rem"] [:: core :: mem :: offset_of ! (div_t , rem) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: core :: ffi :: c_long , pub rem : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ldiv_t"] [:: core :: mem :: size_of :: < ldiv_t > () - 16usize] ; ["Alignment of ldiv_t"] [:: core :: mem :: align_of :: < ldiv_t > () - 8usize] ; ["Offset of field: ldiv_t::quot"] [:: core :: mem :: offset_of ! (ldiv_t , quot) - 0usize] ; ["Offset of field: ldiv_t::rem"] [:: core :: mem :: offset_of ! (ldiv_t , rem) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: core :: ffi :: c_longlong , pub rem : :: core :: ffi :: c_longlong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of lldiv_t"] [:: core :: mem :: size_of :: < lldiv_t > () - 16usize] ; ["Alignment of lldiv_t"] [:: core :: mem :: align_of :: < lldiv_t > () - 8usize] ; ["Offset of field: lldiv_t::quot"] [:: core :: mem :: offset_of ! (lldiv_t , quot) - 0usize] ; ["Offset of field: lldiv_t::rem"] [:: core :: mem :: offset_of ! (lldiv_t , rem) - 8usize] ; } ; unsafe extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } unsafe extern "C" { pub fn atof (__nptr : * const :: core :: ffi :: c_char) -> f64 ; } unsafe extern "C" { pub fn atoi (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn atol (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn atoll (__nptr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_longlong ; } unsafe extern "C" { pub fn strtod (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f64 ; } unsafe extern "C" { pub fn strtof (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> f32 ; } unsafe extern "C" { pub fn strtold (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char) -> u128 ; } unsafe extern "C" { pub fn strtol (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn strtoul (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn strtoq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } unsafe extern "C" { pub fn strtouq (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } unsafe extern "C" { pub fn strtoll (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_longlong ; } unsafe extern "C" { pub fn strtoull (__nptr : * const :: core :: ffi :: c_char , __endptr : * mut * mut :: core :: ffi :: c_char , __base : :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulonglong ; } unsafe extern "C" { pub fn l64a (__n : :: core :: ffi :: c_long) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn a64l (__s : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type ulong = :: core :: ffi :: c_ulong ; pub type ushort = :: core :: ffi :: c_ushort ; pub type uint = :: core :: ffi :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: core :: ffi :: c_long ; pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeval"] [:: core :: mem :: size_of :: < timeval > () - 16usize] ; ["Alignment of timeval"] [:: core :: mem :: align_of :: < timeval > () - 8usize] ; ["Offset of field: timeval::tv_sec"] [:: core :: mem :: offset_of ! (timeval , tv_sec) - 0usize] ; ["Offset of field: timeval::tv_usec"] [:: core :: mem :: offset_of ! (timeval , tv_usec) - 8usize] ; } ; pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: core :: ffi :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of fd_set"] [:: core :: mem :: size_of :: < fd_set > () - 128usize] ; ["Alignment of fd_set"] [:: core :: mem :: align_of :: < fd_set > () - 8usize] ; ["Offset of field: fd_set::__fds_bits"] [:: core :: mem :: offset_of ! (fd_set , __fds_bits) - 0usize] ; } ; pub type fd_mask = __fd_mask ; unsafe extern "C" { pub fn select (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn pselect (__nfds : :: core :: ffi :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: core :: ffi :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; unsafe extern "C" { pub fn random () -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn srandom (__seed : :: core :: ffi :: c_uint) ; } unsafe extern "C" { pub fn initstate (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn setstate (__statebuf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: core :: ffi :: c_int , pub rand_deg : :: core :: ffi :: c_int , pub rand_sep : :: core :: ffi :: c_int , pub end_ptr : * mut i32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of random_data"] [:: core :: mem :: size_of :: < random_data > () - 48usize] ; ["Alignment of random_data"] [:: core :: mem :: align_of :: < random_data > () - 8usize] ; ["Offset of field: random_data::fptr"] [:: core :: mem :: offset_of ! (random_data , fptr) - 0usize] ; ["Offset of field: random_data::rptr"] [:: core :: mem :: offset_of ! (random_data , rptr) - 8usize] ; ["Offset of field: random_data::state"] [:: core :: mem :: offset_of ! (random_data , state) - 16usize] ; ["Offset of field: random_data::rand_type"] [:: core :: mem :: offset_of ! (random_data , rand_type) - 24usize] ; ["Offset of field: random_data::rand_deg"] [:: core :: mem :: offset_of ! (random_data , rand_deg) - 28usize] ; ["Offset of field: random_data::rand_sep"] [:: core :: mem :: offset_of ! (random_data , rand_sep) - 32usize] ; ["Offset of field: random_data::end_ptr"] [:: core :: mem :: offset_of ! (random_data , end_ptr) - 40usize] ; } ; unsafe extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn srandom_r (__seed : :: core :: ffi :: c_uint , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn initstate_r (__seed : :: core :: ffi :: c_uint , __statebuf : * mut :: core :: ffi :: c_char , __statelen : usize , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setstate_r (__statebuf : * mut :: core :: ffi :: c_char , __buf : * mut random_data) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn rand () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn srand (__seed : :: core :: ffi :: c_uint) ; } unsafe extern "C" { pub fn rand_r (__seed : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn drand48 () -> f64 ; } unsafe extern "C" { pub fn erand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> f64 ; } unsafe extern "C" { pub fn lrand48 () -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn nrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn mrand48 () -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn jrand48 (__xsubi : * mut :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn srand48 (__seedval : :: core :: ffi :: c_long) ; } unsafe extern "C" { pub fn seed48 (__seed16v : * mut :: core :: ffi :: c_ushort) -> * mut :: core :: ffi :: c_ushort ; } unsafe extern "C" { pub fn lcong48 (__param : * mut :: core :: ffi :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: core :: ffi :: c_ushort ; 3usize] , pub __old_x : [:: core :: ffi :: c_ushort ; 3usize] , pub __c : :: core :: ffi :: c_ushort , pub __init : :: core :: ffi :: c_ushort , pub __a : :: core :: ffi :: c_ulonglong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of drand48_data"] [:: core :: mem :: size_of :: < drand48_data > () - 24usize] ; ["Alignment of drand48_data"] [:: core :: mem :: align_of :: < drand48_data > () - 8usize] ; ["Offset of field: drand48_data::__x"] [:: core :: mem :: offset_of ! (drand48_data , __x) - 0usize] ; ["Offset of field: drand48_data::__old_x"] [:: core :: mem :: offset_of ! (drand48_data , __old_x) - 6usize] ; ["Offset of field: drand48_data::__c"] [:: core :: mem :: offset_of ! (drand48_data , __c) - 12usize] ; ["Offset of field: drand48_data::__init"] [:: core :: mem :: offset_of ! (drand48_data , __init) - 14usize] ; ["Offset of field: drand48_data::__a"] [:: core :: mem :: offset_of ! (drand48_data , __a) - 16usize] ; } ; unsafe extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn erand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn nrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn jrand48_r (__xsubi : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn srand48_r (__seedval : :: core :: ffi :: c_long , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn seed48_r (__seed16v : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn lcong48_r (__param : * mut :: core :: ffi :: c_ushort , __buffer : * mut drand48_data) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn arc4random () -> __uint32_t ; } unsafe extern "C" { pub fn arc4random_buf (__buf : * mut :: core :: ffi :: c_void , __size : usize) ; } unsafe extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } unsafe extern "C" { pub fn malloc (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn calloc (__nmemb : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn realloc (__ptr : * mut :: core :: ffi :: c_void , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn free (__ptr : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn reallocarray (__ptr : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn alloca (__size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn valloc (__size : usize) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: core :: ffi :: c_void , __alignment : usize , __size : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn aligned_alloc (__alignment : :: core :: ffi :: c_ulong , __size : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn abort () -> ! ; } unsafe extern "C" { pub fn atexit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn at_quick_exit (__func : :: core :: option :: Option < unsafe extern "C" fn () >) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn on_exit (__func : :: core :: option :: Option < unsafe extern "C" fn (__status : :: core :: ffi :: c_int , __arg : * mut :: core :: ffi :: c_void) > , __arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn exit (__status : :: core :: ffi :: c_int) -> ! ; } unsafe extern "C" { pub fn quick_exit (__status : :: core :: ffi :: c_int) -> ! ; } unsafe extern "C" { pub fn _Exit (__status : :: core :: ffi :: c_int) -> ! ; } unsafe extern "C" { pub fn getenv (__name : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn putenv (__string : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setenv (__name : * const :: core :: ffi :: c_char , __value : * const :: core :: ffi :: c_char , __replace : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn unsetenv (__name : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn clearenv () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mktemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn mkstemp (__template : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mkstemps (__template : * mut :: core :: ffi :: c_char , __suffixlen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mkdtemp (__template : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn system (__command : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn realpath (__name : * const :: core :: ffi :: c_char , __resolved : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type __compar_fn_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * const :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn bsearch (__key : * const :: core :: ffi :: c_void , __base : * const :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn qsort (__base : * mut :: core :: ffi :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } unsafe extern "C" { pub fn abs (__x : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn labs (__x : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn llabs (__x : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_longlong ; } unsafe extern "C" { pub fn div (__numer : :: core :: ffi :: c_int , __denom : :: core :: ffi :: c_int) -> div_t ; } unsafe extern "C" { pub fn ldiv (__numer : :: core :: ffi :: c_long , __denom : :: core :: ffi :: c_long) -> ldiv_t ; } unsafe extern "C" { pub fn lldiv (__numer : :: core :: ffi :: c_longlong , __denom : :: core :: ffi :: c_longlong) -> lldiv_t ; } unsafe extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: core :: ffi :: c_int , __decpt : * mut :: core :: ffi :: c_int , __sign : * mut :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mblen (__s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wctomb (__s : * mut :: core :: ffi :: c_char , __wchar : wchar_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wcstombs (__s : * mut :: core :: ffi :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } unsafe extern "C" { pub fn rpmatch (__response : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getsubopt (__optionp : * mut * mut :: core :: ffi :: c_char , __tokens : * const * mut :: core :: ffi :: c_char , __valuep : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wolfSSL_Malloc_cb = :: core :: option :: Option < unsafe extern "C" fn (size : usize) -> * mut :: core :: ffi :: c_void > ; pub type wolfSSL_Free_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void) > ; pub type wolfSSL_Realloc_cb = :: core :: option :: Option < unsafe extern "C" fn (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void > ; unsafe extern "C" { pub fn wolfSSL_Malloc (size : usize) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_Free (ptr : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_Realloc (ptr : * mut :: core :: ffi :: c_void , size : usize) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_SetAllocators (mf : wolfSSL_Malloc_cb , ff : wolfSSL_Free_cb , rf : wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetAllocators (mf : * mut wolfSSL_Malloc_cb , ff : * mut wolfSSL_Free_cb , rf : * mut wolfSSL_Realloc_cb) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ForceZero (mem : * mut :: core :: ffi :: c_void , len : usize) ; } unsafe extern "C" { pub fn memccpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn __memcmpeq (__s1 : * const :: core :: ffi :: c_void , __s2 : * const :: core :: ffi :: c_void , __n : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn memchr (__s : * const :: core :: ffi :: c_void , __c : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn strcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strncat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strcmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strncmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strcoll (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strxfrm (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn strcoll_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __l : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strxfrm_l (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize , __l : locale_t) -> usize ; } unsafe extern "C" { pub fn strdup (__s : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strndup (__string : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strrchr (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strchrnul (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strcspn (__s : * const :: core :: ffi :: c_char , __reject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn strspn (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn strpbrk (__s : * const :: core :: ffi :: c_char , __accept : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strstr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strtok (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn __strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strtok_r (__s : * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char , __save_ptr : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strcasestr (__haystack : * const :: core :: ffi :: c_char , __needle : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn memmem (__haystack : * const :: core :: ffi :: c_void , __haystacklen : usize , __needle : * const :: core :: ffi :: c_void , __needlelen : usize) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn __mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : usize) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn mempcpy (__dest : * mut :: core :: ffi :: c_void , __src : * const :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn strnlen (__string : * const :: core :: ffi :: c_char , __maxlen : usize) -> usize ; } unsafe extern "C" { pub fn strerror (__errnum : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { # [link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r (__errnum : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __buflen : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strerror_l (__errnum : :: core :: ffi :: c_int , __l : locale_t) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn bcopy (__src : * const :: core :: ffi :: c_void , __dest : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } unsafe extern "C" { pub fn bzero (__s : * mut :: core :: ffi :: c_void , __n : :: core :: ffi :: c_ulong) ; } unsafe extern "C" { pub fn index (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn rindex (__s : * const :: core :: ffi :: c_char , __c : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn ffs (__i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ffsl (__l : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ffsll (__ll : :: core :: ffi :: c_longlong) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strcasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strncasecmp (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strcasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __loc : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn strncasecmp_l (__s1 : * const :: core :: ffi :: c_char , __s2 : * const :: core :: ffi :: c_char , __n : usize , __loc : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn explicit_bzero (__s : * mut :: core :: ffi :: c_void , __n : usize) ; } unsafe extern "C" { pub fn strsep (__stringp : * mut * mut :: core :: ffi :: c_char , __delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strsignal (__sig : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn __stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn stpcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn __stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn stpncpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : :: core :: ffi :: c_ulong) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn strlcpy (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn strlcat (__dest : * mut :: core :: ffi :: c_char , __src : * const :: core :: ffi :: c_char , __n : usize) -> usize ; } unsafe extern "C" { pub fn wc_strtok (str_ : * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char , nextp : * mut * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wc_strsep (stringp : * mut * mut :: core :: ffi :: c_char , delim : * const :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wc_strlcpy (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } unsafe extern "C" { pub fn wc_strlcat (dst : * mut :: core :: ffi :: c_char , src : * const :: core :: ffi :: c_char , dstSize : usize) -> usize ; } unsafe extern "C" { pub fn wc_strdup_ex (src : * const :: core :: ffi :: c_char , memType : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } pub const _ISupper : _bindgen_ty_16 = 256 ; pub const _ISlower : _bindgen_ty_16 = 512 ; pub const _ISalpha : _bindgen_ty_16 = 1024 ; pub const _ISdigit : _bindgen_ty_16 = 2048 ; pub const _ISxdigit : _bindgen_ty_16 = 4096 ; pub const _ISspace : _bindgen_ty_16 = 8192 ; pub const _ISprint : _bindgen_ty_16 = 16384 ; pub const _ISgraph : _bindgen_ty_16 = 32768 ; pub const _ISblank : _bindgen_ty_16 = 1 ; pub const _IScntrl : _bindgen_ty_16 = 2 ; pub const _ISpunct : _bindgen_ty_16 = 4 ; pub const _ISalnum : _bindgen_ty_16 = 8 ; pub type _bindgen_ty_16 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn __ctype_b_loc () -> * mut * const :: core :: ffi :: c_ushort ; } unsafe extern "C" { pub fn __ctype_tolower_loc () -> * mut * const __int32_t ; } unsafe extern "C" { pub fn __ctype_toupper_loc () -> * mut * const __int32_t ; } unsafe extern "C" { pub fn isalnum (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isalpha (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn iscntrl (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn islower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isgraph (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isprint (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ispunct (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isspace (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isxdigit (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn tolower (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn toupper (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isblank (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn toascii (__c : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn _toupper (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn _tolower (arg1 : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isalnum_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isalpha_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn iscntrl_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn islower_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isgraph_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isprint_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ispunct_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isspace_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isupper_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isxdigit_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isblank_l (arg1 : :: core :: ffi :: c_int , arg2 : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn __tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn tolower_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn __toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn toupper_l (__c : :: core :: ffi :: c_int , __l : locale_t) -> :: core :: ffi :: c_int ; } pub const DYNAMIC_TYPE_CA : _bindgen_ty_17 = 1 ; pub const DYNAMIC_TYPE_CERT : _bindgen_ty_17 = 2 ; pub const DYNAMIC_TYPE_KEY : _bindgen_ty_17 = 3 ; pub const DYNAMIC_TYPE_FILE : _bindgen_ty_17 = 4 ; pub const DYNAMIC_TYPE_SUBJECT_CN : _bindgen_ty_17 = 5 ; pub const DYNAMIC_TYPE_PUBLIC_KEY : _bindgen_ty_17 = 6 ; pub const DYNAMIC_TYPE_SIGNER : _bindgen_ty_17 = 7 ; pub const DYNAMIC_TYPE_NONE : _bindgen_ty_17 = 8 ; pub const DYNAMIC_TYPE_BIGINT : _bindgen_ty_17 = 9 ; pub const DYNAMIC_TYPE_RSA : _bindgen_ty_17 = 10 ; pub const DYNAMIC_TYPE_METHOD : _bindgen_ty_17 = 11 ; pub const DYNAMIC_TYPE_OUT_BUFFER : _bindgen_ty_17 = 12 ; pub const DYNAMIC_TYPE_IN_BUFFER : _bindgen_ty_17 = 13 ; pub const DYNAMIC_TYPE_INFO : _bindgen_ty_17 = 14 ; pub const DYNAMIC_TYPE_DH : _bindgen_ty_17 = 15 ; pub const DYNAMIC_TYPE_DOMAIN : _bindgen_ty_17 = 16 ; pub const DYNAMIC_TYPE_SSL : _bindgen_ty_17 = 17 ; pub const DYNAMIC_TYPE_CTX : _bindgen_ty_17 = 18 ; pub const DYNAMIC_TYPE_WRITEV : _bindgen_ty_17 = 19 ; pub const DYNAMIC_TYPE_OPENSSL : _bindgen_ty_17 = 20 ; pub const DYNAMIC_TYPE_DSA : _bindgen_ty_17 = 21 ; pub const DYNAMIC_TYPE_CRL : _bindgen_ty_17 = 22 ; pub const DYNAMIC_TYPE_REVOKED : _bindgen_ty_17 = 23 ; pub const DYNAMIC_TYPE_CRL_ENTRY : _bindgen_ty_17 = 24 ; pub const DYNAMIC_TYPE_CERT_MANAGER : _bindgen_ty_17 = 25 ; pub const DYNAMIC_TYPE_CRL_MONITOR : _bindgen_ty_17 = 26 ; pub const DYNAMIC_TYPE_OCSP_STATUS : _bindgen_ty_17 = 27 ; pub const DYNAMIC_TYPE_OCSP_ENTRY : _bindgen_ty_17 = 28 ; pub const DYNAMIC_TYPE_ALTNAME : _bindgen_ty_17 = 29 ; pub const DYNAMIC_TYPE_SUITES : _bindgen_ty_17 = 30 ; pub const DYNAMIC_TYPE_CIPHER : _bindgen_ty_17 = 31 ; pub const DYNAMIC_TYPE_RNG : _bindgen_ty_17 = 32 ; pub const DYNAMIC_TYPE_ARRAYS : _bindgen_ty_17 = 33 ; pub const DYNAMIC_TYPE_DTLS_POOL : _bindgen_ty_17 = 34 ; pub const DYNAMIC_TYPE_SOCKADDR : _bindgen_ty_17 = 35 ; pub const DYNAMIC_TYPE_LIBZ : _bindgen_ty_17 = 36 ; pub const DYNAMIC_TYPE_ECC : _bindgen_ty_17 = 37 ; pub const DYNAMIC_TYPE_TMP_BUFFER : _bindgen_ty_17 = 38 ; pub const DYNAMIC_TYPE_DTLS_MSG : _bindgen_ty_17 = 39 ; pub const DYNAMIC_TYPE_X509 : _bindgen_ty_17 = 40 ; pub const DYNAMIC_TYPE_TLSX : _bindgen_ty_17 = 41 ; pub const DYNAMIC_TYPE_OCSP : _bindgen_ty_17 = 42 ; pub const DYNAMIC_TYPE_SIGNATURE : _bindgen_ty_17 = 43 ; pub const DYNAMIC_TYPE_HASHES : _bindgen_ty_17 = 44 ; pub const DYNAMIC_TYPE_SRP : _bindgen_ty_17 = 45 ; pub const DYNAMIC_TYPE_COOKIE_PWD : _bindgen_ty_17 = 46 ; pub const DYNAMIC_TYPE_USER_CRYPTO : _bindgen_ty_17 = 47 ; pub const DYNAMIC_TYPE_OCSP_REQUEST : _bindgen_ty_17 = 48 ; pub const DYNAMIC_TYPE_X509_EXT : _bindgen_ty_17 = 49 ; pub const DYNAMIC_TYPE_X509_STORE : _bindgen_ty_17 = 50 ; pub const DYNAMIC_TYPE_X509_CTX : _bindgen_ty_17 = 51 ; pub const DYNAMIC_TYPE_URL : _bindgen_ty_17 = 52 ; pub const DYNAMIC_TYPE_DTLS_FRAG : _bindgen_ty_17 = 53 ; pub const DYNAMIC_TYPE_DTLS_BUFFER : _bindgen_ty_17 = 54 ; pub const DYNAMIC_TYPE_SESSION_TICK : _bindgen_ty_17 = 55 ; pub const DYNAMIC_TYPE_PKCS : _bindgen_ty_17 = 56 ; pub const DYNAMIC_TYPE_MUTEX : _bindgen_ty_17 = 57 ; pub const DYNAMIC_TYPE_PKCS7 : _bindgen_ty_17 = 58 ; pub const DYNAMIC_TYPE_AES_BUFFER : _bindgen_ty_17 = 59 ; pub const DYNAMIC_TYPE_WOLF_BIGINT : _bindgen_ty_17 = 60 ; pub const DYNAMIC_TYPE_ASN1 : _bindgen_ty_17 = 61 ; pub const DYNAMIC_TYPE_LOG : _bindgen_ty_17 = 62 ; pub const DYNAMIC_TYPE_WRITEDUP : _bindgen_ty_17 = 63 ; pub const DYNAMIC_TYPE_PRIVATE_KEY : _bindgen_ty_17 = 64 ; pub const DYNAMIC_TYPE_HMAC : _bindgen_ty_17 = 65 ; pub const DYNAMIC_TYPE_ASYNC : _bindgen_ty_17 = 66 ; pub const DYNAMIC_TYPE_ASYNC_NUMA : _bindgen_ty_17 = 67 ; pub const DYNAMIC_TYPE_ASYNC_NUMA64 : _bindgen_ty_17 = 68 ; pub const DYNAMIC_TYPE_CURVE25519 : _bindgen_ty_17 = 69 ; pub const DYNAMIC_TYPE_ED25519 : _bindgen_ty_17 = 70 ; pub const DYNAMIC_TYPE_SECRET : _bindgen_ty_17 = 71 ; pub const DYNAMIC_TYPE_DIGEST : _bindgen_ty_17 = 72 ; pub const DYNAMIC_TYPE_RSA_BUFFER : _bindgen_ty_17 = 73 ; pub const DYNAMIC_TYPE_DCERT : _bindgen_ty_17 = 74 ; pub const DYNAMIC_TYPE_STRING : _bindgen_ty_17 = 75 ; pub const DYNAMIC_TYPE_PEM : _bindgen_ty_17 = 76 ; pub const DYNAMIC_TYPE_DER : _bindgen_ty_17 = 77 ; pub const DYNAMIC_TYPE_CERT_EXT : _bindgen_ty_17 = 78 ; pub const DYNAMIC_TYPE_ALPN : _bindgen_ty_17 = 79 ; pub const DYNAMIC_TYPE_ENCRYPTEDINFO : _bindgen_ty_17 = 80 ; pub const DYNAMIC_TYPE_DIRCTX : _bindgen_ty_17 = 81 ; pub const DYNAMIC_TYPE_HASHCTX : _bindgen_ty_17 = 82 ; pub const DYNAMIC_TYPE_SEED : _bindgen_ty_17 = 83 ; pub const DYNAMIC_TYPE_SYMMETRIC_KEY : _bindgen_ty_17 = 84 ; pub const DYNAMIC_TYPE_ECC_BUFFER : _bindgen_ty_17 = 85 ; pub const DYNAMIC_TYPE_SALT : _bindgen_ty_17 = 87 ; pub const DYNAMIC_TYPE_HASH_TMP : _bindgen_ty_17 = 88 ; pub const DYNAMIC_TYPE_BLOB : _bindgen_ty_17 = 89 ; pub const DYNAMIC_TYPE_NAME_ENTRY : _bindgen_ty_17 = 90 ; pub const DYNAMIC_TYPE_CURVE448 : _bindgen_ty_17 = 91 ; pub const DYNAMIC_TYPE_ED448 : _bindgen_ty_17 = 92 ; pub const DYNAMIC_TYPE_AES : _bindgen_ty_17 = 93 ; pub const DYNAMIC_TYPE_CMAC : _bindgen_ty_17 = 94 ; pub const DYNAMIC_TYPE_FALCON : _bindgen_ty_17 = 95 ; pub const DYNAMIC_TYPE_SESSION : _bindgen_ty_17 = 96 ; pub const DYNAMIC_TYPE_DILITHIUM : _bindgen_ty_17 = 97 ; pub const DYNAMIC_TYPE_SPHINCS : _bindgen_ty_17 = 98 ; pub const DYNAMIC_TYPE_SM4_BUFFER : _bindgen_ty_17 = 99 ; pub const DYNAMIC_TYPE_DEBUG_TAG : _bindgen_ty_17 = 100 ; pub const DYNAMIC_TYPE_LMS : _bindgen_ty_17 = 101 ; pub const DYNAMIC_TYPE_BIO : _bindgen_ty_17 = 102 ; pub const DYNAMIC_TYPE_X509_ACERT : _bindgen_ty_17 = 103 ; pub const DYNAMIC_TYPE_OS_BUF : _bindgen_ty_17 = 104 ; pub const DYNAMIC_TYPE_ASCON : _bindgen_ty_17 = 105 ; pub const DYNAMIC_TYPE_SHA : _bindgen_ty_17 = 106 ; pub const DYNAMIC_TYPE_SLHDSA : _bindgen_ty_17 = 107 ; pub const DYNAMIC_TYPE_OCSP_RESPONSE : _bindgen_ty_17 = 108 ; pub const DYNAMIC_TYPE_XMSS : _bindgen_ty_17 = 109 ; pub const DYNAMIC_TYPE_SNIFFER_SERVER : _bindgen_ty_17 = 1000 ; pub const DYNAMIC_TYPE_SNIFFER_SESSION : _bindgen_ty_17 = 1001 ; pub const DYNAMIC_TYPE_SNIFFER_PB : _bindgen_ty_17 = 1002 ; pub const DYNAMIC_TYPE_SNIFFER_PB_BUFFER : _bindgen_ty_17 = 1003 ; pub const DYNAMIC_TYPE_SNIFFER_TICKET_ID : _bindgen_ty_17 = 1004 ; pub const DYNAMIC_TYPE_SNIFFER_NAMED_KEY : _bindgen_ty_17 = 1005 ; pub const DYNAMIC_TYPE_SNIFFER_KEY : _bindgen_ty_17 = 1006 ; pub const DYNAMIC_TYPE_SNIFFER_KEYLOG_NODE : _bindgen_ty_17 = 1007 ; pub const DYNAMIC_TYPE_SNIFFER_CHAIN_BUFFER : _bindgen_ty_17 = 1008 ; pub const DYNAMIC_TYPE_AES_EAX : _bindgen_ty_17 = 1009 ; pub type _bindgen_ty_17 = :: core :: ffi :: c_uint ; pub const MIN_STACK_BUFFER : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = :: core :: ffi :: c_uint ; pub const wc_AlgoType_WC_ALGO_TYPE_NONE : wc_AlgoType = 0 ; pub const wc_AlgoType_WC_ALGO_TYPE_HASH : wc_AlgoType = 1 ; pub const wc_AlgoType_WC_ALGO_TYPE_CIPHER : wc_AlgoType = 2 ; pub const wc_AlgoType_WC_ALGO_TYPE_PK : wc_AlgoType = 3 ; pub const wc_AlgoType_WC_ALGO_TYPE_RNG : wc_AlgoType = 4 ; pub const wc_AlgoType_WC_ALGO_TYPE_SEED : wc_AlgoType = 5 ; pub const wc_AlgoType_WC_ALGO_TYPE_HMAC : wc_AlgoType = 6 ; pub const wc_AlgoType_WC_ALGO_TYPE_CMAC : wc_AlgoType = 7 ; pub const wc_AlgoType_WC_ALGO_TYPE_CERT : wc_AlgoType = 8 ; pub const wc_AlgoType_WC_ALGO_TYPE_KDF : wc_AlgoType = 9 ; pub const wc_AlgoType_WC_ALGO_TYPE_COPY : wc_AlgoType = 10 ; pub const wc_AlgoType_WC_ALGO_TYPE_FREE : wc_AlgoType = 11 ; pub const wc_AlgoType_WC_ALGO_TYPE_SETKEY : wc_AlgoType = 12 ; pub const wc_AlgoType_WC_ALGO_TYPE_EXPORT_KEY : wc_AlgoType = 13 ; pub const wc_AlgoType_WC_ALGO_TYPE_SHE : wc_AlgoType = 14 ; pub const wc_AlgoType_WC_ALGO_TYPE_MAX : wc_AlgoType = 14 ; pub type wc_AlgoType = :: core :: ffi :: c_uint ; pub const wc_KdfType_WC_KDF_TYPE_NONE : wc_KdfType = 0 ; pub const wc_KdfType_WC_KDF_TYPE_HKDF : wc_KdfType = 1 ; pub const wc_KdfType_WC_KDF_TYPE_TWOSTEP_CMAC : wc_KdfType = 2 ; pub type wc_KdfType = :: core :: ffi :: c_uint ; pub const wc_HashType_WC_HASH_TYPE_NONE : wc_HashType = 0 ; pub const wc_HashType_WC_HASH_TYPE_MD2 : wc_HashType = 1 ; pub const wc_HashType_WC_HASH_TYPE_MD4 : wc_HashType = 2 ; pub const wc_HashType_WC_HASH_TYPE_MD5 : wc_HashType = 3 ; pub const wc_HashType_WC_HASH_TYPE_SHA : wc_HashType = 4 ; pub const wc_HashType_WC_HASH_TYPE_SHA224 : wc_HashType = 5 ; pub const wc_HashType_WC_HASH_TYPE_SHA256 : wc_HashType = 6 ; pub const wc_HashType_WC_HASH_TYPE_SHA384 : wc_HashType = 7 ; pub const wc_HashType_WC_HASH_TYPE_SHA512 : wc_HashType = 8 ; pub const wc_HashType_WC_HASH_TYPE_MD5_SHA : wc_HashType = 9 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_224 : wc_HashType = 10 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_256 : wc_HashType = 11 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_384 : wc_HashType = 12 ; pub const wc_HashType_WC_HASH_TYPE_SHA3_512 : wc_HashType = 13 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2B : wc_HashType = 14 ; pub const wc_HashType_WC_HASH_TYPE_BLAKE2S : wc_HashType = 15 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_224 : wc_HashType = 16 ; pub const wc_HashType_WC_HASH_TYPE_SHA512_256 : wc_HashType = 17 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE128 : wc_HashType = 18 ; pub const wc_HashType_WC_HASH_TYPE_SHAKE256 : wc_HashType = 19 ; pub const wc_HashType_WC_HASH_TYPE_SM3 : wc_HashType = 20 ; pub const wc_HashType_WC_HASH_TYPE_MAX : wc_HashType = 20 ; pub type wc_HashType = :: core :: ffi :: c_uint ; pub const wc_HashFlags_WC_HASH_FLAG_NONE : wc_HashFlags = 0 ; pub const wc_HashFlags_WC_HASH_FLAG_WILLCOPY : wc_HashFlags = 1 ; pub const wc_HashFlags_WC_HASH_FLAG_ISCOPY : wc_HashFlags = 2 ; pub const wc_HashFlags_WC_HASH_SHA3_KECCAK256 : wc_HashFlags = 65536 ; pub type wc_HashFlags = :: core :: ffi :: c_uint ; pub const wc_CipherType_WC_CIPHER_NONE : wc_CipherType = 0 ; pub const wc_CipherType_WC_CIPHER_AES : wc_CipherType = 1 ; pub const wc_CipherType_WC_CIPHER_AES_CBC : wc_CipherType = 2 ; pub const wc_CipherType_WC_CIPHER_AES_GCM : wc_CipherType = 3 ; pub const wc_CipherType_WC_CIPHER_AES_CTR : wc_CipherType = 4 ; pub const wc_CipherType_WC_CIPHER_AES_XTS : wc_CipherType = 5 ; pub const wc_CipherType_WC_CIPHER_AES_CFB : wc_CipherType = 6 ; pub const wc_CipherType_WC_CIPHER_AES_CCM : wc_CipherType = 12 ; pub const wc_CipherType_WC_CIPHER_AES_ECB : wc_CipherType = 13 ; pub const wc_CipherType_WC_CIPHER_DES3 : wc_CipherType = 7 ; pub const wc_CipherType_WC_CIPHER_DES : wc_CipherType = 8 ; pub const wc_CipherType_WC_CIPHER_CHACHA : wc_CipherType = 9 ; pub const wc_CipherType_WC_CIPHER_MAX : wc_CipherType = 12 ; pub type wc_CipherType = :: core :: ffi :: c_uint ; pub const wc_PkType_WC_PK_TYPE_NONE : wc_PkType = 0 ; pub const wc_PkType_WC_PK_TYPE_RSA : wc_PkType = 1 ; pub const wc_PkType_WC_PK_TYPE_DH : wc_PkType = 2 ; pub const wc_PkType_WC_PK_TYPE_ECDH : wc_PkType = 3 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_SIGN : wc_PkType = 4 ; pub const wc_PkType_WC_PK_TYPE_ECDSA_VERIFY : wc_PkType = 5 ; pub const wc_PkType_WC_PK_TYPE_ED25519_SIGN : wc_PkType = 6 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519 : wc_PkType = 7 ; pub const wc_PkType_WC_PK_TYPE_RSA_KEYGEN : wc_PkType = 8 ; pub const wc_PkType_WC_PK_TYPE_EC_KEYGEN : wc_PkType = 9 ; pub const wc_PkType_WC_PK_TYPE_RSA_CHECK_PRIV_KEY : wc_PkType = 10 ; pub const wc_PkType_WC_PK_TYPE_EC_CHECK_PRIV_KEY : wc_PkType = 11 ; pub const wc_PkType_WC_PK_TYPE_ED448 : wc_PkType = 12 ; pub const wc_PkType_WC_PK_TYPE_CURVE448 : wc_PkType = 13 ; pub const wc_PkType_WC_PK_TYPE_ED25519_VERIFY : wc_PkType = 14 ; pub const wc_PkType_WC_PK_TYPE_ED25519_KEYGEN : wc_PkType = 15 ; pub const wc_PkType_WC_PK_TYPE_CURVE25519_KEYGEN : wc_PkType = 16 ; pub const wc_PkType_WC_PK_TYPE_RSA_GET_SIZE : wc_PkType = 17 ; pub const wc_PkType_WC_PK_TYPE_PQC_KEM_KEYGEN : wc_PkType = 18 ; pub const wc_PkType_WC_PK_TYPE_PQC_KEM_ENCAPS : wc_PkType = 19 ; pub const wc_PkType_WC_PK_TYPE_PQC_KEM_DECAPS : wc_PkType = 20 ; pub const wc_PkType_WC_PK_TYPE_PQC_SIG_KEYGEN : wc_PkType = 21 ; pub const wc_PkType_WC_PK_TYPE_PQC_SIG_SIGN : wc_PkType = 22 ; pub const wc_PkType_WC_PK_TYPE_PQC_SIG_VERIFY : wc_PkType = 23 ; pub const wc_PkType_WC_PK_TYPE_PQC_SIG_CHECK_PRIV_KEY : wc_PkType = 24 ; pub const wc_PkType_WC_PK_TYPE_RSA_PKCS : wc_PkType = 25 ; pub const wc_PkType_WC_PK_TYPE_RSA_PSS : wc_PkType = 26 ; pub const wc_PkType_WC_PK_TYPE_RSA_OAEP : wc_PkType = 27 ; pub const wc_PkType_WC_PK_TYPE_EC_GET_SIZE : wc_PkType = 28 ; pub const wc_PkType_WC_PK_TYPE_EC_GET_SIG_SIZE : wc_PkType = 29 ; pub const wc_PkType_WC_PK_TYPE_MAX : wc_PkType = 29 ; pub type wc_PkType = :: core :: ffi :: c_uint ; pub const wc_PqcKemType_WC_PQC_KEM_TYPE_NONE : wc_PqcKemType = 0 ; pub const wc_PqcKemType_WC_PQC_KEM_TYPE_KYBER : wc_PqcKemType = 1 ; pub const wc_PqcKemType_WC_PQC_KEM_TYPE_MAX : wc_PqcKemType = 1 ; pub type wc_PqcKemType = :: core :: ffi :: c_uint ; pub const wc_PqcSignatureType_WC_PQC_SIG_TYPE_NONE : wc_PqcSignatureType = 0 ; pub const wc_PqcSignatureType_WC_PQC_SIG_TYPE_DILITHIUM : wc_PqcSignatureType = 1 ; pub const wc_PqcSignatureType_WC_PQC_SIG_TYPE_MAX : wc_PqcSignatureType = 1 ; pub type wc_PqcSignatureType = :: core :: ffi :: c_uint ; pub const CTC_SETTINGS : _bindgen_ty_19 = 1 ; pub type _bindgen_ty_19 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn CheckRunTimeSettings () -> word32 ; } # [repr (C)] # [derive (Copy , Clone)] pub struct COND_TYPE { pub mutex : pthread_mutex_t , pub cond : pthread_cond_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of COND_TYPE"] [:: core :: mem :: size_of :: < COND_TYPE > () - 88usize] ; ["Alignment of COND_TYPE"] [:: core :: mem :: align_of :: < COND_TYPE > () - 8usize] ; ["Offset of field: COND_TYPE::mutex"] [:: core :: mem :: offset_of ! (COND_TYPE , mutex) - 0usize] ; ["Offset of field: COND_TYPE::cond"] [:: core :: mem :: offset_of ! (COND_TYPE , cond) - 40usize] ; } ; pub type THREAD_RETURN = * mut :: core :: ffi :: c_void ; pub type THREAD_TYPE = pthread_t ; pub type THREAD_CB = :: core :: option :: Option < unsafe extern "C" fn (arg : * mut :: core :: ffi :: c_void) -> THREAD_RETURN > ; unsafe extern "C" { pub fn wolfSSL_NewThread (thread : * mut THREAD_TYPE , cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_NewThreadNoJoin (cb : THREAD_CB , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_JoinThread (thread : THREAD_TYPE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CondInit (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CondFree (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CondSignal (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CondWait (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CondStart (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CondEnd (cond : * mut COND_TYPE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn __assert_fail (__assertion : * const :: core :: ffi :: c_char , __file : * const :: core :: ffi :: c_char , __line : :: core :: ffi :: c_uint , __function : * const :: core :: ffi :: c_char) -> ! ; } unsafe extern "C" { pub fn __assert_perror_fail (__errnum : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __line : :: core :: ffi :: c_uint , __function : * const :: core :: ffi :: c_char) -> ! ; } unsafe extern "C" { pub fn __assert (__assertion : * const :: core :: ffi :: c_char , __file : * const :: core :: ffi :: c_char , __line : :: core :: ffi :: c_int) -> ! ; } pub const Max_ASN_DSA_PUB_INTS : Max_ASN = 4 ; pub const Max_ASN_DSA_INTS : Max_ASN = 5 ; pub const Max_ASN_MAX_SALT_SIZE : Max_ASN = 64 ; pub const Max_ASN_MAX_IV_SIZE : Max_ASN = 64 ; pub const Max_ASN_MAX_ENCODED_SIG_SZ : Max_ASN = 5120 ; pub const Max_ASN_MAX_ALGO_SZ : Max_ASN = 20 ; pub const Max_ASN_MAX_LENGTH_SZ : Max_ASN = 5 ; pub const Max_ASN_MAX_SHORT_SZ : Max_ASN = 7 ; pub const Max_ASN_MAX_SEQ_SZ : Max_ASN = 6 ; pub const Max_ASN_MAX_SET_SZ : Max_ASN = 6 ; pub const Max_ASN_MAX_OCTET_STR_SZ : Max_ASN = 6 ; pub const Max_ASN_MAX_EXP_SZ : Max_ASN = 6 ; pub const Max_ASN_MAX_PRSTR_SZ : Max_ASN = 6 ; pub const Max_ASN_MAX_VERSION_SZ : Max_ASN = 5 ; pub const Max_ASN_MAX_ENCODED_DIG_ASN_SZ : Max_ASN = 10 ; pub const Max_ASN_MAX_ENCODED_DIG_SZ : Max_ASN = 74 ; pub const Max_ASN_MAX_RSA_INT_SZ : Max_ASN = 518 ; pub const Max_ASN_MAX_DSA_INT_SZ : Max_ASN = 390 ; pub const Max_ASN_MAX_DSA_PUBKEY_SZ : Max_ASN = 1579 ; pub const Max_ASN_MAX_DSA_PRIVKEY_SZ : Max_ASN = 1961 ; pub const Max_ASN_MAX_PQC_PUBLIC_KEY_SZ : Max_ASN = 2592 ; pub const Max_ASN_MAX_RSA_E_SZ : Max_ASN = 16 ; pub const Max_ASN_MAX_CA_SZ : Max_ASN = 32 ; pub const Max_ASN_MAX_SN_SZ : Max_ASN = 35 ; pub const Max_ASN_MAX_DER_DIGEST_SZ : Max_ASN = 100 ; pub const Max_ASN_MAX_DER_DIGEST_ASN_SZ : Max_ASN = 36 ; pub const Max_ASN_MAX_X509_HEADER_SZ : Max_ASN = 50 ; pub const Max_ASN_MAX_PUBLIC_KEY_SZ : Max_ASN = 2624 ; pub const Max_ASN_HEADER_ENCRYPTED_KEY_SIZE : Max_ASN = 0 ; pub type Max_ASN = :: core :: ffi :: c_uint ; pub const CertSignState_CERTSIGN_STATE_BEGIN : CertSignState = 0 ; pub const CertSignState_CERTSIGN_STATE_DIGEST : CertSignState = 1 ; pub const CertSignState_CERTSIGN_STATE_ENCODE : CertSignState = 2 ; pub const CertSignState_CERTSIGN_STATE_DO : CertSignState = 3 ; pub type CertSignState = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertSignCtx { pub sig : * mut byte , pub digest : * mut byte , pub encSig : * mut byte , pub encSigSz : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertSignCtx"] [:: core :: mem :: size_of :: < CertSignCtx > () - 40usize] ; ["Alignment of CertSignCtx"] [:: core :: mem :: align_of :: < CertSignCtx > () - 8usize] ; ["Offset of field: CertSignCtx::sig"] [:: core :: mem :: offset_of ! (CertSignCtx , sig) - 0usize] ; ["Offset of field: CertSignCtx::digest"] [:: core :: mem :: offset_of ! (CertSignCtx , digest) - 8usize] ; ["Offset of field: CertSignCtx::encSig"] [:: core :: mem :: offset_of ! (CertSignCtx , encSig) - 16usize] ; ["Offset of field: CertSignCtx::encSigSz"] [:: core :: mem :: offset_of ! (CertSignCtx , encSigSz) - 24usize] ; ["Offset of field: CertSignCtx::digestSz"] [:: core :: mem :: offset_of ! (CertSignCtx , digestSz) - 28usize] ; ["Offset of field: CertSignCtx::typeH"] [:: core :: mem :: offset_of ! (CertSignCtx , typeH) - 32usize] ; ["Offset of field: CertSignCtx::state"] [:: core :: mem :: offset_of ! (CertSignCtx , state) - 36usize] ; } ; pub const wolfCrypt_ErrorCodes_WC_SUCCESS : wolfCrypt_ErrorCodes = 0 ; pub const wolfCrypt_ErrorCodes_WC_FAILURE : wolfCrypt_ErrorCodes = - 1 ; pub const wolfCrypt_ErrorCodes_MAX_CODE_E : wolfCrypt_ErrorCodes = - 96 ; pub const wolfCrypt_ErrorCodes_WC_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_WC_SPAN1_FIRST_E : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_MEM : wolfCrypt_ErrorCodes = - 97 ; pub const wolfCrypt_ErrorCodes_MP_VAL : wolfCrypt_ErrorCodes = - 98 ; pub const wolfCrypt_ErrorCodes_MP_WOULDBLOCK : wolfCrypt_ErrorCodes = - 99 ; pub const wolfCrypt_ErrorCodes_MP_NOT_INF : wolfCrypt_ErrorCodes = - 100 ; pub const wolfCrypt_ErrorCodes_OPEN_RAN_E : wolfCrypt_ErrorCodes = - 101 ; pub const wolfCrypt_ErrorCodes_READ_RAN_E : wolfCrypt_ErrorCodes = - 102 ; pub const wolfCrypt_ErrorCodes_WINCRYPT_E : wolfCrypt_ErrorCodes = - 103 ; pub const wolfCrypt_ErrorCodes_CRYPTGEN_E : wolfCrypt_ErrorCodes = - 104 ; pub const wolfCrypt_ErrorCodes_RAN_BLOCK_E : wolfCrypt_ErrorCodes = - 105 ; pub const wolfCrypt_ErrorCodes_BAD_MUTEX_E : wolfCrypt_ErrorCodes = - 106 ; pub const wolfCrypt_ErrorCodes_WC_TIMEOUT_E : wolfCrypt_ErrorCodes = - 107 ; pub const wolfCrypt_ErrorCodes_WC_PENDING_E : wolfCrypt_ErrorCodes = - 108 ; pub const wolfCrypt_ErrorCodes_WC_NO_PENDING_E : wolfCrypt_ErrorCodes = - 109 ; pub const wolfCrypt_ErrorCodes_MP_INIT_E : wolfCrypt_ErrorCodes = - 110 ; pub const wolfCrypt_ErrorCodes_MP_READ_E : wolfCrypt_ErrorCodes = - 111 ; pub const wolfCrypt_ErrorCodes_MP_EXPTMOD_E : wolfCrypt_ErrorCodes = - 112 ; pub const wolfCrypt_ErrorCodes_MP_TO_E : wolfCrypt_ErrorCodes = - 113 ; pub const wolfCrypt_ErrorCodes_MP_SUB_E : wolfCrypt_ErrorCodes = - 114 ; pub const wolfCrypt_ErrorCodes_MP_ADD_E : wolfCrypt_ErrorCodes = - 115 ; pub const wolfCrypt_ErrorCodes_MP_MUL_E : wolfCrypt_ErrorCodes = - 116 ; pub const wolfCrypt_ErrorCodes_MP_MULMOD_E : wolfCrypt_ErrorCodes = - 117 ; pub const wolfCrypt_ErrorCodes_MP_MOD_E : wolfCrypt_ErrorCodes = - 118 ; pub const wolfCrypt_ErrorCodes_MP_INVMOD_E : wolfCrypt_ErrorCodes = - 119 ; pub const wolfCrypt_ErrorCodes_MP_CMP_E : wolfCrypt_ErrorCodes = - 120 ; pub const wolfCrypt_ErrorCodes_MP_ZERO_E : wolfCrypt_ErrorCodes = - 121 ; pub const wolfCrypt_ErrorCodes_AES_EAX_AUTH_E : wolfCrypt_ErrorCodes = - 122 ; pub const wolfCrypt_ErrorCodes_KEY_EXHAUSTED_E : wolfCrypt_ErrorCodes = - 123 ; pub const wolfCrypt_ErrorCodes_ML_KEM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 124 ; pub const wolfCrypt_ErrorCodes_MEMORY_E : wolfCrypt_ErrorCodes = - 125 ; pub const wolfCrypt_ErrorCodes_VAR_STATE_CHANGE_E : wolfCrypt_ErrorCodes = - 126 ; pub const wolfCrypt_ErrorCodes_FIPS_DEGRADED_E : wolfCrypt_ErrorCodes = - 127 ; pub const wolfCrypt_ErrorCodes_FIPS_CODE_SZ_E : wolfCrypt_ErrorCodes = - 128 ; pub const wolfCrypt_ErrorCodes_FIPS_DATA_SZ_E : wolfCrypt_ErrorCodes = - 129 ; pub const wolfCrypt_ErrorCodes_RSA_WRONG_TYPE_E : wolfCrypt_ErrorCodes = - 130 ; pub const wolfCrypt_ErrorCodes_RSA_BUFFER_E : wolfCrypt_ErrorCodes = - 131 ; pub const wolfCrypt_ErrorCodes_BUFFER_E : wolfCrypt_ErrorCodes = - 132 ; pub const wolfCrypt_ErrorCodes_ALGO_ID_E : wolfCrypt_ErrorCodes = - 133 ; pub const wolfCrypt_ErrorCodes_PUBLIC_KEY_E : wolfCrypt_ErrorCodes = - 134 ; pub const wolfCrypt_ErrorCodes_DATE_E : wolfCrypt_ErrorCodes = - 135 ; pub const wolfCrypt_ErrorCodes_SUBJECT_E : wolfCrypt_ErrorCodes = - 136 ; pub const wolfCrypt_ErrorCodes_ISSUER_E : wolfCrypt_ErrorCodes = - 137 ; pub const wolfCrypt_ErrorCodes_CA_TRUE_E : wolfCrypt_ErrorCodes = - 138 ; pub const wolfCrypt_ErrorCodes_EXTENSIONS_E : wolfCrypt_ErrorCodes = - 139 ; pub const wolfCrypt_ErrorCodes_ASN_PARSE_E : wolfCrypt_ErrorCodes = - 140 ; pub const wolfCrypt_ErrorCodes_ASN_VERSION_E : wolfCrypt_ErrorCodes = - 141 ; pub const wolfCrypt_ErrorCodes_ASN_GETINT_E : wolfCrypt_ErrorCodes = - 142 ; pub const wolfCrypt_ErrorCodes_ASN_RSA_KEY_E : wolfCrypt_ErrorCodes = - 143 ; pub const wolfCrypt_ErrorCodes_ASN_OBJECT_ID_E : wolfCrypt_ErrorCodes = - 144 ; pub const wolfCrypt_ErrorCodes_ASN_TAG_NULL_E : wolfCrypt_ErrorCodes = - 145 ; pub const wolfCrypt_ErrorCodes_ASN_EXPECT_0_E : wolfCrypt_ErrorCodes = - 146 ; pub const wolfCrypt_ErrorCodes_ASN_BITSTR_E : wolfCrypt_ErrorCodes = - 147 ; pub const wolfCrypt_ErrorCodes_ASN_UNKNOWN_OID_E : wolfCrypt_ErrorCodes = - 148 ; pub const wolfCrypt_ErrorCodes_ASN_DATE_SZ_E : wolfCrypt_ErrorCodes = - 149 ; pub const wolfCrypt_ErrorCodes_ASN_BEFORE_DATE_E : wolfCrypt_ErrorCodes = - 150 ; pub const wolfCrypt_ErrorCodes_ASN_AFTER_DATE_E : wolfCrypt_ErrorCodes = - 151 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_OID_E : wolfCrypt_ErrorCodes = - 152 ; pub const wolfCrypt_ErrorCodes_ASN_TIME_E : wolfCrypt_ErrorCodes = - 153 ; pub const wolfCrypt_ErrorCodes_ASN_INPUT_E : wolfCrypt_ErrorCodes = - 154 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_CONFIRM_E : wolfCrypt_ErrorCodes = - 155 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_HASH_E : wolfCrypt_ErrorCodes = - 156 ; pub const wolfCrypt_ErrorCodes_ASN_SIG_KEY_E : wolfCrypt_ErrorCodes = - 157 ; pub const wolfCrypt_ErrorCodes_ASN_DH_KEY_E : wolfCrypt_ErrorCodes = - 158 ; pub const wolfCrypt_ErrorCodes_KDF_SRTP_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 159 ; pub const wolfCrypt_ErrorCodes_ASN_CRIT_EXT_E : wolfCrypt_ErrorCodes = - 160 ; pub const wolfCrypt_ErrorCodes_ASN_ALT_NAME_E : wolfCrypt_ErrorCodes = - 161 ; pub const wolfCrypt_ErrorCodes_ASN_NO_PEM_HEADER : wolfCrypt_ErrorCodes = - 162 ; pub const wolfCrypt_ErrorCodes_ED25519_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 163 ; pub const wolfCrypt_ErrorCodes_ED448_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 164 ; pub const wolfCrypt_ErrorCodes_PBKDF2_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 165 ; pub const wolfCrypt_ErrorCodes_WC_KEY_MISMATCH_E : wolfCrypt_ErrorCodes = - 166 ; pub const wolfCrypt_ErrorCodes_ML_DSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 167 ; pub const wolfCrypt_ErrorCodes_LMS_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 168 ; pub const wolfCrypt_ErrorCodes_XMSS_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 169 ; pub const wolfCrypt_ErrorCodes_ECC_BAD_ARG_E : wolfCrypt_ErrorCodes = - 170 ; pub const wolfCrypt_ErrorCodes_ASN_ECC_KEY_E : wolfCrypt_ErrorCodes = - 171 ; pub const wolfCrypt_ErrorCodes_ECC_CURVE_OID_E : wolfCrypt_ErrorCodes = - 172 ; pub const wolfCrypt_ErrorCodes_BAD_FUNC_ARG : wolfCrypt_ErrorCodes = - 173 ; pub const wolfCrypt_ErrorCodes_NOT_COMPILED_IN : wolfCrypt_ErrorCodes = - 174 ; pub const wolfCrypt_ErrorCodes_UNICODE_SIZE_E : wolfCrypt_ErrorCodes = - 175 ; pub const wolfCrypt_ErrorCodes_NO_PASSWORD : wolfCrypt_ErrorCodes = - 176 ; pub const wolfCrypt_ErrorCodes_ALT_NAME_E : wolfCrypt_ErrorCodes = - 177 ; pub const wolfCrypt_ErrorCodes_BAD_OCSP_RESPONDER : wolfCrypt_ErrorCodes = - 178 ; pub const wolfCrypt_ErrorCodes_CRL_CERT_DATE_ERR : wolfCrypt_ErrorCodes = - 179 ; pub const wolfCrypt_ErrorCodes_AES_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 180 ; pub const wolfCrypt_ErrorCodes_AES_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 181 ; pub const wolfCrypt_ErrorCodes_ASYNC_INIT_E : wolfCrypt_ErrorCodes = - 182 ; pub const wolfCrypt_ErrorCodes_COMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 183 ; pub const wolfCrypt_ErrorCodes_COMPRESS_E : wolfCrypt_ErrorCodes = - 184 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_INIT_E : wolfCrypt_ErrorCodes = - 185 ; pub const wolfCrypt_ErrorCodes_DECOMPRESS_E : wolfCrypt_ErrorCodes = - 186 ; pub const wolfCrypt_ErrorCodes_BAD_ALIGN_E : wolfCrypt_ErrorCodes = - 187 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 188 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_CONFIRM_E : wolfCrypt_ErrorCodes = - 189 ; pub const wolfCrypt_ErrorCodes_ASN_CRL_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 190 ; pub const wolfCrypt_ErrorCodes_ASN_OCSP_CONFIRM_E : wolfCrypt_ErrorCodes = - 191 ; pub const wolfCrypt_ErrorCodes_BAD_STATE_E : wolfCrypt_ErrorCodes = - 192 ; pub const wolfCrypt_ErrorCodes_BAD_PADDING_E : wolfCrypt_ErrorCodes = - 193 ; pub const wolfCrypt_ErrorCodes_REQ_ATTRIBUTE_E : wolfCrypt_ErrorCodes = - 194 ; pub const wolfCrypt_ErrorCodes_PKCS7_OID_E : wolfCrypt_ErrorCodes = - 195 ; pub const wolfCrypt_ErrorCodes_PKCS7_RECIP_E : wolfCrypt_ErrorCodes = - 196 ; pub const wolfCrypt_ErrorCodes_FIPS_NOT_ALLOWED_E : wolfCrypt_ErrorCodes = - 197 ; pub const wolfCrypt_ErrorCodes_ASN_NAME_INVALID_E : wolfCrypt_ErrorCodes = - 198 ; pub const wolfCrypt_ErrorCodes_RNG_FAILURE_E : wolfCrypt_ErrorCodes = - 199 ; pub const wolfCrypt_ErrorCodes_HMAC_MIN_KEYLEN_E : wolfCrypt_ErrorCodes = - 200 ; pub const wolfCrypt_ErrorCodes_RSA_PAD_E : wolfCrypt_ErrorCodes = - 201 ; pub const wolfCrypt_ErrorCodes_LENGTH_ONLY_E : wolfCrypt_ErrorCodes = - 202 ; pub const wolfCrypt_ErrorCodes_IN_CORE_FIPS_E : wolfCrypt_ErrorCodes = - 203 ; pub const wolfCrypt_ErrorCodes_AES_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 204 ; pub const wolfCrypt_ErrorCodes_DES3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 205 ; pub const wolfCrypt_ErrorCodes_HMAC_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 206 ; pub const wolfCrypt_ErrorCodes_RSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 207 ; pub const wolfCrypt_ErrorCodes_DRBG_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 208 ; pub const wolfCrypt_ErrorCodes_DRBG_CONT_FIPS_E : wolfCrypt_ErrorCodes = - 209 ; pub const wolfCrypt_ErrorCodes_AESGCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 210 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_KEY_E : wolfCrypt_ErrorCodes = - 211 ; pub const wolfCrypt_ErrorCodes_THREAD_STORE_SET_E : wolfCrypt_ErrorCodes = - 212 ; pub const wolfCrypt_ErrorCodes_MAC_CMP_FAILED_E : wolfCrypt_ErrorCodes = - 213 ; pub const wolfCrypt_ErrorCodes_IS_POINT_E : wolfCrypt_ErrorCodes = - 214 ; pub const wolfCrypt_ErrorCodes_ECC_INF_E : wolfCrypt_ErrorCodes = - 215 ; pub const wolfCrypt_ErrorCodes_ECC_PRIV_KEY_E : wolfCrypt_ErrorCodes = - 216 ; pub const wolfCrypt_ErrorCodes_ECC_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 217 ; pub const wolfCrypt_ErrorCodes_SRP_CALL_ORDER_E : wolfCrypt_ErrorCodes = - 218 ; pub const wolfCrypt_ErrorCodes_SRP_VERIFY_E : wolfCrypt_ErrorCodes = - 219 ; pub const wolfCrypt_ErrorCodes_SRP_BAD_KEY_E : wolfCrypt_ErrorCodes = - 220 ; pub const wolfCrypt_ErrorCodes_ASN_NO_SKID : wolfCrypt_ErrorCodes = - 221 ; pub const wolfCrypt_ErrorCodes_ASN_NO_AKID : wolfCrypt_ErrorCodes = - 222 ; pub const wolfCrypt_ErrorCodes_ASN_NO_KEYUSAGE : wolfCrypt_ErrorCodes = - 223 ; pub const wolfCrypt_ErrorCodes_SKID_E : wolfCrypt_ErrorCodes = - 224 ; pub const wolfCrypt_ErrorCodes_AKID_E : wolfCrypt_ErrorCodes = - 225 ; pub const wolfCrypt_ErrorCodes_KEYUSAGE_E : wolfCrypt_ErrorCodes = - 226 ; pub const wolfCrypt_ErrorCodes_CERTPOLICIES_E : wolfCrypt_ErrorCodes = - 227 ; pub const wolfCrypt_ErrorCodes_WC_INIT_E : wolfCrypt_ErrorCodes = - 228 ; pub const wolfCrypt_ErrorCodes_SIG_VERIFY_E : wolfCrypt_ErrorCodes = - 229 ; pub const wolfCrypt_ErrorCodes_BAD_COND_E : wolfCrypt_ErrorCodes = - 230 ; pub const wolfCrypt_ErrorCodes_SIG_TYPE_E : wolfCrypt_ErrorCodes = - 231 ; pub const wolfCrypt_ErrorCodes_HASH_TYPE_E : wolfCrypt_ErrorCodes = - 232 ; pub const wolfCrypt_ErrorCodes_FIPS_INVALID_VER_E : wolfCrypt_ErrorCodes = - 233 ; pub const wolfCrypt_ErrorCodes_WC_KEY_SIZE_E : wolfCrypt_ErrorCodes = - 234 ; pub const wolfCrypt_ErrorCodes_ASN_COUNTRY_SIZE_E : wolfCrypt_ErrorCodes = - 235 ; pub const wolfCrypt_ErrorCodes_MISSING_RNG_E : wolfCrypt_ErrorCodes = - 236 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_SIZE_E : wolfCrypt_ErrorCodes = - 237 ; pub const wolfCrypt_ErrorCodes_ASN_PATHLEN_INV_E : wolfCrypt_ErrorCodes = - 238 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_ALG_E : wolfCrypt_ErrorCodes = - 239 ; pub const wolfCrypt_ErrorCodes_BAD_KEYWRAP_IV_E : wolfCrypt_ErrorCodes = - 240 ; pub const wolfCrypt_ErrorCodes_WC_CLEANUP_E : wolfCrypt_ErrorCodes = - 241 ; pub const wolfCrypt_ErrorCodes_ECC_CDH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 242 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PUB_E : wolfCrypt_ErrorCodes = - 243 ; pub const wolfCrypt_ErrorCodes_BAD_PATH_ERROR : wolfCrypt_ErrorCodes = - 244 ; pub const wolfCrypt_ErrorCodes_ASYNC_OP_E : wolfCrypt_ErrorCodes = - 245 ; pub const wolfCrypt_ErrorCodes_ECC_PRIVATEONLY_E : wolfCrypt_ErrorCodes = - 246 ; pub const wolfCrypt_ErrorCodes_EXTKEYUSAGE_E : wolfCrypt_ErrorCodes = - 247 ; pub const wolfCrypt_ErrorCodes_WC_HW_E : wolfCrypt_ErrorCodes = - 248 ; pub const wolfCrypt_ErrorCodes_WC_HW_WAIT_E : wolfCrypt_ErrorCodes = - 249 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_E : wolfCrypt_ErrorCodes = - 250 ; pub const wolfCrypt_ErrorCodes_PRIME_GEN_E : wolfCrypt_ErrorCodes = - 251 ; pub const wolfCrypt_ErrorCodes_BER_INDEF_E : wolfCrypt_ErrorCodes = - 252 ; pub const wolfCrypt_ErrorCodes_RSA_OUT_OF_RANGE_E : wolfCrypt_ErrorCodes = - 253 ; pub const wolfCrypt_ErrorCodes_RSAPSS_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 254 ; pub const wolfCrypt_ErrorCodes_ECDSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 255 ; pub const wolfCrypt_ErrorCodes_DH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 256 ; pub const wolfCrypt_ErrorCodes_AESCCM_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 257 ; pub const wolfCrypt_ErrorCodes_SHA3_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 258 ; pub const wolfCrypt_ErrorCodes_ECDHE_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 259 ; pub const wolfCrypt_ErrorCodes_AES_GCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 260 ; pub const wolfCrypt_ErrorCodes_AES_CCM_OVERFLOW_E : wolfCrypt_ErrorCodes = - 261 ; pub const wolfCrypt_ErrorCodes_RSA_KEY_PAIR_E : wolfCrypt_ErrorCodes = - 262 ; pub const wolfCrypt_ErrorCodes_DH_CHECK_PRIV_E : wolfCrypt_ErrorCodes = - 263 ; pub const wolfCrypt_ErrorCodes_WC_AFALG_SOCK_E : wolfCrypt_ErrorCodes = - 264 ; pub const wolfCrypt_ErrorCodes_WC_DEVCRYPTO_E : wolfCrypt_ErrorCodes = - 265 ; pub const wolfCrypt_ErrorCodes_ZLIB_INIT_ERROR : wolfCrypt_ErrorCodes = - 266 ; pub const wolfCrypt_ErrorCodes_ZLIB_COMPRESS_ERROR : wolfCrypt_ErrorCodes = - 267 ; pub const wolfCrypt_ErrorCodes_ZLIB_DECOMPRESS_ERROR : wolfCrypt_ErrorCodes = - 268 ; pub const wolfCrypt_ErrorCodes_PKCS7_NO_SIGNER_E : wolfCrypt_ErrorCodes = - 269 ; pub const wolfCrypt_ErrorCodes_WC_PKCS7_WANT_READ_E : wolfCrypt_ErrorCodes = - 270 ; pub const wolfCrypt_ErrorCodes_CRYPTOCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 271 ; pub const wolfCrypt_ErrorCodes_PKCS7_SIGNEEDS_CHECK : wolfCrypt_ErrorCodes = - 272 ; pub const wolfCrypt_ErrorCodes_PSS_SALTLEN_RECOVER_E : wolfCrypt_ErrorCodes = - 273 ; pub const wolfCrypt_ErrorCodes_CHACHA_POLY_OVERFLOW : wolfCrypt_ErrorCodes = - 274 ; pub const wolfCrypt_ErrorCodes_ASN_SELF_SIGNED_E : wolfCrypt_ErrorCodes = - 275 ; pub const wolfCrypt_ErrorCodes_SAKKE_VERIFY_FAIL_E : wolfCrypt_ErrorCodes = - 276 ; pub const wolfCrypt_ErrorCodes_MISSING_IV : wolfCrypt_ErrorCodes = - 277 ; pub const wolfCrypt_ErrorCodes_MISSING_KEY : wolfCrypt_ErrorCodes = - 278 ; pub const wolfCrypt_ErrorCodes_BAD_LENGTH_E : wolfCrypt_ErrorCodes = - 279 ; pub const wolfCrypt_ErrorCodes_ECDSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 280 ; pub const wolfCrypt_ErrorCodes_RSA_PAT_FIPS_E : wolfCrypt_ErrorCodes = - 281 ; pub const wolfCrypt_ErrorCodes_KDF_TLS12_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 282 ; pub const wolfCrypt_ErrorCodes_KDF_TLS13_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 283 ; pub const wolfCrypt_ErrorCodes_KDF_SSH_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 284 ; pub const wolfCrypt_ErrorCodes_DHE_PCT_E : wolfCrypt_ErrorCodes = - 285 ; pub const wolfCrypt_ErrorCodes_ECC_PCT_E : wolfCrypt_ErrorCodes = - 286 ; pub const wolfCrypt_ErrorCodes_FIPS_PRIVATE_KEY_LOCKED_E : wolfCrypt_ErrorCodes = - 287 ; pub const wolfCrypt_ErrorCodes_PROTOCOLCB_UNAVAILABLE : wolfCrypt_ErrorCodes = - 288 ; pub const wolfCrypt_ErrorCodes_AES_SIV_AUTH_E : wolfCrypt_ErrorCodes = - 289 ; pub const wolfCrypt_ErrorCodes_NO_VALID_DEVID : wolfCrypt_ErrorCodes = - 290 ; pub const wolfCrypt_ErrorCodes_IO_FAILED_E : wolfCrypt_ErrorCodes = - 291 ; pub const wolfCrypt_ErrorCodes_SYSLIB_FAILED_E : wolfCrypt_ErrorCodes = - 292 ; pub const wolfCrypt_ErrorCodes_USE_HW_PSK : wolfCrypt_ErrorCodes = - 293 ; pub const wolfCrypt_ErrorCodes_ENTROPY_RT_E : wolfCrypt_ErrorCodes = - 294 ; pub const wolfCrypt_ErrorCodes_ENTROPY_APT_E : wolfCrypt_ErrorCodes = - 295 ; pub const wolfCrypt_ErrorCodes_ASN_DEPTH_E : wolfCrypt_ErrorCodes = - 296 ; pub const wolfCrypt_ErrorCodes_ASN_LEN_E : wolfCrypt_ErrorCodes = - 297 ; pub const wolfCrypt_ErrorCodes_SM4_GCM_AUTH_E : wolfCrypt_ErrorCodes = - 298 ; pub const wolfCrypt_ErrorCodes_SM4_CCM_AUTH_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_SPAN1_LAST_E : wolfCrypt_ErrorCodes = - 299 ; pub const wolfCrypt_ErrorCodes_WC_SPAN1_MIN_CODE_E : wolfCrypt_ErrorCodes = - 300 ; pub const wolfCrypt_ErrorCodes_WC_SPAN2_FIRST_E : wolfCrypt_ErrorCodes = - 1000 ; pub const wolfCrypt_ErrorCodes_DEADLOCK_AVERTED_E : wolfCrypt_ErrorCodes = - 1000 ; pub const wolfCrypt_ErrorCodes_ASCON_AUTH_E : wolfCrypt_ErrorCodes = - 1001 ; pub const wolfCrypt_ErrorCodes_WC_ACCEL_INHIBIT_E : wolfCrypt_ErrorCodes = - 1002 ; pub const wolfCrypt_ErrorCodes_BAD_INDEX_E : wolfCrypt_ErrorCodes = - 1003 ; pub const wolfCrypt_ErrorCodes_INTERRUPTED_E : wolfCrypt_ErrorCodes = - 1004 ; pub const wolfCrypt_ErrorCodes_MLKEM_PUB_HASH_E : wolfCrypt_ErrorCodes = - 1005 ; pub const wolfCrypt_ErrorCodes_BUSY_E : wolfCrypt_ErrorCodes = - 1006 ; pub const wolfCrypt_ErrorCodes_ALREADY_E : wolfCrypt_ErrorCodes = - 1007 ; pub const wolfCrypt_ErrorCodes_SEQ_OVERFLOW_E : wolfCrypt_ErrorCodes = - 1008 ; pub const wolfCrypt_ErrorCodes_PUF_INIT_E : wolfCrypt_ErrorCodes = - 1009 ; pub const wolfCrypt_ErrorCodes_PUF_READ_E : wolfCrypt_ErrorCodes = - 1010 ; pub const wolfCrypt_ErrorCodes_PUF_ENROLL_E : wolfCrypt_ErrorCodes = - 1011 ; pub const wolfCrypt_ErrorCodes_PUF_RECONSTRUCT_E : wolfCrypt_ErrorCodes = - 1012 ; pub const wolfCrypt_ErrorCodes_PUF_DERIVE_KEY_E : wolfCrypt_ErrorCodes = - 1013 ; pub const wolfCrypt_ErrorCodes_PUF_IDENTITY_E : wolfCrypt_ErrorCodes = - 1014 ; pub const wolfCrypt_ErrorCodes_ML_KEM_PCT_E : wolfCrypt_ErrorCodes = - 1015 ; pub const wolfCrypt_ErrorCodes_ML_DSA_PCT_E : wolfCrypt_ErrorCodes = - 1016 ; pub const wolfCrypt_ErrorCodes_DRBG_SHA512_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 1017 ; pub const wolfCrypt_ErrorCodes_SLH_DSA_KAT_FIPS_E : wolfCrypt_ErrorCodes = - 1018 ; pub const wolfCrypt_ErrorCodes_WC_SPAN2_LAST_E : wolfCrypt_ErrorCodes = - 1018 ; pub const wolfCrypt_ErrorCodes_WC_LAST_E : wolfCrypt_ErrorCodes = - 1018 ; pub const wolfCrypt_ErrorCodes_WC_SPAN2_MIN_CODE_E : wolfCrypt_ErrorCodes = - 1999 ; pub const wolfCrypt_ErrorCodes_MIN_CODE_E : wolfCrypt_ErrorCodes = - 1999 ; pub type wolfCrypt_ErrorCodes = :: core :: ffi :: c_int ; unsafe extern "C" { pub fn wc_ErrorString (err : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_char) ; } unsafe extern "C" { pub fn wc_GetErrorString (error : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } pub const wc_LogLevels_ERROR_LOG : wc_LogLevels = 0 ; pub const wc_LogLevels_INFO_LOG : wc_LogLevels = 1 ; pub const wc_LogLevels_ENTER_LOG : wc_LogLevels = 2 ; pub const wc_LogLevels_LEAVE_LOG : wc_LogLevels = 3 ; pub const wc_LogLevels_CERT_LOG : wc_LogLevels = 4 ; pub const wc_LogLevels_OTHER_LOG : wc_LogLevels = 5 ; pub type wc_LogLevels = :: core :: ffi :: c_uint ; pub type wolfSSL_Logging_cb = :: core :: option :: Option < unsafe extern "C" fn (logLevel : :: core :: ffi :: c_int , logMessage : * const :: core :: ffi :: c_char) > ; unsafe extern "C" { pub fn wolfSSL_SetLoggingCb (log_function : wolfSSL_Logging_cb) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetLoggingCb () -> wolfSSL_Logging_cb ; } unsafe extern "C" { pub fn wolfSSL_Debugging_ON () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Debugging_OFF () ; } unsafe extern "C" { pub fn wolfSSL_CertDebugging_ON () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertDebugging_OFF () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetLoggingPrefix (prefix : * const :: core :: ffi :: c_char) ; } unsafe extern "C" { pub fn wolfSSL_configure_args () -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_global_cflags () -> * const :: core :: ffi :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha { pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub buffer : [word32 ; 16usize] , pub digest : [word32 ; 5usize] , pub heap : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , pub devCtx : * mut :: core :: ffi :: c_void , pub flags : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha"] [:: core :: mem :: size_of :: < wc_Sha > () - 128usize] ; ["Alignment of wc_Sha"] [:: core :: mem :: align_of :: < wc_Sha > () - 8usize] ; ["Offset of field: wc_Sha::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha , buffLen) - 0usize] ; ["Offset of field: wc_Sha::loLen"] [:: core :: mem :: offset_of ! (wc_Sha , loLen) - 4usize] ; ["Offset of field: wc_Sha::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha , hiLen) - 8usize] ; ["Offset of field: wc_Sha::buffer"] [:: core :: mem :: offset_of ! (wc_Sha , buffer) - 12usize] ; ["Offset of field: wc_Sha::digest"] [:: core :: mem :: offset_of ! (wc_Sha , digest) - 76usize] ; ["Offset of field: wc_Sha::heap"] [:: core :: mem :: offset_of ! (wc_Sha , heap) - 96usize] ; ["Offset of field: wc_Sha::devId"] [:: core :: mem :: offset_of ! (wc_Sha , devId) - 104usize] ; ["Offset of field: wc_Sha::devCtx"] [:: core :: mem :: offset_of ! (wc_Sha , devCtx) - 112usize] ; ["Offset of field: wc_Sha::flags"] [:: core :: mem :: offset_of ! (wc_Sha , flags) - 120usize] ; } ; unsafe extern "C" { pub fn wc_InitSha (sha : * mut wc_Sha) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha_ex (sha : * mut wc_Sha , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaUpdate (sha : * mut wc_Sha , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaFinalRaw (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaFinal (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaFree (sha : * mut wc_Sha) ; } unsafe extern "C" { pub fn wc_ShaGetHash (sha : * mut wc_Sha , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaCopy (src : * mut wc_Sha , dst : * mut wc_Sha) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaSetFlags (sha : * mut wc_Sha , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaGetFlags (sha : * mut wc_Sha , flags : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct wc_Sha256 { pub digest : [word32 ; 8usize] , pub buffer : [word32 ; 16usize] , pub buffLen : word32 , pub loLen : word32 , pub hiLen : word32 , pub heap : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , pub devCtx : * mut :: core :: ffi :: c_void , pub flags : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha256"] [:: core :: mem :: size_of :: < wc_Sha256 > () - 144usize] ; ["Alignment of wc_Sha256"] [:: core :: mem :: align_of :: < wc_Sha256 > () - 16usize] ; ["Offset of field: wc_Sha256::digest"] [:: core :: mem :: offset_of ! (wc_Sha256 , digest) - 0usize] ; ["Offset of field: wc_Sha256::buffer"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffer) - 32usize] ; ["Offset of field: wc_Sha256::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , buffLen) - 96usize] ; ["Offset of field: wc_Sha256::loLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , loLen) - 100usize] ; ["Offset of field: wc_Sha256::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha256 , hiLen) - 104usize] ; ["Offset of field: wc_Sha256::heap"] [:: core :: mem :: offset_of ! (wc_Sha256 , heap) - 112usize] ; ["Offset of field: wc_Sha256::devId"] [:: core :: mem :: offset_of ! (wc_Sha256 , devId) - 120usize] ; ["Offset of field: wc_Sha256::devCtx"] [:: core :: mem :: offset_of ! (wc_Sha256 , devCtx) - 128usize] ; ["Offset of field: wc_Sha256::flags"] [:: core :: mem :: offset_of ! (wc_Sha256 , flags) - 136usize] ; } ; unsafe extern "C" { pub fn wc_InitSha256 (sha : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha256_ex (sha : * mut wc_Sha256 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Update (sha : * mut wc_Sha256 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256FinalRaw (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Final (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Free (sha256 : * mut wc_Sha256) ; } unsafe extern "C" { pub fn wc_Sha256GetHash (sha256 : * mut wc_Sha256 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Copy (src : * mut wc_Sha256 , dst : * mut wc_Sha256) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256SetFlags (sha256 : * mut wc_Sha256 , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256GetFlags (sha256 : * mut wc_Sha256 , flags : * mut word32) -> :: core :: ffi :: c_int ; } pub type wc_Sha224 = wc_Sha256 ; unsafe extern "C" { pub fn wc_InitSha224 (sha224 : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha224_ex (sha224 : * mut wc_Sha224 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha224Update (sha224 : * mut wc_Sha224 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha224Final (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha224Free (sha224 : * mut wc_Sha224) ; } unsafe extern "C" { pub fn wc_Sha224GetHash (sha224 : * mut wc_Sha224 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha224Copy (src : * mut wc_Sha224 , dst : * mut wc_Sha224) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha224SetFlags (sha224 : * mut wc_Sha224 , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha224GetFlags (sha224 : * mut wc_Sha224 , flags : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha512 { pub digest : [word64 ; 8usize] , pub buffer : [word64 ; 16usize] , pub buffLen : word32 , pub loLen : word64 , pub hiLen : word64 , pub heap : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , pub devCtx : * mut :: core :: ffi :: c_void , pub flags : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha512"] [:: core :: mem :: size_of :: < wc_Sha512 > () - 248usize] ; ["Alignment of wc_Sha512"] [:: core :: mem :: align_of :: < wc_Sha512 > () - 8usize] ; ["Offset of field: wc_Sha512::digest"] [:: core :: mem :: offset_of ! (wc_Sha512 , digest) - 0usize] ; ["Offset of field: wc_Sha512::buffer"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffer) - 64usize] ; ["Offset of field: wc_Sha512::buffLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , buffLen) - 192usize] ; ["Offset of field: wc_Sha512::loLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , loLen) - 200usize] ; ["Offset of field: wc_Sha512::hiLen"] [:: core :: mem :: offset_of ! (wc_Sha512 , hiLen) - 208usize] ; ["Offset of field: wc_Sha512::heap"] [:: core :: mem :: offset_of ! (wc_Sha512 , heap) - 216usize] ; ["Offset of field: wc_Sha512::devId"] [:: core :: mem :: offset_of ! (wc_Sha512 , devId) - 224usize] ; ["Offset of field: wc_Sha512::devCtx"] [:: core :: mem :: offset_of ! (wc_Sha512 , devCtx) - 232usize] ; ["Offset of field: wc_Sha512::flags"] [:: core :: mem :: offset_of ! (wc_Sha512 , flags) - 240usize] ; } ; pub type wc_Sha512_224 = wc_Sha512 ; pub type wc_Sha512_256 = wc_Sha512 ; unsafe extern "C" { pub fn wc_InitSha512 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha512_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Free (sha : * mut wc_Sha512) ; } unsafe extern "C" { pub fn wc_Sha512GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512SetFlags (sha512 : * mut wc_Sha512 , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512GetFlags (sha512 : * mut wc_Sha512 , flags : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha512_224 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha512_224_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224Free (sha : * mut wc_Sha512) ; } unsafe extern "C" { pub fn wc_Sha512_224GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224SetFlags (sha512 : * mut wc_Sha512 , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224GetFlags (sha512 : * mut wc_Sha512 , flags : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha512_256 (sha : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha512_256_ex (sha : * mut wc_Sha512 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256Update (sha : * mut wc_Sha512 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256FinalRaw (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256Final (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256Free (sha : * mut wc_Sha512) ; } unsafe extern "C" { pub fn wc_Sha512_256GetHash (sha512 : * mut wc_Sha512 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256Copy (src : * mut wc_Sha512 , dst : * mut wc_Sha512) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256SetFlags (sha512 : * mut wc_Sha512 , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256GetFlags (sha512 : * mut wc_Sha512 , flags : * mut word32) -> :: core :: ffi :: c_int ; } pub type wc_Sha384 = wc_Sha512 ; unsafe extern "C" { pub fn wc_InitSha384 (sha : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha384_ex (sha : * mut wc_Sha384 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384Update (sha : * mut wc_Sha384 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384FinalRaw (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384Final (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384Free (sha : * mut wc_Sha384) ; } unsafe extern "C" { pub fn wc_Sha384GetHash (sha384 : * mut wc_Sha384 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384Copy (src : * mut wc_Sha384 , dst : * mut wc_Sha384) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384SetFlags (sha384 : * mut wc_Sha384 , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384GetFlags (sha384 : * mut wc_Sha384 , flags : * mut word32) -> :: core :: ffi :: c_int ; } pub const WC_SHA3_128_COUNT : _bindgen_ty_20 = 21 ; pub const WC_SHA3_224 : _bindgen_ty_20 = 10 ; pub const WC_SHA3_224_DIGEST_SIZE : _bindgen_ty_20 = 28 ; pub const WC_SHA3_224_COUNT : _bindgen_ty_20 = 18 ; pub const WC_SHA3_256 : _bindgen_ty_20 = 11 ; pub const WC_SHA3_256_DIGEST_SIZE : _bindgen_ty_20 = 32 ; pub const WC_SHA3_256_COUNT : _bindgen_ty_20 = 17 ; pub const WC_SHA3_384 : _bindgen_ty_20 = 12 ; pub const WC_SHA3_384_DIGEST_SIZE : _bindgen_ty_20 = 48 ; pub const WC_SHA3_384_COUNT : _bindgen_ty_20 = 13 ; pub const WC_SHA3_512 : _bindgen_ty_20 = 13 ; pub const WC_SHA3_512_DIGEST_SIZE : _bindgen_ty_20 = 64 ; pub const WC_SHA3_512_COUNT : _bindgen_ty_20 = 9 ; pub const WC_SHAKE128 : _bindgen_ty_20 = 18 ; pub const WC_SHAKE256 : _bindgen_ty_20 = 19 ; pub const WC_SHA3_128_BLOCK_SIZE : _bindgen_ty_20 = 168 ; pub const WC_SHA3_224_BLOCK_SIZE : _bindgen_ty_20 = 144 ; pub const WC_SHA3_256_BLOCK_SIZE : _bindgen_ty_20 = 136 ; pub const WC_SHA3_384_BLOCK_SIZE : _bindgen_ty_20 = 104 ; pub const WC_SHA3_512_BLOCK_SIZE : _bindgen_ty_20 = 72 ; pub type _bindgen_ty_20 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_Sha3 { pub s : [word64 ; 25usize] , pub t : [byte ; 200usize] , pub i : byte , pub heap : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , pub devCtx : * mut :: core :: ffi :: c_void , pub hashType : :: core :: ffi :: c_int , pub flags : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Sha3"] [:: core :: mem :: size_of :: < wc_Sha3 > () - 440usize] ; ["Alignment of wc_Sha3"] [:: core :: mem :: align_of :: < wc_Sha3 > () - 8usize] ; ["Offset of field: wc_Sha3::s"] [:: core :: mem :: offset_of ! (wc_Sha3 , s) - 0usize] ; ["Offset of field: wc_Sha3::t"] [:: core :: mem :: offset_of ! (wc_Sha3 , t) - 200usize] ; ["Offset of field: wc_Sha3::i"] [:: core :: mem :: offset_of ! (wc_Sha3 , i) - 400usize] ; ["Offset of field: wc_Sha3::heap"] [:: core :: mem :: offset_of ! (wc_Sha3 , heap) - 408usize] ; ["Offset of field: wc_Sha3::devId"] [:: core :: mem :: offset_of ! (wc_Sha3 , devId) - 416usize] ; ["Offset of field: wc_Sha3::devCtx"] [:: core :: mem :: offset_of ! (wc_Sha3 , devCtx) - 424usize] ; ["Offset of field: wc_Sha3::hashType"] [:: core :: mem :: offset_of ! (wc_Sha3 , hashType) - 432usize] ; ["Offset of field: wc_Sha3::flags"] [:: core :: mem :: offset_of ! (wc_Sha3 , flags) - 436usize] ; } ; pub type wc_Shake = wc_Sha3 ; unsafe extern "C" { pub fn wc_InitSha3_224 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_224_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_224_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_224_Free (sha3 : * mut wc_Sha3) ; } unsafe extern "C" { pub fn wc_Sha3_224_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_224_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha3_256 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_256_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_256_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_256_Free (sha3 : * mut wc_Sha3) ; } unsafe extern "C" { pub fn wc_Sha3_256_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_256_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha3_384 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_384_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_384_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_384_Free (sha3 : * mut wc_Sha3) ; } unsafe extern "C" { pub fn wc_Sha3_384_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_384_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitSha3_512 (sha3 : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_512_Update (sha3 : * mut wc_Sha3 , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_512_Final (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_512_Free (sha3 : * mut wc_Sha3) ; } unsafe extern "C" { pub fn wc_Sha3_512_GetHash (sha3 : * mut wc_Sha3 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_512_Copy (src : * mut wc_Sha3 , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitShake128 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake128_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake128_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake128_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake128_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake128_Free (shake : * mut wc_Shake) ; } unsafe extern "C" { pub fn wc_Shake128_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitShake256 (shake : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake256_Update (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake256_Final (shake : * mut wc_Shake , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake256_Absorb (shake : * mut wc_Shake , data : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake256_SqueezeBlocks (shake : * mut wc_Shake , out : * mut byte , blockCnt : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake256_Free (shake : * mut wc_Shake) ; } unsafe extern "C" { pub fn wc_Shake256_Copy (src : * mut wc_Shake , dst : * mut wc_Sha3) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_SetFlags (sha3 : * mut wc_Sha3 , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_GetFlags (sha3 : * mut wc_Sha3 , flags : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn BlockSha3 (s : * mut word64) ; } pub const wc_MACAlgorithm_no_mac : wc_MACAlgorithm = 0 ; pub const wc_MACAlgorithm_md5_mac : wc_MACAlgorithm = 1 ; pub const wc_MACAlgorithm_sha_mac : wc_MACAlgorithm = 2 ; pub const wc_MACAlgorithm_sha224_mac : wc_MACAlgorithm = 3 ; pub const wc_MACAlgorithm_sha256_mac : wc_MACAlgorithm = 4 ; pub const wc_MACAlgorithm_sha384_mac : wc_MACAlgorithm = 5 ; pub const wc_MACAlgorithm_sha512_mac : wc_MACAlgorithm = 6 ; pub const wc_MACAlgorithm_rmd_mac : wc_MACAlgorithm = 7 ; pub const wc_MACAlgorithm_blake2b_mac : wc_MACAlgorithm = 8 ; pub const wc_MACAlgorithm_sm3_mac : wc_MACAlgorithm = 9 ; pub type wc_MACAlgorithm = :: core :: ffi :: c_uint ; # [repr (C)] # [repr (align (16))] pub struct wc_Hashes { pub sha : __BindgenUnionField < wc_Sha > , pub sha224 : __BindgenUnionField < wc_Sha224 > , pub sha256 : __BindgenUnionField < wc_Sha256 > , pub sha384 : __BindgenUnionField < wc_Sha384 > , pub sha512 : __BindgenUnionField < wc_Sha512 > , pub sha3 : __BindgenUnionField < wc_Sha3 > , pub __bindgen_anon_1 : __BindgenUnionField < wc_Hashes__bindgen_ty_1 > , pub bindgen_union_field : [u128 ; 28usize] , } # [repr (C)] # [derive (Debug)] pub struct wc_Hashes__bindgen_ty_1 { pub _wolf_L109_agg_dummy_member : __IncompleteArrayField < byte > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Hashes__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_Hashes__bindgen_ty_1 > () - 0usize] ; ["Alignment of wc_Hashes__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_Hashes__bindgen_ty_1 > () - 1usize] ; ["Offset of field: wc_Hashes__bindgen_ty_1::_wolf_L109_agg_dummy_member"] [:: core :: mem :: offset_of ! (wc_Hashes__bindgen_ty_1 , _wolf_L109_agg_dummy_member) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_Hashes"] [:: core :: mem :: size_of :: < wc_Hashes > () - 448usize] ; ["Alignment of wc_Hashes"] [:: core :: mem :: align_of :: < wc_Hashes > () - 16usize] ; ["Offset of field: wc_Hashes::sha"] [:: core :: mem :: offset_of ! (wc_Hashes , sha) - 0usize] ; ["Offset of field: wc_Hashes::sha224"] [:: core :: mem :: offset_of ! (wc_Hashes , sha224) - 0usize] ; ["Offset of field: wc_Hashes::sha256"] [:: core :: mem :: offset_of ! (wc_Hashes , sha256) - 0usize] ; ["Offset of field: wc_Hashes::sha384"] [:: core :: mem :: offset_of ! (wc_Hashes , sha384) - 0usize] ; ["Offset of field: wc_Hashes::sha512"] [:: core :: mem :: offset_of ! (wc_Hashes , sha512) - 0usize] ; ["Offset of field: wc_Hashes::sha3"] [:: core :: mem :: offset_of ! (wc_Hashes , sha3) - 0usize] ; } ; # [repr (C)] # [repr (align (16))] pub struct wc_HashAlg { pub alg : wc_Hashes , pub type_ : wc_HashType , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_HashAlg"] [:: core :: mem :: size_of :: < wc_HashAlg > () - 464usize] ; ["Alignment of wc_HashAlg"] [:: core :: mem :: align_of :: < wc_HashAlg > () - 16usize] ; ["Offset of field: wc_HashAlg::alg"] [:: core :: mem :: offset_of ! (wc_HashAlg , alg) - 0usize] ; ["Offset of field: wc_HashAlg::type_"] [:: core :: mem :: offset_of ! (wc_HashAlg , type_) - 448usize] ; ["Offset of field: wc_HashAlg::heap"] [:: core :: mem :: offset_of ! (wc_HashAlg , heap) - 456usize] ; } ; unsafe extern "C" { pub fn wc_HashGetOID (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_OidGetHash (oid : :: core :: ffi :: c_int) -> wc_HashType ; } unsafe extern "C" { pub fn wc_HashTypeConvert (hashType : :: core :: ffi :: c_int) -> wc_HashType ; } unsafe extern "C" { pub fn wc_HashGetDigestSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashGetBlockSize (hash_type : wc_HashType) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Hash (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Hash_ex (hash_type : wc_HashType , data : * const byte , data_len : word32 , hash : * mut byte , hash_len : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashInit_ex (hash : * mut wc_HashAlg , type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashInit (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashUpdate (hash : * mut wc_HashAlg , type_ : wc_HashType , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashFinal (hash : * mut wc_HashAlg , type_ : wc_HashType , out : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashFree (hash : * mut wc_HashAlg , type_ : wc_HashType) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashNew (type_ : wc_HashType , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int , result_code : * mut :: core :: ffi :: c_int) -> * mut wc_HashAlg ; } unsafe extern "C" { pub fn wc_HashDelete (hash : * mut wc_HashAlg , hash_p : * mut * mut wc_HashAlg) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashSetFlags (hash : * mut wc_HashAlg , type_ : wc_HashType , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HashGetFlags (hash : * mut wc_HashAlg , type_ : wc_HashType , flags : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaHash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ShaHash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_224Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_256Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_384Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_512Hash (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_224Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_384Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha3_512Hash_ex (data : * const byte , len : word32 , hash : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake128Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake128Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake256Hash (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Shake256Hash_ex (data : * const byte , len : word32 , hash : * mut byte , hashLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type sp_uint8 = :: core :: ffi :: c_uchar ; pub type sp_int8 = :: core :: ffi :: c_char ; pub type sp_uint16 = :: core :: ffi :: c_ushort ; pub type sp_int16 = :: core :: ffi :: c_short ; pub type sp_uint32 = :: core :: ffi :: c_uint ; pub type sp_int32 = :: core :: ffi :: c_int ; pub type sp_uint64 = :: core :: ffi :: c_ulong ; pub type sp_int64 = :: core :: ffi :: c_long ; pub type sp_uint128 = __uint128_t ; pub type sp_int128 = __int128_t ; pub type sp_int_digit = sp_uint64 ; pub type sp_int_sdigit = sp_int64 ; pub type sp_int_word = sp_uint128 ; pub type sp_int_sword = sp_int128 ; pub type sp_digit = sp_int64 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct OS_Seed { pub fd : :: core :: ffi :: c_int , pub devId : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of OS_Seed"] [:: core :: mem :: size_of :: < OS_Seed > () - 8usize] ; ["Alignment of OS_Seed"] [:: core :: mem :: align_of :: < OS_Seed > () - 4usize] ; ["Offset of field: OS_Seed::fd"] [:: core :: mem :: offset_of ! (OS_Seed , fd) - 0usize] ; ["Offset of field: OS_Seed::devId"] [:: core :: mem :: offset_of ! (OS_Seed , devId) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_internal { pub reseedCtr : word64 , pub V : [byte ; 55usize] , pub C : [byte ; 55usize] , pub heap : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_internal"] [:: core :: mem :: size_of :: < DRBG_internal > () - 136usize] ; ["Alignment of DRBG_internal"] [:: core :: mem :: align_of :: < DRBG_internal > () - 8usize] ; ["Offset of field: DRBG_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_internal::V"] [:: core :: mem :: offset_of ! (DRBG_internal , V) - 8usize] ; ["Offset of field: DRBG_internal::C"] [:: core :: mem :: offset_of ! (DRBG_internal , C) - 63usize] ; ["Offset of field: DRBG_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_internal , heap) - 120usize] ; ["Offset of field: DRBG_internal::devId"] [:: core :: mem :: offset_of ! (DRBG_internal , devId) - 128usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_SHA512_internal { pub reseedCtr : word64 , pub V : [byte ; 111usize] , pub C : [byte ; 111usize] , pub heap : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DRBG_SHA512_internal"] [:: core :: mem :: size_of :: < DRBG_SHA512_internal > () - 248usize] ; ["Alignment of DRBG_SHA512_internal"] [:: core :: mem :: align_of :: < DRBG_SHA512_internal > () - 8usize] ; ["Offset of field: DRBG_SHA512_internal::reseedCtr"] [:: core :: mem :: offset_of ! (DRBG_SHA512_internal , reseedCtr) - 0usize] ; ["Offset of field: DRBG_SHA512_internal::V"] [:: core :: mem :: offset_of ! (DRBG_SHA512_internal , V) - 8usize] ; ["Offset of field: DRBG_SHA512_internal::C"] [:: core :: mem :: offset_of ! (DRBG_SHA512_internal , C) - 119usize] ; ["Offset of field: DRBG_SHA512_internal::heap"] [:: core :: mem :: offset_of ! (DRBG_SHA512_internal , heap) - 232usize] ; ["Offset of field: DRBG_SHA512_internal::devId"] [:: core :: mem :: offset_of ! (DRBG_SHA512_internal , devId) - 240usize] ; } ; pub const wc_DrbgType_WC_DRBG_SHA256 : wc_DrbgType = 0 ; pub const wc_DrbgType_WC_DRBG_SHA512 : wc_DrbgType = 1 ; pub type wc_DrbgType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct WC_RNG { pub seed : OS_Seed , pub heap : * mut :: core :: ffi :: c_void , pub status : byte , pub __bindgen_anon_1 : WC_RNG__bindgen_ty_1 , pub pid : pid_t , pub devId : :: core :: ffi :: c_int , } # [repr (C)] # [derive (Copy , Clone)] pub union WC_RNG__bindgen_ty_1 { pub __bindgen_anon_1 : WC_RNG__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_RNG__bindgen_ty_1__bindgen_ty_1 { pub drbg : * mut DRBG , pub drbg512 : * mut DRBG_SHA512 , pub drbgType : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < WC_RNG__bindgen_ty_1__bindgen_ty_1 > () - 24usize] ; ["Alignment of WC_RNG__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < WC_RNG__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WC_RNG__bindgen_ty_1__bindgen_ty_1::drbg"] [:: core :: mem :: offset_of ! (WC_RNG__bindgen_ty_1__bindgen_ty_1 , drbg) - 0usize] ; ["Offset of field: WC_RNG__bindgen_ty_1__bindgen_ty_1::drbg512"] [:: core :: mem :: offset_of ! (WC_RNG__bindgen_ty_1__bindgen_ty_1 , drbg512) - 8usize] ; ["Offset of field: WC_RNG__bindgen_ty_1__bindgen_ty_1::drbgType"] [:: core :: mem :: offset_of ! (WC_RNG__bindgen_ty_1__bindgen_ty_1 , drbgType) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG__bindgen_ty_1"] [:: core :: mem :: size_of :: < WC_RNG__bindgen_ty_1 > () - 24usize] ; ["Alignment of WC_RNG__bindgen_ty_1"] [:: core :: mem :: align_of :: < WC_RNG__bindgen_ty_1 > () - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_RNG"] [:: core :: mem :: size_of :: < WC_RNG > () - 56usize] ; ["Alignment of WC_RNG"] [:: core :: mem :: align_of :: < WC_RNG > () - 8usize] ; ["Offset of field: WC_RNG::seed"] [:: core :: mem :: offset_of ! (WC_RNG , seed) - 0usize] ; ["Offset of field: WC_RNG::heap"] [:: core :: mem :: offset_of ! (WC_RNG , heap) - 8usize] ; ["Offset of field: WC_RNG::status"] [:: core :: mem :: offset_of ! (WC_RNG , status) - 16usize] ; ["Offset of field: WC_RNG::pid"] [:: core :: mem :: offset_of ! (WC_RNG , pid) - 48usize] ; ["Offset of field: WC_RNG::devId"] [:: core :: mem :: offset_of ! (WC_RNG , devId) - 52usize] ; } ; unsafe extern "C" { pub fn wc_GenerateSeed (os : * mut OS_Seed , output : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_rng_new (nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void) -> * mut WC_RNG ; } unsafe extern "C" { pub fn wc_rng_new_ex (rng : * mut * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_rng_free (rng : * mut WC_RNG) ; } unsafe extern "C" { pub fn wc_InitRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitRng_ex (rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitRngNonce (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitRngNonce_ex (rng : * mut WC_RNG , nonce : * mut byte , nonceSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_GenerateBlock (rng : * mut WC_RNG , output : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_GenerateByte (rng : * mut WC_RNG , b : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_FreeRng (rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_DRBG_Reseed (rng : * mut WC_RNG , seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_TestSeed (seed : * const byte , seedSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_HealthTest (reseed : :: core :: ffi :: c_int , seedA : * const byte , seedASz : word32 , seedB : * const byte , seedBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_HealthTest_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , seedA : * const byte , seedASz : word32 , seedB : * const byte , seedBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_HealthTest_SHA256_ex (predResistance : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , persoString : * const byte , persoStringSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , entropyC : * const byte , entropyCsz : word32 , additionalA : * const byte , additionalASz : word32 , additionalB : * const byte , additionalBSz : word32 , additionalReseed : * const byte , additionalReseedSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_HealthTest_SHA512 (reseed : :: core :: ffi :: c_int , seedA : * const byte , seedASz : word32 , seedB : * const byte , seedBSz : word32 , output : * mut byte , outputSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_HealthTest_SHA512_ex (reseed : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , persoString : * const byte , persoStringSz : word32 , seedA : * const byte , seedASz : word32 , seedB : * const byte , seedBSz : word32 , additionalA : * const byte , additionalASz : word32 , additionalB : * const byte , additionalBSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RNG_HealthTest_SHA512_ex2 (predResistance : :: core :: ffi :: c_int , nonce : * const byte , nonceSz : word32 , persoString : * const byte , persoStringSz : word32 , entropyA : * const byte , entropyASz : word32 , entropyB : * const byte , entropyBSz : word32 , entropyC : * const byte , entropyCsz : word32 , additionalA : * const byte , additionalASz : word32 , additionalB : * const byte , additionalBSz : word32 , additionalReseed : * const byte , additionalReseedSz : word32 , output : * mut byte , outputSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Drbg_Disable () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Drbg_Enable () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha256Drbg_IsDisabled () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Drbg_Disable () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Drbg_Enable () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Sha512Drbg_IsDisabled () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DrbgState_MutexInit () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DrbgState_MutexFree () -> :: core :: ffi :: c_int ; } pub type sp_size_t = word16 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sp_int { pub used : sp_size_t , pub size : sp_size_t , pub dp : [sp_int_digit ; 129usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sp_int"] [:: core :: mem :: size_of :: < sp_int > () - 1040usize] ; ["Alignment of sp_int"] [:: core :: mem :: align_of :: < sp_int > () - 8usize] ; ["Offset of field: sp_int::used"] [:: core :: mem :: offset_of ! (sp_int , used) - 0usize] ; ["Offset of field: sp_int::size"] [:: core :: mem :: offset_of ! (sp_int , size) - 2usize] ; ["Offset of field: sp_int::dp"] [:: core :: mem :: offset_of ! (sp_int , dp) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sp_int_minimal { pub used : sp_size_t , pub size : sp_size_t , pub dp : [sp_int_digit ; 1usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sp_int_minimal"] [:: core :: mem :: size_of :: < sp_int_minimal > () - 16usize] ; ["Alignment of sp_int_minimal"] [:: core :: mem :: align_of :: < sp_int_minimal > () - 8usize] ; ["Offset of field: sp_int_minimal::used"] [:: core :: mem :: offset_of ! (sp_int_minimal , used) - 0usize] ; ["Offset of field: sp_int_minimal::size"] [:: core :: mem :: offset_of ! (sp_int_minimal , size) - 2usize] ; ["Offset of field: sp_int_minimal::dp"] [:: core :: mem :: offset_of ! (sp_int_minimal , dp) - 8usize] ; } ; pub type mp_int = sp_int ; pub type mp_digit = sp_int_digit ; unsafe extern "C" { pub fn sp_init (a : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_init_size (a : * mut sp_int , size : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_init_multi (n1 : * mut sp_int , n2 : * mut sp_int , n3 : * mut sp_int , n4 : * mut sp_int , n5 : * mut sp_int , n6 : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_free (a : * mut sp_int) ; } unsafe extern "C" { pub fn sp_grow (a : * mut sp_int , l : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_zero (a : * mut sp_int) ; } unsafe extern "C" { pub fn sp_clear (a : * mut sp_int) ; } unsafe extern "C" { pub fn sp_forcezero (a : * mut sp_int) ; } unsafe extern "C" { pub fn sp_init_copy (r : * mut sp_int , a : * const sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_copy (a : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_exch (a : * mut sp_int , b : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_cond_swap_ct (a : * mut sp_int , b : * mut sp_int , cnt : :: core :: ffi :: c_int , swap : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_cond_swap_ct_ex (a : * mut sp_int , b : * mut sp_int , cnt : :: core :: ffi :: c_int , swap : :: core :: ffi :: c_int , t : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_cmp_mag (a : * const sp_int , b : * const sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_cmp (a : * const sp_int , b : * const sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_cmp_ct (a : * const sp_int , b : * const sp_int , n : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_is_bit_set (a : * const sp_int , b : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_count_bits (a : * const sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_leading_bit (a : * const sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_set_bit (a : * mut sp_int , i : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_2expt (a : * mut sp_int , e : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_set (a : * mut sp_int , d : sp_int_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_set_int (a : * mut sp_int , n : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_cmp_d (a : * const sp_int , d : sp_int_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_add_d (a : * const sp_int , d : sp_int_digit , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_sub_d (a : * const sp_int , d : sp_int_digit , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mul_d (a : * const sp_int , d : sp_int_digit , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_div_d (a : * const sp_int , d : sp_int_digit , r : * mut sp_int , rem : * mut sp_int_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mod_d (a : * const sp_int , d : sp_int_digit , r : * mut sp_int_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_div_2_mod_ct (a : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_div_2 (a : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_add (a : * const sp_int , b : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_sub (a : * const sp_int , b : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_addmod (a : * const sp_int , b : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_submod (a : * const sp_int , b : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_submod_ct (a : * const sp_int , b : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_addmod_ct (a : * const sp_int , b : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_xor_ct (a : * const sp_int , b : * const sp_int , len : :: core :: ffi :: c_int , r : * mut sp_int) ; } unsafe extern "C" { pub fn sp_lshd (a : * mut sp_int , s : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_rshd (a : * mut sp_int , c : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn sp_rshb (a : * const sp_int , n : :: core :: ffi :: c_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_div (a : * const sp_int , d : * const sp_int , r : * mut sp_int , rem : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mod (a : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mul (a : * const sp_int , b : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mulmod (a : * const sp_int , b : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_invmod (a : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_invmod_mont_ct (a : * const sp_int , m : * const sp_int , r : * mut sp_int , mp : sp_int_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_exptmod_ex (b : * const sp_int , e : * const sp_int , digits : :: core :: ffi :: c_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_exptmod (b : * const sp_int , e : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_exptmod_nct (b : * const sp_int , e : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_div_2d (a : * const sp_int , e : :: core :: ffi :: c_int , r : * mut sp_int , rem : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mul_2d (a : * const sp_int , e : :: core :: ffi :: c_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mod_2d (a : * const sp_int , e : :: core :: ffi :: c_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_sqr (a : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_sqrmod (a : * const sp_int , m : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mont_red_ex (a : * mut sp_int , m : * const sp_int , mp : sp_int_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mont_setup (m : * const sp_int , rho : * mut sp_int_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_mont_norm (norm : * mut sp_int , m : * const sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_unsigned_bin_size (a : * const sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_read_unsigned_bin (a : * mut sp_int , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_to_unsigned_bin (a : * const sp_int , out : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_to_unsigned_bin_len (a : * const sp_int , out : * mut byte , outSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_to_unsigned_bin_len_ct (a : * const sp_int , out : * mut byte , outSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_to_unsigned_bin_at_pos (o : :: core :: ffi :: c_int , a : * const sp_int , out : * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_read_radix (a : * mut sp_int , in_ : * const :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_tohex (a : * const sp_int , str_ : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_todecimal (a : * const sp_int , str_ : * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_toradix (a : * const sp_int , str_ : * mut :: core :: ffi :: c_char , radix : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_radix_size (a : * const sp_int , radix : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_rand_prime (r : * mut sp_int , len : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_prime_is_prime (a : * const sp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_prime_is_prime_ex (a : * const sp_int , t : :: core :: ffi :: c_int , result : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sp_gcd (a : * const sp_int , b : * const sp_int , r : * mut sp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn CheckRunTimeFastMath () -> word32 ; } unsafe extern "C" { pub static wc_off_on_addr : [wc_ptr_t ; 2usize] ; } unsafe extern "C" { pub fn mp_get_digit_count (a : * const mp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mp_get_digit (a : * const mp_int , n : :: core :: ffi :: c_int) -> mp_digit ; } unsafe extern "C" { pub fn mp_get_rand_digit (rng : * mut WC_RNG , d : * mut mp_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mp_reverse (s : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn mp_cond_copy (a : * mut mp_int , copy : :: core :: ffi :: c_int , b : * mut mp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mp_rand (a : * mut mp_int , digits : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_export_int (mp : * mut mp_int , buf : * mut byte , len : * mut word32 , keySz : word32 , encType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetMathInfo () -> * const :: core :: ffi :: c_char ; } pub const RSA_PUBLIC : _bindgen_ty_21 = 0 ; pub const RSA_PRIVATE : _bindgen_ty_21 = 1 ; pub const RSA_TYPE_UNKNOWN : _bindgen_ty_21 = - 1 ; pub const RSA_PUBLIC_ENCRYPT : _bindgen_ty_21 = 0 ; pub const RSA_PUBLIC_DECRYPT : _bindgen_ty_21 = 1 ; pub const RSA_PRIVATE_ENCRYPT : _bindgen_ty_21 = 2 ; pub const RSA_PRIVATE_DECRYPT : _bindgen_ty_21 = 3 ; pub const RSA_BLOCK_TYPE_1 : _bindgen_ty_21 = 1 ; pub const RSA_BLOCK_TYPE_2 : _bindgen_ty_21 = 2 ; pub const RSA_MIN_PAD_SZ : _bindgen_ty_21 = 11 ; pub const RSA_PSS_PAD_SZ : _bindgen_ty_21 = 8 ; pub const RSA_PSS_SALT_MAX_SZ : _bindgen_ty_21 = 62 ; pub const RSA_PSS_PAD_TERM : _bindgen_ty_21 = 188 ; pub const RSA_PSS_SALT_LEN_DEFAULT : _bindgen_ty_21 = - 1 ; pub const RSA_MAX_ID_LEN : _bindgen_ty_21 = 32 ; pub const RSA_MAX_LABEL_LEN : _bindgen_ty_21 = 32 ; pub type _bindgen_ty_21 = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RsaKey { pub n : mp_int , pub e : mp_int , pub d : mp_int , pub p : mp_int , pub q : mp_int , pub dP : mp_int , pub dQ : mp_int , pub u : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub data : * mut byte , pub type_ : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub dataLen : word32 , pub rng : * mut WC_RNG , pub devCtx : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , pub id : [byte ; 32usize] , pub idLen : :: core :: ffi :: c_int , pub label : [:: core :: ffi :: c_char ; 32usize] , pub labelLen : :: core :: ffi :: c_int , pub dataIsAlloc : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RsaKey"] [:: core :: mem :: size_of :: < RsaKey > () - 8448usize] ; ["Alignment of RsaKey"] [:: core :: mem :: align_of :: < RsaKey > () - 8usize] ; ["Offset of field: RsaKey::n"] [:: core :: mem :: offset_of ! (RsaKey , n) - 0usize] ; ["Offset of field: RsaKey::e"] [:: core :: mem :: offset_of ! (RsaKey , e) - 1040usize] ; ["Offset of field: RsaKey::d"] [:: core :: mem :: offset_of ! (RsaKey , d) - 2080usize] ; ["Offset of field: RsaKey::p"] [:: core :: mem :: offset_of ! (RsaKey , p) - 3120usize] ; ["Offset of field: RsaKey::q"] [:: core :: mem :: offset_of ! (RsaKey , q) - 4160usize] ; ["Offset of field: RsaKey::dP"] [:: core :: mem :: offset_of ! (RsaKey , dP) - 5200usize] ; ["Offset of field: RsaKey::dQ"] [:: core :: mem :: offset_of ! (RsaKey , dQ) - 6240usize] ; ["Offset of field: RsaKey::u"] [:: core :: mem :: offset_of ! (RsaKey , u) - 7280usize] ; ["Offset of field: RsaKey::heap"] [:: core :: mem :: offset_of ! (RsaKey , heap) - 8320usize] ; ["Offset of field: RsaKey::data"] [:: core :: mem :: offset_of ! (RsaKey , data) - 8328usize] ; ["Offset of field: RsaKey::type_"] [:: core :: mem :: offset_of ! (RsaKey , type_) - 8336usize] ; ["Offset of field: RsaKey::state"] [:: core :: mem :: offset_of ! (RsaKey , state) - 8340usize] ; ["Offset of field: RsaKey::dataLen"] [:: core :: mem :: offset_of ! (RsaKey , dataLen) - 8344usize] ; ["Offset of field: RsaKey::rng"] [:: core :: mem :: offset_of ! (RsaKey , rng) - 8352usize] ; ["Offset of field: RsaKey::devCtx"] [:: core :: mem :: offset_of ! (RsaKey , devCtx) - 8360usize] ; ["Offset of field: RsaKey::devId"] [:: core :: mem :: offset_of ! (RsaKey , devId) - 8368usize] ; ["Offset of field: RsaKey::id"] [:: core :: mem :: offset_of ! (RsaKey , id) - 8372usize] ; ["Offset of field: RsaKey::idLen"] [:: core :: mem :: offset_of ! (RsaKey , idLen) - 8404usize] ; ["Offset of field: RsaKey::label"] [:: core :: mem :: offset_of ! (RsaKey , label) - 8408usize] ; ["Offset of field: RsaKey::labelLen"] [:: core :: mem :: offset_of ! (RsaKey , labelLen) - 8440usize] ; ["Offset of field: RsaKey::dataIsAlloc"] [:: core :: mem :: offset_of ! (RsaKey , dataIsAlloc) - 8444usize] ; } ; unsafe extern "C" { pub fn wc_InitRsaKey (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitRsaKey_ex (key : * mut RsaKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_FreeRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_NewRsaKey (heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int , result_code : * mut :: core :: ffi :: c_int) -> * mut RsaKey ; } unsafe extern "C" { pub fn wc_NewRsaKey_Id (id : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int , result_code : * mut :: core :: ffi :: c_int) -> * mut RsaKey ; } unsafe extern "C" { pub fn wc_NewRsaKey_Label (label : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int , result_code : * mut :: core :: ffi :: c_int) -> * mut RsaKey ; } unsafe extern "C" { pub fn wc_DeleteRsaKey (key : * mut RsaKey , key_p : * mut * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitRsaKey_Id (key : * mut RsaKey , id : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitRsaKey_Label (key : * mut RsaKey , label : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CheckRsaKey (key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaFunction (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPublicEncrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPrivateDecryptInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPrivateDecrypt (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaSSL_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_Sign (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_Sign_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaSSL_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaSSL_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaSSL_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaSSL_Verify_ex2 (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , pad_type : :: core :: ffi :: c_int , hash : wc_HashType) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_VerifyInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_VerifyInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_Verify (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_Verify_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_CheckPadding (in_ : * const byte , inLen : word32 , sig : * const byte , sigSz : word32 , hashType : wc_HashType) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_CheckPadding_ex (in_ : * const byte , inLen : word32 , sig : * const byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_CheckPadding_ex2 (in_ : * const byte , inLen : word32 , sig : * const byte , sigSz : word32 , hashType : wc_HashType , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_VerifyCheckInline (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , digest : * const byte , digentLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPSS_VerifyCheck (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , digest : * const byte , digestLen : word32 , hash : wc_HashType , mgf : :: core :: ffi :: c_int , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaEncryptSize (key : * const RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPrivateKeyValidate (input : * const byte , inOutIdx : * mut word32 , keySz : * mut :: core :: ffi :: c_int , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut RsaKey , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPublicKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaKeyToDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaSetRNG (key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPublicEncrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPrivateDecrypt_ex (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPrivateDecryptInline_ex (in_ : * mut byte , inLen : word32 , out : * mut * mut byte , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , hash : wc_HashType , mgf : :: core :: ffi :: c_int , label : * mut byte , labelSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaDirect (in_ : * const byte , inLen : word32 , out : * mut byte , outSz : * mut word32 , key : * mut RsaKey , type_ : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaFlattenPublicKey (key : * const RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaExportKey (key : * const RsaKey , e : * mut byte , eSz : * mut word32 , n : * mut byte , nSz : * mut word32 , d : * mut byte , dSz : * mut word32 , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MakeRsaKey (key : * mut RsaKey , size : :: core :: ffi :: c_int , e : :: core :: ffi :: c_long , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CheckProbablePrime_ex (p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , e : * const byte , eSz : word32 , nlen : :: core :: ffi :: c_int , isPrime : * mut :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CheckProbablePrime (p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , e : * const byte , eSz : word32 , nlen : :: core :: ffi :: c_int , isPrime : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPad_ex (input : * const byte , inputLen : word32 , pkcsBlock : * mut byte , pkcsBlockLen : word32 , padValue : byte , rng : * mut WC_RNG , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaUnPad_ex (pkcsBlock : * mut byte , pkcsBlockLen : word32 , out : * mut * mut byte , padValue : byte , padType : :: core :: ffi :: c_int , hType : wc_HashType , mgf : :: core :: ffi :: c_int , optLabel : * mut byte , labelLen : word32 , saltLen : :: core :: ffi :: c_int , bits : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_hash2mgf (hType : wc_HashType) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn RsaFunctionCheckIn (in_ : * const byte , inLen : word32 , key : * mut RsaKey , checkSmallCt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPrivateKeyDecodeRaw (n : * const byte , nSz : word32 , e : * const byte , eSz : word32 , d : * const byte , dSz : word32 , u : * const byte , uSz : word32 , p : * const byte , pSz : word32 , q : * const byte , qSz : word32 , dP : * const byte , dPSz : word32 , dQ : * const byte , dQSz : word32 , key : * mut RsaKey) -> :: core :: ffi :: c_int ; } pub const ECC_PUBLICKEY : _bindgen_ty_22 = 1 ; pub const ECC_PRIVATEKEY : _bindgen_ty_22 = 2 ; pub const ECC_PRIVATEKEY_ONLY : _bindgen_ty_22 = 3 ; pub const ECC_MAXNAME : _bindgen_ty_22 = 16 ; pub const SIG_HEADER_SZ : _bindgen_ty_22 = 7 ; pub const ECC_BUFSIZE : _bindgen_ty_22 = 257 ; pub const ECC_MINSIZE : _bindgen_ty_22 = 28 ; pub const ECC_MAXSIZE : _bindgen_ty_22 = 66 ; pub const ECC_MAXSIZE_GEN : _bindgen_ty_22 = 74 ; pub const ECC_MAX_OID_LEN : _bindgen_ty_22 = 16 ; pub const ECC_MAX_SIG_SIZE : _bindgen_ty_22 = 141 ; pub const ECC_POINT_COMP_EVEN : _bindgen_ty_22 = 2 ; pub const ECC_POINT_COMP_ODD : _bindgen_ty_22 = 3 ; pub const ECC_POINT_UNCOMP : _bindgen_ty_22 = 4 ; pub const SHAMIR_PRECOMP_SZ : _bindgen_ty_22 = 16 ; pub const ECC_MAX_ID_LEN : _bindgen_ty_22 = 32 ; pub const ECC_MAX_LABEL_LEN : _bindgen_ty_22 = 32 ; pub type _bindgen_ty_22 = :: core :: ffi :: c_uint ; pub const ecc_curve_ids_ECC_CURVE_INVALID : ecc_curve_ids = - 1 ; pub const ecc_curve_ids_ECC_CURVE_DEF : ecc_curve_ids = 0 ; pub const ecc_curve_ids_ECC_SECP192R1 : ecc_curve_ids = 1 ; pub const ecc_curve_ids_ECC_PRIME192V2 : ecc_curve_ids = 2 ; pub const ecc_curve_ids_ECC_PRIME192V3 : ecc_curve_ids = 3 ; pub const ecc_curve_ids_ECC_PRIME239V1 : ecc_curve_ids = 4 ; pub const ecc_curve_ids_ECC_PRIME239V2 : ecc_curve_ids = 5 ; pub const ecc_curve_ids_ECC_PRIME239V3 : ecc_curve_ids = 6 ; pub const ecc_curve_ids_ECC_SECP256R1 : ecc_curve_ids = 7 ; pub const ecc_curve_ids_ECC_SECP112R1 : ecc_curve_ids = 8 ; pub const ecc_curve_ids_ECC_SECP112R2 : ecc_curve_ids = 9 ; pub const ecc_curve_ids_ECC_SECP128R1 : ecc_curve_ids = 10 ; pub const ecc_curve_ids_ECC_SECP128R2 : ecc_curve_ids = 11 ; pub const ecc_curve_ids_ECC_SECP160R1 : ecc_curve_ids = 12 ; pub const ecc_curve_ids_ECC_SECP160R2 : ecc_curve_ids = 13 ; pub const ecc_curve_ids_ECC_SECP224R1 : ecc_curve_ids = 14 ; pub const ecc_curve_ids_ECC_SECP384R1 : ecc_curve_ids = 15 ; pub const ecc_curve_ids_ECC_SECP521R1 : ecc_curve_ids = 16 ; pub const ecc_curve_ids_ECC_SECP160K1 : ecc_curve_ids = 17 ; pub const ecc_curve_ids_ECC_SECP192K1 : ecc_curve_ids = 18 ; pub const ecc_curve_ids_ECC_SECP224K1 : ecc_curve_ids = 19 ; pub const ecc_curve_ids_ECC_SECP256K1 : ecc_curve_ids = 20 ; pub const ecc_curve_ids_ECC_BRAINPOOLP160R1 : ecc_curve_ids = 21 ; pub const ecc_curve_ids_ECC_BRAINPOOLP192R1 : ecc_curve_ids = 22 ; pub const ecc_curve_ids_ECC_BRAINPOOLP224R1 : ecc_curve_ids = 23 ; pub const ecc_curve_ids_ECC_BRAINPOOLP256R1 : ecc_curve_ids = 24 ; pub const ecc_curve_ids_ECC_BRAINPOOLP320R1 : ecc_curve_ids = 25 ; pub const ecc_curve_ids_ECC_BRAINPOOLP384R1 : ecc_curve_ids = 26 ; pub const ecc_curve_ids_ECC_BRAINPOOLP512R1 : ecc_curve_ids = 27 ; pub const ecc_curve_ids_ECC_SM2P256V1 : ecc_curve_ids = 28 ; pub const ecc_curve_ids_ECC_CURVE_MAX : ecc_curve_ids = 29 ; pub type ecc_curve_ids = :: core :: ffi :: c_int ; pub use self :: ecc_curve_ids as ecc_curve_id ; pub type ecc_oid_t = byte ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_set_type { pub size : :: core :: ffi :: c_int , pub id : :: core :: ffi :: c_int , pub name : * const :: core :: ffi :: c_char , pub prime : * const :: core :: ffi :: c_char , pub Af : * const :: core :: ffi :: c_char , pub Bf : * const :: core :: ffi :: c_char , pub order : * const :: core :: ffi :: c_char , pub Gx : * const :: core :: ffi :: c_char , pub Gy : * const :: core :: ffi :: c_char , pub oid : * const ecc_oid_t , pub oidSz : word32 , pub oidSum : word32 , pub cofactor : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ecc_set_type"] [:: core :: mem :: size_of :: < ecc_set_type > () - 88usize] ; ["Alignment of ecc_set_type"] [:: core :: mem :: align_of :: < ecc_set_type > () - 8usize] ; ["Offset of field: ecc_set_type::size"] [:: core :: mem :: offset_of ! (ecc_set_type , size) - 0usize] ; ["Offset of field: ecc_set_type::id"] [:: core :: mem :: offset_of ! (ecc_set_type , id) - 4usize] ; ["Offset of field: ecc_set_type::name"] [:: core :: mem :: offset_of ! (ecc_set_type , name) - 8usize] ; ["Offset of field: ecc_set_type::prime"] [:: core :: mem :: offset_of ! (ecc_set_type , prime) - 16usize] ; ["Offset of field: ecc_set_type::Af"] [:: core :: mem :: offset_of ! (ecc_set_type , Af) - 24usize] ; ["Offset of field: ecc_set_type::Bf"] [:: core :: mem :: offset_of ! (ecc_set_type , Bf) - 32usize] ; ["Offset of field: ecc_set_type::order"] [:: core :: mem :: offset_of ! (ecc_set_type , order) - 40usize] ; ["Offset of field: ecc_set_type::Gx"] [:: core :: mem :: offset_of ! (ecc_set_type , Gx) - 48usize] ; ["Offset of field: ecc_set_type::Gy"] [:: core :: mem :: offset_of ! (ecc_set_type , Gy) - 56usize] ; ["Offset of field: ecc_set_type::oid"] [:: core :: mem :: offset_of ! (ecc_set_type , oid) - 64usize] ; ["Offset of field: ecc_set_type::oidSz"] [:: core :: mem :: offset_of ! (ecc_set_type , oidSz) - 72usize] ; ["Offset of field: ecc_set_type::oidSum"] [:: core :: mem :: offset_of ! (ecc_set_type , oidSum) - 76usize] ; ["Offset of field: ecc_set_type::cofactor"] [:: core :: mem :: offset_of ! (ecc_set_type , cofactor) - 80usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_point { pub x : [mp_int ; 1usize] , pub y : [mp_int ; 1usize] , pub z : [mp_int ; 1usize] , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ecc_point"] [:: core :: mem :: size_of :: < ecc_point > () - 3128usize] ; ["Alignment of ecc_point"] [:: core :: mem :: align_of :: < ecc_point > () - 8usize] ; ["Offset of field: ecc_point::x"] [:: core :: mem :: offset_of ! (ecc_point , x) - 0usize] ; ["Offset of field: ecc_point::y"] [:: core :: mem :: offset_of ! (ecc_point , y) - 1040usize] ; ["Offset of field: ecc_point::z"] [:: core :: mem :: offset_of ! (ecc_point , z) - 2080usize] ; } ; impl ecc_point { # [inline] pub fn isAllocated (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isAllocated (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn isAllocated_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_isAllocated_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (isAllocated : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isAllocated : u8 = unsafe { :: core :: mem :: transmute (isAllocated) } ; isAllocated as u64 }) ; __bindgen_bitfield_unit } } pub const WC_ECC_FLAG_NONE : _bindgen_ty_23 = 0 ; pub const WC_ECC_FLAG_COFACTOR : _bindgen_ty_23 = 1 ; pub const WC_ECC_FLAG_DEC_SIGN : _bindgen_ty_23 = 2 ; pub type _bindgen_ty_23 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_key { pub type_ : :: core :: ffi :: c_int , pub idx : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub flags : word32 , pub dp : * const ecc_set_type , pub heap : * mut :: core :: ffi :: c_void , pub pubkey : ecc_point , pub k : [mp_int ; 1usize] , pub devCtx : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , pub id : [byte ; 32usize] , pub idLen : :: core :: ffi :: c_int , pub label : [:: core :: ffi :: c_char ; 32usize] , pub labelLen : :: core :: ffi :: c_int , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ecc_key"] [:: core :: mem :: size_of :: < ecc_key > () - 4296usize] ; ["Alignment of ecc_key"] [:: core :: mem :: align_of :: < ecc_key > () - 8usize] ; ["Offset of field: ecc_key::type_"] [:: core :: mem :: offset_of ! (ecc_key , type_) - 0usize] ; ["Offset of field: ecc_key::idx"] [:: core :: mem :: offset_of ! (ecc_key , idx) - 4usize] ; ["Offset of field: ecc_key::state"] [:: core :: mem :: offset_of ! (ecc_key , state) - 8usize] ; ["Offset of field: ecc_key::flags"] [:: core :: mem :: offset_of ! (ecc_key , flags) - 12usize] ; ["Offset of field: ecc_key::dp"] [:: core :: mem :: offset_of ! (ecc_key , dp) - 16usize] ; ["Offset of field: ecc_key::heap"] [:: core :: mem :: offset_of ! (ecc_key , heap) - 24usize] ; ["Offset of field: ecc_key::pubkey"] [:: core :: mem :: offset_of ! (ecc_key , pubkey) - 32usize] ; ["Offset of field: ecc_key::k"] [:: core :: mem :: offset_of ! (ecc_key , k) - 3160usize] ; ["Offset of field: ecc_key::devCtx"] [:: core :: mem :: offset_of ! (ecc_key , devCtx) - 4200usize] ; ["Offset of field: ecc_key::devId"] [:: core :: mem :: offset_of ! (ecc_key , devId) - 4208usize] ; ["Offset of field: ecc_key::id"] [:: core :: mem :: offset_of ! (ecc_key , id) - 4212usize] ; ["Offset of field: ecc_key::idLen"] [:: core :: mem :: offset_of ! (ecc_key , idLen) - 4244usize] ; ["Offset of field: ecc_key::label"] [:: core :: mem :: offset_of ! (ecc_key , label) - 4248usize] ; ["Offset of field: ecc_key::labelLen"] [:: core :: mem :: offset_of ! (ecc_key , labelLen) - 4280usize] ; ["Offset of field: ecc_key::rng"] [:: core :: mem :: offset_of ! (ecc_key , rng) - 4288usize] ; } ; unsafe extern "C" { pub fn wc_ecc_key_new (heap : * mut :: core :: ffi :: c_void) -> * mut ecc_key ; } unsafe extern "C" { pub fn wc_ecc_key_free (key : * mut ecc_key) ; } unsafe extern "C" { pub fn wc_ecc_get_sets () -> * const ecc_set_type ; } unsafe extern "C" { pub fn wc_ecc_get_sets_count () -> usize ; } unsafe extern "C" { pub fn wc_ecc_get_name (curve_id : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn ecc_mul2add (A : * mut ecc_point , kA : * mut mp_int , B : * mut ecc_point , kB : * mut mp_int , C : * mut ecc_point , a : * mut mp_int , modulus : * mut mp_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ecc_map (P : * mut ecc_point , modulus : * mut mp_int , mp : mp_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ecc_map_ex (P : * mut ecc_point , modulus : * mut mp_int , mp : mp_digit , ct : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ecc_projective_add_point (P : * mut ecc_point , Q : * mut ecc_point , R : * mut ecc_point , a : * mut mp_int , modulus : * mut mp_int , mp : mp_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ecc_projective_dbl_point (P : * mut ecc_point , R : * mut ecc_point , a : * mut mp_int , modulus : * mut mp_int , mp : mp_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ecc_projective_add_point_safe (A : * mut ecc_point , B : * mut ecc_point , R : * mut ecc_point , a : * mut mp_int , modulus : * mut mp_int , mp : mp_digit , infinity : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ecc_projective_dbl_point_safe (P : * mut ecc_point , R : * mut ecc_point , a : * mut mp_int , modulus : * mut mp_int , mp : mp_digit) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_make_key (rng : * mut WC_RNG , keysize : :: core :: ffi :: c_int , key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_make_key_ex (rng : * mut WC_RNG , keysize : :: core :: ffi :: c_int , key : * mut ecc_key , curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_make_key_ex2 (rng : * mut WC_RNG , keysize : :: core :: ffi :: c_int , key : * mut ecc_key , curve_id : :: core :: ffi :: c_int , flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_make_pub (key : * mut ecc_key , pubOut : * mut ecc_point) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_make_pub_ex (key : * mut ecc_key , pubOut : * mut ecc_point , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_check_key (key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_is_point (ecp : * mut ecc_point , a : * mut mp_int , b : * mut mp_int , prime : * mut mp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_generator (ecp : * mut ecc_point , curve_idx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_shared_secret (private_key : * mut ecc_key , public_key : * mut ecc_key , out : * mut byte , outlen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_shared_secret_ex (private_key : * mut ecc_key , point : * mut ecc_point , out : * mut byte , outlen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_shared_secret_gen_sync (private_key : * mut ecc_key , point : * mut ecc_point , out : * mut byte , outlen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_sign_hash (in_ : * const byte , inlen : word32 , out : * mut byte , outlen : * mut word32 , rng : * mut WC_RNG , key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_sign_hash_ex (in_ : * const byte , inlen : word32 , rng : * mut WC_RNG , key : * mut ecc_key , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_verify_hash (sig : * const byte , siglen : word32 , hash : * const byte , hashlen : word32 , res : * mut :: core :: ffi :: c_int , key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_verify_hash_ex (r : * mut mp_int , s : * mut mp_int , hash : * const byte , hashlen : word32 , res : * mut :: core :: ffi :: c_int , key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_init (key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_init_ex (key : * mut ecc_key , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_init_id (key : * mut ecc_key , id : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_init_label (key : * mut ecc_key , label : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_free (key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_set_flags (key : * mut ecc_key , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_fp_free () ; } unsafe extern "C" { pub fn wc_ecc_fp_init () ; } unsafe extern "C" { pub fn wc_ecc_set_rng (key : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_set_curve (key : * mut ecc_key , keysize : :: core :: ffi :: c_int , curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_is_valid_idx (n : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_idx (curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_id (curve_idx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_size_from_id (curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_idx_from_name (curveName : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_size_from_name (curveName : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_id_from_name (curveName : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_id_from_params (fieldSize : :: core :: ffi :: c_int , prime : * const byte , primeSz : word32 , Af : * const byte , AfSz : word32 , Bf : * const byte , BfSz : word32 , order : * const byte , orderSz : word32 , Gx : * const byte , GxSz : word32 , Gy : * const byte , GySz : word32 , cofactor : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_id_from_dp_params (dp : * const ecc_set_type) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_id_from_oid (oid : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_curve_params (curve_idx : :: core :: ffi :: c_int) -> * const ecc_set_type ; } unsafe extern "C" { pub fn wc_ecc_new_point () -> * mut ecc_point ; } unsafe extern "C" { pub fn wc_ecc_new_point_h (h : * mut :: core :: ffi :: c_void) -> * mut ecc_point ; } unsafe extern "C" { pub fn wc_ecc_del_point (p : * mut ecc_point) ; } unsafe extern "C" { pub fn wc_ecc_del_point_h (p : * mut ecc_point , h : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wc_ecc_forcezero_point (p : * mut ecc_point) ; } unsafe extern "C" { pub fn wc_ecc_copy_point (p : * const ecc_point , r : * mut ecc_point) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_cmp_point (a : * mut ecc_point , b : * mut ecc_point) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_point_is_at_infinity (p : * mut ecc_point) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_point_is_on_curve (p : * mut ecc_point , curve_idx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_mulmod (k : * const mp_int , G : * mut ecc_point , R : * mut ecc_point , a : * mut mp_int , modulus : * mut mp_int , map : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_mulmod_ex (k : * const mp_int , G : * mut ecc_point , R : * mut ecc_point , a : * mut mp_int , modulus : * mut mp_int , map : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_mulmod_ex2 (k : * const mp_int , G : * mut ecc_point , R : * mut ecc_point , a : * mut mp_int , modulus : * mut mp_int , order : * mut mp_int , rng : * mut WC_RNG , map : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_export_x963 (key : * mut ecc_key , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_export_x963_ex (key : * mut ecc_key , out : * mut byte , outLen : * mut word32 , compressed : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_x963 (in_ : * const byte , inLen : word32 , key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_x963_ex (in_ : * const byte , inLen : word32 , key : * mut ecc_key , curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_x963_ex2 (in_ : * const byte , inLen : word32 , key : * mut ecc_key , curve_id : :: core :: ffi :: c_int , untrusted : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_private_key (priv_ : * const byte , privSz : word32 , pub_ : * const byte , pubSz : word32 , key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_private_key_ex (priv_ : * const byte , privSz : word32 , pub_ : * const byte , pubSz : word32 , key : * mut ecc_key , curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_rs_to_sig (r : * const :: core :: ffi :: c_char , s : * const :: core :: ffi :: c_char , out : * mut byte , outlen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_rs_raw_to_sig (r : * const byte , rSz : word32 , s : * const byte , sSz : word32 , out : * mut byte , outlen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_sig_to_rs (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_raw (key : * mut ecc_key , qx : * const :: core :: ffi :: c_char , qy : * const :: core :: ffi :: c_char , d : * const :: core :: ffi :: c_char , curveName : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_raw_ex (key : * mut ecc_key , qx : * const :: core :: ffi :: c_char , qy : * const :: core :: ffi :: c_char , d : * const :: core :: ffi :: c_char , curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_unsigned (key : * mut ecc_key , qx : * const byte , qy : * const byte , d : * const byte , curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_export_ex (key : * mut ecc_key , qx : * mut byte , qxLen : * mut word32 , qy : * mut byte , qyLen : * mut word32 , d : * mut byte , dLen : * mut word32 , encType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_export_private_only (key : * mut ecc_key , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_export_public_raw (key : * mut ecc_key , qx : * mut byte , qxLen : * mut word32 , qy : * mut byte , qyLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_export_private_raw (key : * mut ecc_key , qx : * mut byte , qxLen : * mut word32 , qy : * mut byte , qyLen : * mut word32 , d : * mut byte , dLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_export_point_der_ex (curve_idx : :: core :: ffi :: c_int , point : * mut ecc_point , out : * mut byte , outLen : * mut word32 , compressed : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_export_point_der (curve_idx : :: core :: ffi :: c_int , point : * mut ecc_point , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_point_der_ex (in_ : * const byte , inLen : word32 , curve_idx : :: core :: ffi :: c_int , point : * mut ecc_point , shortKeySize : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_import_point_der (in_ : * const byte , inLen : word32 , curve_idx : :: core :: ffi :: c_int , point : * mut ecc_point) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_size (key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_sig_size_calc (sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_sig_size (key : * const ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_get_oid (oidSum : word32 , oid : * mut * const byte , oidSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_X963_KDF (type_ : wc_HashType , secret : * const byte , secretSz : word32 , sinfo : * const byte , sinfoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ecc_gen_k (rng : * mut WC_RNG , size : :: core :: ffi :: c_int , k : * mut mp_int , order : * mut mp_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhParams { pub p : * const byte , pub p_len : word32 , pub g : * const byte , pub g_len : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhParams"] [:: core :: mem :: size_of :: < DhParams > () - 32usize] ; ["Alignment of DhParams"] [:: core :: mem :: align_of :: < DhParams > () - 8usize] ; ["Offset of field: DhParams::p"] [:: core :: mem :: offset_of ! (DhParams , p) - 0usize] ; ["Offset of field: DhParams::p_len"] [:: core :: mem :: offset_of ! (DhParams , p_len) - 8usize] ; ["Offset of field: DhParams::g"] [:: core :: mem :: offset_of ! (DhParams , g) - 16usize] ; ["Offset of field: DhParams::g_len"] [:: core :: mem :: offset_of ! (DhParams , g_len) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DhKey { pub p : mp_int , pub g : mp_int , pub q : mp_int , pub heap : * mut :: core :: ffi :: c_void , pub trustedGroup : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DhKey"] [:: core :: mem :: size_of :: < DhKey > () - 3136usize] ; ["Alignment of DhKey"] [:: core :: mem :: align_of :: < DhKey > () - 8usize] ; ["Offset of field: DhKey::p"] [:: core :: mem :: offset_of ! (DhKey , p) - 0usize] ; ["Offset of field: DhKey::g"] [:: core :: mem :: offset_of ! (DhKey , g) - 1040usize] ; ["Offset of field: DhKey::q"] [:: core :: mem :: offset_of ! (DhKey , q) - 2080usize] ; ["Offset of field: DhKey::heap"] [:: core :: mem :: offset_of ! (DhKey , heap) - 3120usize] ; ["Offset of field: DhKey::trustedGroup"] [:: core :: mem :: offset_of ! (DhKey , trustedGroup) - 3128usize] ; } ; pub const WC_FFDHE_2048 : _bindgen_ty_24 = 256 ; pub const WC_FFDHE_3072 : _bindgen_ty_24 = 257 ; pub const WC_FFDHE_4096 : _bindgen_ty_24 = 258 ; pub const WC_FFDHE_6144 : _bindgen_ty_24 = 259 ; pub const WC_FFDHE_8192 : _bindgen_ty_24 = 260 ; pub type _bindgen_ty_24 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wc_Dh_ffdhe2048_Get () -> * const DhParams ; } unsafe extern "C" { pub fn wc_InitDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_InitDhKey_ex (key : * mut DhKey , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_FreeDhKey (key : * mut DhKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhGenerateKeyPair (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhAgree (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhAgree_ct (key : * mut DhKey , agree : * mut byte , agreeSz : * mut word32 , priv_ : * const byte , privSz : word32 , otherPub : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut DhKey , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhSetKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhSetKey_ex (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhSetNamedKey (key : * mut DhKey , name : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhGetNamedKeyParamSize (name : :: core :: ffi :: c_int , p : * mut word32 , g : * mut word32 , q : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhGetNamedKeyMinSize (name : :: core :: ffi :: c_int) -> word32 ; } unsafe extern "C" { pub fn wc_DhCmpNamedKey (name : :: core :: ffi :: c_int , noQ : :: core :: ffi :: c_int , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhCopyNamedKey (name : :: core :: ffi :: c_int , p : * mut byte , pSz : * mut word32 , g : * mut byte , gSz : * mut word32 , q : * mut byte , qSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhGeneratePublic (key : * mut DhKey , priv_ : * mut byte , privSz : word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhSetCheckKey (key : * mut DhKey , p : * const byte , pSz : word32 , g : * const byte , gSz : word32 , q : * const byte , qSz : word32 , trusted : :: core :: ffi :: c_int , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhParamsLoad (input : * const byte , inSz : word32 , p : * mut byte , pInOutSz : * mut word32 , g : * mut byte , gInOutSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhCheckPubKey (key : * mut DhKey , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhCheckPubKey_ex (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhCheckPubValue (prime : * const byte , primeSz : word32 , pub_ : * const byte , pubSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhCheckPrivKey (key : * mut DhKey , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhCheckPrivKey_ex (key : * mut DhKey , priv_ : * const byte , privSz : word32 , prime : * const byte , primeSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhCheckKeyPair (key : * mut DhKey , pub_ : * const byte , pubSz : word32 , priv_ : * const byte , privSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhGenerateParams (rng : * mut WC_RNG , modSz : :: core :: ffi :: c_int , dh : * mut DhKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DhExportParamsRaw (dh : * mut DhKey , p : * mut byte , pSz : * mut word32 , q : * mut byte , qSz : * mut word32 , g : * mut byte , gSz : * mut word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct Gcm { pub H : [byte ; 16usize] , pub M0 : [[byte ; 16usize] ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gcm"] [:: core :: mem :: size_of :: < Gcm > () - 528usize] ; ["Alignment of Gcm"] [:: core :: mem :: align_of :: < Gcm > () - 16usize] ; ["Offset of field: Gcm::H"] [:: core :: mem :: offset_of ! (Gcm , H) - 0usize] ; ["Offset of field: Gcm::M0"] [:: core :: mem :: offset_of ! (Gcm , M0) - 16usize] ; } ; unsafe extern "C" { pub fn GenerateM0 (gcm : * mut Gcm) ; } unsafe extern "C" { pub fn GHASH (gcm : * mut Gcm , a : * const byte , aSz : word32 , c : * const byte , cSz : word32 , s : * mut byte , sSz : word32) ; } pub const AES_128_KEY_SIZE : _bindgen_ty_25 = 16 ; pub const AES_192_KEY_SIZE : _bindgen_ty_25 = 24 ; pub const AES_256_KEY_SIZE : _bindgen_ty_25 = 32 ; pub const AES_IV_SIZE : _bindgen_ty_25 = 16 ; pub type _bindgen_ty_25 = :: core :: ffi :: c_uint ; pub const AES_ENC_TYPE : _bindgen_ty_26 = 1 ; pub const AES_ENCRYPTION : _bindgen_ty_26 = 0 ; pub const AES_DECRYPTION : _bindgen_ty_26 = 1 ; pub const WC_AES_BLOCK_SIZE : _bindgen_ty_26 = 16 ; pub const KEYWRAP_BLOCK_SIZE : _bindgen_ty_26 = 8 ; pub const GCM_NONCE_MAX_SZ : _bindgen_ty_26 = 16 ; pub const GCM_NONCE_MID_SZ : _bindgen_ty_26 = 12 ; pub const GCM_NONCE_MIN_SZ : _bindgen_ty_26 = 8 ; pub const CCM_NONCE_MIN_SZ : _bindgen_ty_26 = 7 ; pub const CCM_NONCE_MAX_SZ : _bindgen_ty_26 = 13 ; pub const CTR_SZ : _bindgen_ty_26 = 4 ; pub const AES_IV_FIXED_SZ : _bindgen_ty_26 = 4 ; pub const AES_CFB_MODE : _bindgen_ty_26 = 1 ; pub const AES_MAX_ID_LEN : _bindgen_ty_26 = 32 ; pub const AES_MAX_LABEL_LEN : _bindgen_ty_26 = 32 ; pub type _bindgen_ty_26 = :: core :: ffi :: c_uint ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct Aes { pub key : [word32 ; 60usize] , pub rounds : word32 , pub keylen : :: core :: ffi :: c_int , pub __bindgen_padding_0 : [u32 ; 2usize] , pub reg : [word32 ; 4usize] , pub tmp : [word32 ; 4usize] , pub invokeCtr : [word32 ; 2usize] , pub nonceSz : word32 , pub __bindgen_padding_1 : [u64 ; 0usize] , pub gcm : Gcm , pub devId : :: core :: ffi :: c_int , pub devCtx : * mut :: core :: ffi :: c_void , pub id : [byte ; 32usize] , pub idLen : :: core :: ffi :: c_int , pub label : [:: core :: ffi :: c_char ; 32usize] , pub labelLen : :: core :: ffi :: c_int , pub left : word32 , pub devKey : [word32 ; 8usize] , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Aes"] [:: core :: mem :: size_of :: < Aes > () - 976usize] ; ["Alignment of Aes"] [:: core :: mem :: align_of :: < Aes > () - 16usize] ; ["Offset of field: Aes::key"] [:: core :: mem :: offset_of ! (Aes , key) - 0usize] ; ["Offset of field: Aes::rounds"] [:: core :: mem :: offset_of ! (Aes , rounds) - 240usize] ; ["Offset of field: Aes::keylen"] [:: core :: mem :: offset_of ! (Aes , keylen) - 244usize] ; ["Offset of field: Aes::reg"] [:: core :: mem :: offset_of ! (Aes , reg) - 256usize] ; ["Offset of field: Aes::tmp"] [:: core :: mem :: offset_of ! (Aes , tmp) - 272usize] ; ["Offset of field: Aes::invokeCtr"] [:: core :: mem :: offset_of ! (Aes , invokeCtr) - 288usize] ; ["Offset of field: Aes::nonceSz"] [:: core :: mem :: offset_of ! (Aes , nonceSz) - 296usize] ; ["Offset of field: Aes::gcm"] [:: core :: mem :: offset_of ! (Aes , gcm) - 304usize] ; ["Offset of field: Aes::devId"] [:: core :: mem :: offset_of ! (Aes , devId) - 832usize] ; ["Offset of field: Aes::devCtx"] [:: core :: mem :: offset_of ! (Aes , devCtx) - 840usize] ; ["Offset of field: Aes::id"] [:: core :: mem :: offset_of ! (Aes , id) - 848usize] ; ["Offset of field: Aes::idLen"] [:: core :: mem :: offset_of ! (Aes , idLen) - 880usize] ; ["Offset of field: Aes::label"] [:: core :: mem :: offset_of ! (Aes , label) - 884usize] ; ["Offset of field: Aes::labelLen"] [:: core :: mem :: offset_of ! (Aes , labelLen) - 916usize] ; ["Offset of field: Aes::left"] [:: core :: mem :: offset_of ! (Aes , left) - 920usize] ; ["Offset of field: Aes::devKey"] [:: core :: mem :: offset_of ! (Aes , devKey) - 924usize] ; ["Offset of field: Aes::heap"] [:: core :: mem :: offset_of ! (Aes , heap) - 960usize] ; } ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct Gmac { pub aes : Aes , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Gmac"] [:: core :: mem :: size_of :: < Gmac > () - 976usize] ; ["Alignment of Gmac"] [:: core :: mem :: align_of :: < Gmac > () - 16usize] ; ["Offset of field: Gmac::aes"] [:: core :: mem :: offset_of ! (Gmac , aes) - 0usize] ; } ; pub type wc_AesAuthEncryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; pub type wc_AesAuthDecryptFunc = :: core :: option :: Option < unsafe extern "C" fn (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wc_AesSetKey (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesSetIV (aes : * mut Aes , iv : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesCfbEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesCfb1Encrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesCfb8Encrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesCfbDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesCfb1Decrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesCfb8Decrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesEncryptDirect (aes : * mut Aes , out : * mut byte , in_ : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesDecryptDirect (aes : * mut Aes , out : * mut byte , in_ : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesSetKeyDirect (aes : * mut Aes , key : * const byte , len : word32 , iv : * const byte , dir : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesGcmSetKey (aes : * mut Aes , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesGcmSetExtIV (aes : * mut Aes , iv : * const byte , ivSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesGcmSetIV (aes : * mut Aes , ivSz : word32 , ivFixed : * const byte , ivFixedSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesGcmEncrypt_ex (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , ivOut : * mut byte , ivOutSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GmacSetKey (gmac : * mut Gmac , key : * const byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GmacUpdate (gmac : * mut Gmac , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Gmac (key : * const byte , keySz : word32 , iv : * mut byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * mut byte , authTagSz : word32 , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GmacVerify (key : * const byte , keySz : word32 , iv : * const byte , ivSz : word32 , authIn : * const byte , authInSz : word32 , authTag : * const byte , authTagSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesKeyWrap (key : * const byte , keySz : word32 , in_ : * const byte , inSz : word32 , out : * mut byte , outSz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesKeyWrap_ex (aes : * mut Aes , in_ : * const byte , inSz : word32 , out : * mut byte , outSz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesKeyUnWrap (key : * const byte , keySz : word32 , in_ : * const byte , inSz : word32 , out : * mut byte , outSz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesKeyUnWrap_ex (aes : * mut Aes , in_ : * const byte , inSz : word32 , out : * mut byte , outSz : word32 , iv : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesGetKeySize (aes : * mut Aes , keySize : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesInit (aes : * mut Aes , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesInit_Id (aes : * mut Aes , id : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesInit_Label (aes : * mut Aes , label : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AesFree (aes : * mut Aes) ; } unsafe extern "C" { pub fn wc_AesNew (heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int , result_code : * mut :: core :: ffi :: c_int) -> * mut Aes ; } unsafe extern "C" { pub fn wc_AesNew_Id (id : * mut :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int , result_code : * mut :: core :: ffi :: c_int) -> * mut Aes ; } unsafe extern "C" { pub fn wc_AesNew_Label (label : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int , result_code : * mut :: core :: ffi :: c_int) -> * mut Aes ; } unsafe extern "C" { pub fn wc_AesDelete (aes : * mut Aes , aes_p : * mut * mut Aes) -> :: core :: ffi :: c_int ; } pub const HMAC_FIPS_MIN_KEY : _bindgen_ty_27 = 14 ; pub const IPAD : _bindgen_ty_27 = 54 ; pub const OPAD : _bindgen_ty_27 = 92 ; pub const WC_MD5 : _bindgen_ty_27 = 3 ; pub const HMAC_MAX_ID_LEN : _bindgen_ty_27 = 32 ; pub const HMAC_MAX_LABEL_LEN : _bindgen_ty_27 = 32 ; pub type _bindgen_ty_27 = :: core :: ffi :: c_uint ; pub type wc_HmacHash = wc_Hashes ; # [repr (C)] # [repr (align (16))] pub struct Hmac { pub hash : wc_HmacHash , pub ipad : [word32 ; 36usize] , pub opad : [word32 ; 36usize] , pub innerHash : [word32 ; 16usize] , pub heap : * mut :: core :: ffi :: c_void , pub macType : byte , pub innerHashKeyed : byte , pub devId : :: core :: ffi :: c_int , pub devCtx : * mut :: core :: ffi :: c_void , pub keyRaw : * const byte , pub id : [byte ; 32usize] , pub idLen : :: core :: ffi :: c_int , pub label : [:: core :: ffi :: c_char ; 32usize] , pub labelLen : :: core :: ffi :: c_int , pub keyLen : word16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hmac"] [:: core :: mem :: size_of :: < Hmac > () - 912usize] ; ["Alignment of Hmac"] [:: core :: mem :: align_of :: < Hmac > () - 16usize] ; ["Offset of field: Hmac::hash"] [:: core :: mem :: offset_of ! (Hmac , hash) - 0usize] ; ["Offset of field: Hmac::ipad"] [:: core :: mem :: offset_of ! (Hmac , ipad) - 448usize] ; ["Offset of field: Hmac::opad"] [:: core :: mem :: offset_of ! (Hmac , opad) - 592usize] ; ["Offset of field: Hmac::innerHash"] [:: core :: mem :: offset_of ! (Hmac , innerHash) - 736usize] ; ["Offset of field: Hmac::heap"] [:: core :: mem :: offset_of ! (Hmac , heap) - 800usize] ; ["Offset of field: Hmac::macType"] [:: core :: mem :: offset_of ! (Hmac , macType) - 808usize] ; ["Offset of field: Hmac::innerHashKeyed"] [:: core :: mem :: offset_of ! (Hmac , innerHashKeyed) - 809usize] ; ["Offset of field: Hmac::devId"] [:: core :: mem :: offset_of ! (Hmac , devId) - 812usize] ; ["Offset of field: Hmac::devCtx"] [:: core :: mem :: offset_of ! (Hmac , devCtx) - 816usize] ; ["Offset of field: Hmac::keyRaw"] [:: core :: mem :: offset_of ! (Hmac , keyRaw) - 824usize] ; ["Offset of field: Hmac::id"] [:: core :: mem :: offset_of ! (Hmac , id) - 832usize] ; ["Offset of field: Hmac::idLen"] [:: core :: mem :: offset_of ! (Hmac , idLen) - 864usize] ; ["Offset of field: Hmac::label"] [:: core :: mem :: offset_of ! (Hmac , label) - 868usize] ; ["Offset of field: Hmac::labelLen"] [:: core :: mem :: offset_of ! (Hmac , labelLen) - 900usize] ; ["Offset of field: Hmac::keyLen"] [:: core :: mem :: offset_of ! (Hmac , keyLen) - 904usize] ; } ; unsafe extern "C" { pub fn wc_HmacSetKey (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacSetKey_ex (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , key : * const byte , length : word32 , allowFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacUpdate (hmac : * mut Hmac , msg : * const byte , length : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacFinal (hmac : * mut Hmac , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacSizeByType (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacInit (hmac : * mut Hmac , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacInit_Id (hmac : * mut Hmac , id : * mut byte , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacInit_Label (hmac : * mut Hmac , label : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacCopy (src : * mut Hmac , dst : * mut Hmac) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HmacFree (hmac : * mut Hmac) ; } unsafe extern "C" { pub fn wolfSSL_GetHmacMaxSize () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn _InitHmac (hmac : * mut Hmac , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn _HmacInitIOHashes (hmac : * mut Hmac) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HKDF_Extract_ex (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HKDF_Extract (type_ : :: core :: ffi :: c_int , salt : * const byte , saltSz : word32 , inKey : * const byte , inKeySz : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HKDF_Expand_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HKDF_Expand (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HKDF (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_HKDF_ex (type_ : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WC_ML_KEM_512 : _bindgen_ty_28 = 0 ; pub const WC_ML_KEM_768 : _bindgen_ty_28 = 1 ; pub const WC_ML_KEM_1024 : _bindgen_ty_28 = 2 ; pub const MLKEM_KYBER : _bindgen_ty_28 = 16 ; pub const KYBER512 : _bindgen_ty_28 = 16 ; pub const KYBER768 : _bindgen_ty_28 = 17 ; pub const KYBER1024 : _bindgen_ty_28 = 18 ; pub const KYBER_LEVEL1 : _bindgen_ty_28 = 16 ; pub const KYBER_LEVEL3 : _bindgen_ty_28 = 17 ; pub const KYBER_LEVEL5 : _bindgen_ty_28 = 18 ; pub const WC_ML_KEM_SYM_SZ : _bindgen_ty_28 = 32 ; pub const WC_ML_KEM_SS_SZ : _bindgen_ty_28 = 32 ; pub const WC_ML_KEM_MAKEKEY_RAND_SZ : _bindgen_ty_28 = 64 ; pub const WC_ML_KEM_ENC_RAND_SZ : _bindgen_ty_28 = 32 ; pub const WC_ML_KEM_POLY_SIZE : _bindgen_ty_28 = 384 ; pub const MLKEM_FLAG_PRIV_SET : _bindgen_ty_28 = 1 ; pub const MLKEM_FLAG_PUB_SET : _bindgen_ty_28 = 2 ; pub const MLKEM_FLAG_BOTH_SET : _bindgen_ty_28 = 3 ; pub const MLKEM_FLAG_H_SET : _bindgen_ty_28 = 4 ; pub const MLKEM_FLAG_A_SET : _bindgen_ty_28 = 8 ; pub const MLKEM_CBD_ETA2 : _bindgen_ty_28 = 2 ; pub const MLKEM_CBD_ETA3 : _bindgen_ty_28 = 3 ; pub const MLKEM_COMP_4BITS : _bindgen_ty_28 = 4 ; pub const MLKEM_COMP_5BITS : _bindgen_ty_28 = 5 ; pub const MLKEM_COMP_10BITS : _bindgen_ty_28 = 10 ; pub const MLKEM_COMP_11BITS : _bindgen_ty_28 = 11 ; pub type _bindgen_ty_28 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct MlKemKey { pub type_ : :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , pub devCtx : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , pub flags : :: core :: ffi :: c_int , pub id : [byte ; 32usize] , pub idLen : :: core :: ffi :: c_int , pub label : [:: core :: ffi :: c_char ; 32usize] , pub labelLen : :: core :: ffi :: c_int , pub hash : wc_Sha3 , pub prf : wc_Shake , pub priv_ : [sword16 ; 1024usize] , pub pub_ : [sword16 ; 1024usize] , pub pubSeed : [byte ; 32usize] , pub h : [byte ; 32usize] , pub z : [byte ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of MlKemKey"] [:: core :: mem :: size_of :: < MlKemKey > () - 5176usize] ; ["Alignment of MlKemKey"] [:: core :: mem :: align_of :: < MlKemKey > () - 8usize] ; ["Offset of field: MlKemKey::type_"] [:: core :: mem :: offset_of ! (MlKemKey , type_) - 0usize] ; ["Offset of field: MlKemKey::heap"] [:: core :: mem :: offset_of ! (MlKemKey , heap) - 8usize] ; ["Offset of field: MlKemKey::devCtx"] [:: core :: mem :: offset_of ! (MlKemKey , devCtx) - 16usize] ; ["Offset of field: MlKemKey::devId"] [:: core :: mem :: offset_of ! (MlKemKey , devId) - 24usize] ; ["Offset of field: MlKemKey::flags"] [:: core :: mem :: offset_of ! (MlKemKey , flags) - 28usize] ; ["Offset of field: MlKemKey::id"] [:: core :: mem :: offset_of ! (MlKemKey , id) - 32usize] ; ["Offset of field: MlKemKey::idLen"] [:: core :: mem :: offset_of ! (MlKemKey , idLen) - 64usize] ; ["Offset of field: MlKemKey::label"] [:: core :: mem :: offset_of ! (MlKemKey , label) - 68usize] ; ["Offset of field: MlKemKey::labelLen"] [:: core :: mem :: offset_of ! (MlKemKey , labelLen) - 100usize] ; ["Offset of field: MlKemKey::hash"] [:: core :: mem :: offset_of ! (MlKemKey , hash) - 104usize] ; ["Offset of field: MlKemKey::prf"] [:: core :: mem :: offset_of ! (MlKemKey , prf) - 544usize] ; ["Offset of field: MlKemKey::priv_"] [:: core :: mem :: offset_of ! (MlKemKey , priv_) - 984usize] ; ["Offset of field: MlKemKey::pub_"] [:: core :: mem :: offset_of ! (MlKemKey , pub_) - 3032usize] ; ["Offset of field: MlKemKey::pubSeed"] [:: core :: mem :: offset_of ! (MlKemKey , pubSeed) - 5080usize] ; ["Offset of field: MlKemKey::h"] [:: core :: mem :: offset_of ! (MlKemKey , h) - 5112usize] ; ["Offset of field: MlKemKey::z"] [:: core :: mem :: offset_of ! (MlKemKey , z) - 5144usize] ; } ; unsafe extern "C" { pub fn wc_MlKemKey_New (type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> * mut MlKemKey ; } unsafe extern "C" { pub fn wc_MlKemKey_Delete (key : * mut MlKemKey , key_p : * mut * mut MlKemKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_Init (key : * mut MlKemKey , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_Free (key : * mut MlKemKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_Init_Id (key : * mut MlKemKey , type_ : :: core :: ffi :: c_int , id : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_Init_Label (key : * mut MlKemKey , type_ : :: core :: ffi :: c_int , label : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_MakeKey (key : * mut MlKemKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_MakeKeyWithRandom (key : * mut MlKemKey , rand : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_CipherTextSize (key : * mut MlKemKey , len : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_SharedSecretSize (key : * mut MlKemKey , len : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_Encapsulate (key : * mut MlKemKey , ct : * mut :: core :: ffi :: c_uchar , ss : * mut :: core :: ffi :: c_uchar , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_EncapsulateWithRandom (key : * mut MlKemKey , ct : * mut :: core :: ffi :: c_uchar , ss : * mut :: core :: ffi :: c_uchar , rand : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_Decapsulate (key : * mut MlKemKey , ss : * mut :: core :: ffi :: c_uchar , ct : * const :: core :: ffi :: c_uchar , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_DecodePrivateKey (key : * mut MlKemKey , in_ : * const :: core :: ffi :: c_uchar , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_DecodePublicKey (key : * mut MlKemKey , in_ : * const :: core :: ffi :: c_uchar , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_PrivateKeySize (key : * mut MlKemKey , len : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_PublicKeySize (key : * mut MlKemKey , len : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_EncodePrivateKey (key : * mut MlKemKey , out : * mut :: core :: ffi :: c_uchar , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlKemKey_EncodePublicKey (key : * mut MlKemKey , out : * mut :: core :: ffi :: c_uchar , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_init () ; } unsafe extern "C" { pub fn mlkem_keygen (priv_ : * mut sword16 , pub_ : * mut sword16 , e : * mut sword16 , a : * const sword16 , kp : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn mlkem_encapsulate (pub_ : * const sword16 , bp : * mut sword16 , v : * mut sword16 , at : * const sword16 , sp : * mut sword16 , ep : * const sword16 , epp : * const sword16 , m : * const sword16 , kp : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn mlkem_decapsulate (priv_ : * const sword16 , mp : * mut sword16 , bp : * mut sword16 , v : * const sword16 , kp : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn mlkem_gen_matrix (prf : * mut wc_Shake , a : * mut sword16 , kp : :: core :: ffi :: c_int , seed : * mut byte , transposed : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_get_noise (prf : * mut wc_Shake , kp : :: core :: ffi :: c_int , vec1 : * mut sword16 , vec2 : * mut sword16 , poly : * mut sword16 , seed : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_hash_new (hash : * mut wc_Sha3 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_hash_free (hash : * mut wc_Sha3) ; } unsafe extern "C" { pub fn mlkem_hash256 (hash : * mut wc_Sha3 , data : * const byte , dataLen : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_hash512 (hash : * mut wc_Sha3 , data1 : * const byte , data1Len : word32 , data2 : * const byte , data2Len : word32 , out : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_derive_secret (prf : * mut wc_Shake , z : * const byte , ct : * const byte , ctSz : word32 , ss : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_prf_init (prf : * mut wc_Shake) ; } unsafe extern "C" { pub fn mlkem_prf_new (prf : * mut wc_Shake , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_prf_free (prf : * mut wc_Shake) ; } unsafe extern "C" { pub fn mlkem_cmp (a : * const byte , b : * const byte , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn mlkem_vec_compress_10 (r : * mut byte , v : * mut sword16 , kp : :: core :: ffi :: c_uint) ; } unsafe extern "C" { pub fn mlkem_vec_compress_11 (r : * mut byte , v : * mut sword16) ; } unsafe extern "C" { pub fn mlkem_vec_decompress_10 (v : * mut sword16 , b : * const :: core :: ffi :: c_uchar , kp : :: core :: ffi :: c_uint) ; } unsafe extern "C" { pub fn mlkem_vec_decompress_11 (v : * mut sword16 , b : * const :: core :: ffi :: c_uchar) ; } unsafe extern "C" { pub fn mlkem_compress_4 (b : * mut byte , p : * mut sword16) ; } unsafe extern "C" { pub fn mlkem_compress_5 (b : * mut byte , p : * mut sword16) ; } unsafe extern "C" { pub fn mlkem_decompress_4 (p : * mut sword16 , b : * const :: core :: ffi :: c_uchar) ; } unsafe extern "C" { pub fn mlkem_decompress_5 (p : * mut sword16 , b : * const :: core :: ffi :: c_uchar) ; } unsafe extern "C" { pub fn mlkem_from_msg (p : * mut sword16 , msg : * const byte) ; } unsafe extern "C" { pub fn mlkem_to_msg (msg : * mut byte , p : * mut sword16) ; } unsafe extern "C" { pub fn mlkem_from_bytes (p : * mut sword16 , b : * const byte , k : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn mlkem_to_bytes (b : * mut byte , p : * mut sword16 , k : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn mlkem_check_public (p : * const sword16 , k : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoCb_AesAuthEnc { pub aes : * mut Aes , pub out : * mut byte , pub in_ : * const byte , pub sz : word32 , pub nonce : * const byte , pub nonceSz : word32 , pub iv : * const byte , pub ivSz : word32 , pub authTag : * mut byte , pub authTagSz : word32 , pub authIn : * const byte , pub authInSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoCb_AesAuthEnc"] [:: core :: mem :: size_of :: < wc_CryptoCb_AesAuthEnc > () - 96usize] ; ["Alignment of wc_CryptoCb_AesAuthEnc"] [:: core :: mem :: align_of :: < wc_CryptoCb_AesAuthEnc > () - 8usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::aes"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , aes) - 0usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::out"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , out) - 8usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::in_"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , in_) - 16usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::sz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , sz) - 24usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::nonce"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , nonce) - 32usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::nonceSz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , nonceSz) - 40usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::iv"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , iv) - 48usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::ivSz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , ivSz) - 56usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::authTag"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , authTag) - 64usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::authTagSz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , authTagSz) - 72usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::authIn"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , authIn) - 80usize] ; ["Offset of field: wc_CryptoCb_AesAuthEnc::authInSz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthEnc , authInSz) - 88usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoCb_AesAuthDec { pub aes : * mut Aes , pub out : * mut byte , pub in_ : * const byte , pub sz : word32 , pub nonce : * const byte , pub nonceSz : word32 , pub iv : * const byte , pub ivSz : word32 , pub authTag : * const byte , pub authTagSz : word32 , pub authIn : * const byte , pub authInSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoCb_AesAuthDec"] [:: core :: mem :: size_of :: < wc_CryptoCb_AesAuthDec > () - 96usize] ; ["Alignment of wc_CryptoCb_AesAuthDec"] [:: core :: mem :: align_of :: < wc_CryptoCb_AesAuthDec > () - 8usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::aes"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , aes) - 0usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::out"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , out) - 8usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::in_"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , in_) - 16usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::sz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , sz) - 24usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::nonce"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , nonce) - 32usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::nonceSz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , nonceSz) - 40usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::iv"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , iv) - 48usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::ivSz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , ivSz) - 56usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::authTag"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , authTag) - 64usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::authTagSz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , authTagSz) - 72usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::authIn"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , authIn) - 80usize] ; ["Offset of field: wc_CryptoCb_AesAuthDec::authInSz"] [:: core :: mem :: offset_of ! (wc_CryptoCb_AesAuthDec , authInSz) - 88usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct wc_CryptoInfo { pub algo_type : :: core :: ffi :: c_int , pub __bindgen_anon_1 : wc_CryptoInfo__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union wc_CryptoInfo__bindgen_ty_1 { pub pk : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1 , pub cipher : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2 , pub hash : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3 , pub hmac : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 , pub rng : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5 , pub seed : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6 , pub cert : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , pub kdf : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8 , } # [repr (C)] # [derive (Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1 { pub type_ : :: core :: ffi :: c_int , pub __bindgen_anon_1 : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { pub rsa : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , pub rsakg : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 , pub rsa_check : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 , pub rsa_get_size : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4 , pub eckg : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5 , pub ecdh : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6 , pub eccsign : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 , pub eccverify : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 , pub ecc_check : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9 , pub ecc_get_size : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10 , pub ecc_get_sig_size : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11 , pub pqc_kem_kg : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12 , pub pqc_encaps : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 , pub pqc_decaps : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 , pub pqc_sig_kg : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15 , pub pqc_sign : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , pub pqc_verify : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , pub pqc_sig_check : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { pub in_ : * const byte , pub inLen : word32 , pub out : * mut byte , pub outLen : * mut word32 , pub type_ : :: core :: ffi :: c_int , pub key : * mut RsaKey , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 > () - 56usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::in_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , in_) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::inLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , inLen) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::out"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , out) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::outLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , outLen) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , type_) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , key) - 40usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , rng) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 { pub key : * mut RsaKey , pub size : :: core :: ffi :: c_int , pub e : :: core :: ffi :: c_long , pub rng : * mut WC_RNG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 > () - 32usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 , key) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2::size"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 , size) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2::e"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 , e) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 , rng) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 { pub key : * mut RsaKey , pub pubKey : * const byte , pub pubKeySz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 , key) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3::pubKey"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 , pubKey) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3::pubKeySz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_3 , pubKeySz) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4 { pub key : * const RsaKey , pub keySize : * mut :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4 > () - 16usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4 , key) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4::keySize"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_4 , keySize) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5 { pub rng : * mut WC_RNG , pub size : :: core :: ffi :: c_int , pub key : * mut ecc_key , pub curveId : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5 > () - 32usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5 , rng) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5::size"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5 , size) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5 , key) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5::curveId"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_5 , curveId) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6 { pub private_key : * mut ecc_key , pub public_key : * mut ecc_key , pub out : * mut byte , pub outlen : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6 > () - 32usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6::private_key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6 , private_key) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6::public_key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6 , public_key) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6::out"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6 , out) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6::outlen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_6 , outlen) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 { pub in_ : * const byte , pub inlen : word32 , pub out : * mut byte , pub outlen : * mut word32 , pub rng : * mut WC_RNG , pub key : * mut ecc_key , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 > () - 48usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7::in_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 , in_) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7::inlen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 , inlen) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7::out"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 , out) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7::outlen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 , outlen) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 , rng) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_7 , key) - 40usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 { pub sig : * const byte , pub siglen : word32 , pub hash : * const byte , pub hashlen : word32 , pub res : * mut :: core :: ffi :: c_int , pub key : * mut ecc_key , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 > () - 48usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8::sig"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 , sig) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8::siglen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 , siglen) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8::hash"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 , hash) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8::hashlen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 , hashlen) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8::res"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 , res) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_8 , key) - 40usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9 { pub key : * mut ecc_key , pub pubKey : * const byte , pub pubKeySz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9 > () - 24usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9 , key) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9::pubKey"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9 , pubKey) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9::pubKeySz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_9 , pubKeySz) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10 { pub key : * const ecc_key , pub keySize : * mut :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10 > () - 16usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10 , key) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10::keySize"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_10 , keySize) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11 { pub key : * const ecc_key , pub sigSize : * mut :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11 > () - 16usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11 , key) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11::sigSize"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_11 , sigSize) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12 { pub rng : * mut WC_RNG , pub size : :: core :: ffi :: c_int , pub key : * mut :: core :: ffi :: c_void , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12 > () - 32usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12 , rng) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12::size"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12 , size) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12 , key) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_12 , type_) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 { pub ciphertext : * mut byte , pub ciphertextLen : word32 , pub sharedSecret : * mut byte , pub sharedSecretLen : word32 , pub rng : * mut WC_RNG , pub key : * mut :: core :: ffi :: c_void , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 > () - 56usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13::ciphertext"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 , ciphertext) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13::ciphertextLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 , ciphertextLen) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13::sharedSecret"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 , sharedSecret) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13::sharedSecretLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 , sharedSecretLen) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 , rng) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 , key) - 40usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_13 , type_) - 48usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 { pub ciphertext : * const byte , pub ciphertextLen : word32 , pub sharedSecret : * mut byte , pub sharedSecretLen : word32 , pub key : * mut :: core :: ffi :: c_void , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 > () - 48usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14::ciphertext"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 , ciphertext) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14::ciphertextLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 , ciphertextLen) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14::sharedSecret"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 , sharedSecret) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14::sharedSecretLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 , sharedSecretLen) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 , key) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_14 , type_) - 40usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15 { pub rng : * mut WC_RNG , pub size : :: core :: ffi :: c_int , pub key : * mut :: core :: ffi :: c_void , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15 > () - 32usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15 , rng) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15::size"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15 , size) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15 , key) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_15 , type_) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 { pub in_ : * const byte , pub inlen : word32 , pub out : * mut byte , pub outlen : * mut word32 , pub rng : * mut WC_RNG , pub key : * mut :: core :: ffi :: c_void , pub type_ : :: core :: ffi :: c_int , pub context : * const byte , pub contextLen : byte , pub preHashType : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 > () - 72usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::in_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , in_) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::inlen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , inlen) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::out"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , out) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::outlen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , outlen) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , rng) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , key) - 40usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , type_) - 48usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::context"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , context) - 56usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::contextLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , contextLen) - 64usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16::preHashType"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_16 , preHashType) - 68usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 { pub sig : * const byte , pub siglen : word32 , pub msg : * const byte , pub msglen : word32 , pub res : * mut :: core :: ffi :: c_int , pub key : * mut :: core :: ffi :: c_void , pub type_ : :: core :: ffi :: c_int , pub context : * const byte , pub contextLen : byte , pub preHashType : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 > () - 72usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::sig"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , sig) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::siglen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , siglen) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::msg"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , msg) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::msglen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , msglen) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::res"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , res) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , key) - 40usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , type_) - 48usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::context"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , context) - 56usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::contextLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , contextLen) - 64usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17::preHashType"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_17 , preHashType) - 68usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18 { pub key : * mut :: core :: ffi :: c_void , pub pubKey : * const byte , pub pubKeySz : word32 , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18 > () - 24usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18::key"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18 , key) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18::pubKey"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18 , pubKey) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18::pubKeySz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18 , pubKeySz) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_18 , type_) - 20usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 > () - 72usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::rsakg"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , rsakg) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::rsa_check"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , rsa_check) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::rsa_get_size"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , rsa_get_size) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::eckg"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , eckg) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::ecdh"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , ecdh) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::eccsign"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , eccsign) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::eccverify"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , eccverify) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::ecc_check"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , ecc_check) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::ecc_get_size"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , ecc_get_size) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::ecc_get_sig_size"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , ecc_get_sig_size) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::pqc_kem_kg"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , pqc_kem_kg) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::pqc_encaps"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , pqc_encaps) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::pqc_decaps"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , pqc_decaps) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::pqc_sig_kg"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , pqc_sig_kg) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::pqc_sign"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , pqc_sign) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::pqc_verify"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , pqc_verify) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1::pqc_sig_check"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 , pqc_sig_check) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1 > () - 80usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_1 , type_) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2 { pub type_ : :: core :: ffi :: c_int , pub enc : :: core :: ffi :: c_int , pub __bindgen_anon_1 : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 { pub aesgcm_enc : wc_CryptoCb_AesAuthEnc , pub aesgcm_dec : wc_CryptoCb_AesAuthDec , pub aescbc : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 , pub ctx : * mut :: core :: ffi :: c_void , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 { pub aes : * mut Aes , pub out : * mut byte , pub in_ : * const byte , pub sz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 > () - 32usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1::aes"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 , aes) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1::out"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 , out) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1::in_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 , in_) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1::sz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 , sz) - 24usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 > () - 96usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::aesgcm_enc"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 , aesgcm_enc) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::aesgcm_dec"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 , aesgcm_dec) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::aescbc"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 , aescbc) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1::ctx"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 , ctx) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2 > () - 104usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2 , type_) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2::enc"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_2 , enc) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3 { pub type_ : :: core :: ffi :: c_int , pub in_ : * const byte , pub inSz : word32 , pub digest : * mut byte , pub __bindgen_anon_1 : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 { pub sha1 : * mut wc_Sha , pub sha224 : * mut wc_Sha224 , pub sha256 : * mut wc_Sha256 , pub sha384 : * mut wc_Sha384 , pub sha512 : * mut wc_Sha512 , pub sha3 : * mut wc_Sha3 , pub ctx : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 > () - 8usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1::sha1"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 , sha1) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1::sha224"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 , sha224) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1::sha256"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 , sha256) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1::sha384"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 , sha384) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1::sha512"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 , sha512) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1::sha3"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 , sha3) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1::ctx"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 , ctx) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3 > () - 40usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3 , type_) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3::in_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3 , in_) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3::inSz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3 , inSz) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3::digest"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_3 , digest) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 { pub macType : :: core :: ffi :: c_int , pub in_ : * const byte , pub inSz : word32 , pub digest : * mut byte , pub hmac : * mut Hmac , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 > () - 40usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4::macType"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 , macType) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4::in_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 , in_) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4::inSz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 , inSz) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4::digest"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 , digest) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4::hmac"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_4 , hmac) - 32usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5 { pub rng : * mut WC_RNG , pub out : * mut byte , pub sz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5 > () - 24usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5 , rng) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5::out"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5 , out) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5::sz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_5 , sz) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6 { pub os : * mut OS_Seed , pub seed : * mut byte , pub sz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6 > () - 24usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6::os"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6 , os) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6::seed"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6 , seed) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6::sz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_6 , sz) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 { pub id : * const byte , pub idLen : word32 , pub label : * const :: core :: ffi :: c_char , pub labelLen : word32 , pub certDataOut : * mut * mut byte , pub certSz : * mut word32 , pub certFormatOut : * mut :: core :: ffi :: c_int , pub heap : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 > () - 64usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7::id"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , id) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7::idLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , idLen) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7::label"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , label) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7::labelLen"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , labelLen) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7::certDataOut"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , certDataOut) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7::certSz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , certSz) - 40usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7::certFormatOut"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , certFormatOut) - 48usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7::heap"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_7 , heap) - 56usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8 { pub type_ : :: core :: ffi :: c_int , pub __bindgen_anon_1 : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1 { pub hkdf : wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 { pub hashType : :: core :: ffi :: c_int , pub inKey : * const byte , pub inKeySz : word32 , pub salt : * const byte , pub saltSz : word32 , pub info : * const byte , pub infoSz : word32 , pub out : * mut byte , pub outSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 > () - 72usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::hashType"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , hashType) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::inKey"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , inKey) - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::inKeySz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , inKeySz) - 16usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::salt"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , salt) - 24usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::saltSz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , saltSz) - 32usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::info"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , info) - 40usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::infoSz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , infoSz) - 48usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::out"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , out) - 56usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1::outSz"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1__bindgen_ty_1 , outSz) - 64usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1 > () - 72usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1::hkdf"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8__bindgen_ty_1 , hkdf) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8 > () - 80usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8::type_"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1__bindgen_ty_8 , type_) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo__bindgen_ty_1"] [:: core :: mem :: size_of :: < wc_CryptoInfo__bindgen_ty_1 > () - 104usize] ; ["Alignment of wc_CryptoInfo__bindgen_ty_1"] [:: core :: mem :: align_of :: < wc_CryptoInfo__bindgen_ty_1 > () - 8usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1::pk"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1 , pk) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1::cipher"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1 , cipher) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1::hash"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1 , hash) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1::hmac"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1 , hmac) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1::rng"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1 , rng) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1::seed"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1 , seed) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1::cert"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1 , cert) - 0usize] ; ["Offset of field: wc_CryptoInfo__bindgen_ty_1::kdf"] [:: core :: mem :: offset_of ! (wc_CryptoInfo__bindgen_ty_1 , kdf) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_CryptoInfo"] [:: core :: mem :: size_of :: < wc_CryptoInfo > () - 112usize] ; ["Alignment of wc_CryptoInfo"] [:: core :: mem :: align_of :: < wc_CryptoInfo > () - 8usize] ; ["Offset of field: wc_CryptoInfo::algo_type"] [:: core :: mem :: offset_of ! (wc_CryptoInfo , algo_type) - 0usize] ; } ; pub type CryptoDevCallbackFunc = :: core :: option :: Option < unsafe extern "C" fn (devId : :: core :: ffi :: c_int , info : * mut wc_CryptoInfo , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wc_CryptoCb_Init () ; } unsafe extern "C" { pub fn wc_CryptoCb_Cleanup () ; } unsafe extern "C" { pub fn wc_CryptoCb_GetDevIdAtIndex (startIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_RegisterDevice (devId : :: core :: ffi :: c_int , cb : CryptoDevCallbackFunc , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_UnRegisterDevice (devId : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wc_CryptoCb_DefaultDevID () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Rsa (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , type_ : :: core :: ffi :: c_int , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_MakeRsaKey (key : * mut RsaKey , size : :: core :: ffi :: c_int , e : :: core :: ffi :: c_long , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_RsaCheckPrivKey (key : * mut RsaKey , pubKey : * const byte , pubKeySz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_RsaGetSize (key : * const RsaKey , keySize : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_MakeEccKey (rng : * mut WC_RNG , keySize : :: core :: ffi :: c_int , key : * mut ecc_key , curveId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Ecdh (private_key : * mut ecc_key , public_key : * mut ecc_key , out : * mut byte , outlen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_EccSign (in_ : * const byte , inlen : word32 , out : * mut byte , outlen : * mut word32 , rng : * mut WC_RNG , key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_EccVerify (sig : * const byte , siglen : word32 , hash : * const byte , hashlen : word32 , res : * mut :: core :: ffi :: c_int , key : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_EccCheckPrivKey (key : * mut ecc_key , pubKey : * const byte , pubKeySz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_EccGetSize (key : * const ecc_key , keySize : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_EccGetSigSize (key : * const ecc_key , sigSize : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_PqcKemGetDevId (type_ : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_MakePqcKemKey (rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , keySize : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_PqcEncapsulate (ciphertext : * mut byte , ciphertextLen : word32 , sharedSecret : * mut byte , sharedSecretLen : word32 , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_PqcDecapsulate (ciphertext : * const byte , ciphertextLen : word32 , sharedSecret : * mut byte , sharedSecretLen : word32 , type_ : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_PqcSigGetDevId (type_ : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_MakePqcSignatureKey (rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , keySize : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_PqcSign (in_ : * const byte , inlen : word32 , out : * mut byte , outlen : * mut word32 , context : * const byte , contextLen : byte , preHashType : word32 , rng : * mut WC_RNG , type_ : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_PqcVerify (sig : * const byte , siglen : word32 , msg : * const byte , msglen : word32 , context : * const byte , contextLen : byte , preHashType : word32 , res : * mut :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_PqcSignatureCheckPrivKey (key : * mut :: core :: ffi :: c_void , type_ : :: core :: ffi :: c_int , pubKey : * const byte , pubKeySz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_AesGcmEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_AesGcmDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * const byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_AesCbcEncrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_AesCbcDecrypt (aes : * mut Aes , out : * mut byte , in_ : * const byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_ShaHash (sha : * mut wc_Sha , in_ : * const byte , inSz : word32 , digest : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Sha224Hash (sha224 : * mut wc_Sha224 , in_ : * const byte , inSz : word32 , digest : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Sha256Hash (sha256 : * mut wc_Sha256 , in_ : * const byte , inSz : word32 , digest : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Sha384Hash (sha384 : * mut wc_Sha384 , in_ : * const byte , inSz : word32 , digest : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Sha512Hash (sha512 : * mut wc_Sha512 , in_ : * const byte , inSz : word32 , digest : * mut byte , digestSz : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Sha3Hash (sha3 : * mut wc_Sha3 , type_ : :: core :: ffi :: c_int , in_ : * const byte , inSz : word32 , digest : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Hmac (hmac : * mut Hmac , macType : :: core :: ffi :: c_int , in_ : * const byte , inSz : word32 , digest : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_Hkdf (hashType : :: core :: ffi :: c_int , inKey : * const byte , inKeySz : word32 , salt : * const byte , saltSz : word32 , info : * const byte , infoSz : word32 , out : * mut byte , outSz : word32 , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_RandomBlock (rng : * mut WC_RNG , out : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_RandomSeed (os : * mut OS_Seed , seed : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CryptoCb_GetCert (devId : :: core :: ffi :: c_int , label : * const :: core :: ffi :: c_char , labelLen : word32 , id : * const byte , idLen : word32 , out : * mut * mut byte , outSz : * mut word32 , format : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wc_dilithium_params { pub level : byte , pub k : byte , pub l : byte , pub eta : byte , pub eta_bits : byte , pub tau : byte , pub beta : byte , pub omega : byte , pub lambda : word16 , pub gamma1_bits : byte , pub gamma2 : sword32 , pub w1EncSz : word32 , pub aSz : word16 , pub s1Sz : word16 , pub s1EncSz : word16 , pub s2Sz : word16 , pub s2EncSz : word16 , pub zEncSz : word16 , pub pkSz : word16 , pub sigSz : word16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wc_dilithium_params"] [:: core :: mem :: size_of :: < wc_dilithium_params > () - 36usize] ; ["Alignment of wc_dilithium_params"] [:: core :: mem :: align_of :: < wc_dilithium_params > () - 4usize] ; ["Offset of field: wc_dilithium_params::level"] [:: core :: mem :: offset_of ! (wc_dilithium_params , level) - 0usize] ; ["Offset of field: wc_dilithium_params::k"] [:: core :: mem :: offset_of ! (wc_dilithium_params , k) - 1usize] ; ["Offset of field: wc_dilithium_params::l"] [:: core :: mem :: offset_of ! (wc_dilithium_params , l) - 2usize] ; ["Offset of field: wc_dilithium_params::eta"] [:: core :: mem :: offset_of ! (wc_dilithium_params , eta) - 3usize] ; ["Offset of field: wc_dilithium_params::eta_bits"] [:: core :: mem :: offset_of ! (wc_dilithium_params , eta_bits) - 4usize] ; ["Offset of field: wc_dilithium_params::tau"] [:: core :: mem :: offset_of ! (wc_dilithium_params , tau) - 5usize] ; ["Offset of field: wc_dilithium_params::beta"] [:: core :: mem :: offset_of ! (wc_dilithium_params , beta) - 6usize] ; ["Offset of field: wc_dilithium_params::omega"] [:: core :: mem :: offset_of ! (wc_dilithium_params , omega) - 7usize] ; ["Offset of field: wc_dilithium_params::lambda"] [:: core :: mem :: offset_of ! (wc_dilithium_params , lambda) - 8usize] ; ["Offset of field: wc_dilithium_params::gamma1_bits"] [:: core :: mem :: offset_of ! (wc_dilithium_params , gamma1_bits) - 10usize] ; ["Offset of field: wc_dilithium_params::gamma2"] [:: core :: mem :: offset_of ! (wc_dilithium_params , gamma2) - 12usize] ; ["Offset of field: wc_dilithium_params::w1EncSz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , w1EncSz) - 16usize] ; ["Offset of field: wc_dilithium_params::aSz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , aSz) - 20usize] ; ["Offset of field: wc_dilithium_params::s1Sz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , s1Sz) - 22usize] ; ["Offset of field: wc_dilithium_params::s1EncSz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , s1EncSz) - 24usize] ; ["Offset of field: wc_dilithium_params::s2Sz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , s2Sz) - 26usize] ; ["Offset of field: wc_dilithium_params::s2EncSz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , s2EncSz) - 28usize] ; ["Offset of field: wc_dilithium_params::zEncSz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , zEncSz) - 30usize] ; ["Offset of field: wc_dilithium_params::pkSz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , pkSz) - 32usize] ; ["Offset of field: wc_dilithium_params::sigSz"] [:: core :: mem :: offset_of ! (wc_dilithium_params , sigSz) - 34usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dilithium_key { pub pubKeySet : byte , pub prvKeySet : byte , pub level : byte , pub heap : * mut :: core :: ffi :: c_void , pub devCtx : * mut :: core :: ffi :: c_void , pub devId : :: core :: ffi :: c_int , pub id : [byte ; 32usize] , pub idLen : :: core :: ffi :: c_int , pub label : [:: core :: ffi :: c_char ; 32usize] , pub labelLen : :: core :: ffi :: c_int , pub p : [byte ; 2592usize] , pub k : [byte ; 4896usize] , pub params : * const wc_dilithium_params , pub shake : wc_Shake , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of dilithium_key"] [:: core :: mem :: size_of :: < dilithium_key > () - 8040usize] ; ["Alignment of dilithium_key"] [:: core :: mem :: align_of :: < dilithium_key > () - 8usize] ; ["Offset of field: dilithium_key::pubKeySet"] [:: core :: mem :: offset_of ! (dilithium_key , pubKeySet) - 0usize] ; ["Offset of field: dilithium_key::prvKeySet"] [:: core :: mem :: offset_of ! (dilithium_key , prvKeySet) - 1usize] ; ["Offset of field: dilithium_key::level"] [:: core :: mem :: offset_of ! (dilithium_key , level) - 2usize] ; ["Offset of field: dilithium_key::heap"] [:: core :: mem :: offset_of ! (dilithium_key , heap) - 8usize] ; ["Offset of field: dilithium_key::devCtx"] [:: core :: mem :: offset_of ! (dilithium_key , devCtx) - 16usize] ; ["Offset of field: dilithium_key::devId"] [:: core :: mem :: offset_of ! (dilithium_key , devId) - 24usize] ; ["Offset of field: dilithium_key::id"] [:: core :: mem :: offset_of ! (dilithium_key , id) - 28usize] ; ["Offset of field: dilithium_key::idLen"] [:: core :: mem :: offset_of ! (dilithium_key , idLen) - 60usize] ; ["Offset of field: dilithium_key::label"] [:: core :: mem :: offset_of ! (dilithium_key , label) - 64usize] ; ["Offset of field: dilithium_key::labelLen"] [:: core :: mem :: offset_of ! (dilithium_key , labelLen) - 96usize] ; ["Offset of field: dilithium_key::p"] [:: core :: mem :: offset_of ! (dilithium_key , p) - 100usize] ; ["Offset of field: dilithium_key::k"] [:: core :: mem :: offset_of ! (dilithium_key , k) - 2692usize] ; ["Offset of field: dilithium_key::params"] [:: core :: mem :: offset_of ! (dilithium_key , params) - 7592usize] ; ["Offset of field: dilithium_key::shake"] [:: core :: mem :: offset_of ! (dilithium_key , shake) - 7600usize] ; } ; unsafe extern "C" { pub fn wc_dilithium_make_key (key : * mut dilithium_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_make_key_from_seed (key : * mut dilithium_key , seed : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_sign_ctx_msg (ctx : * const byte , ctxLen : byte , msg : * const byte , msgLen : word32 , sig : * mut byte , sigLen : * mut word32 , key : * mut dilithium_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_sign_ctx_hash (ctx : * const byte , ctxLen : byte , hashAlg : :: core :: ffi :: c_int , hash : * const byte , hashLen : word32 , sig : * mut byte , sigLen : * mut word32 , key : * mut dilithium_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_sign_ctx_msg_with_seed (ctx : * const byte , ctxLen : byte , msg : * const byte , msgLen : word32 , sig : * mut byte , sigLen : * mut word32 , key : * mut dilithium_key , seed : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_sign_ctx_hash_with_seed (ctx : * const byte , ctxLen : byte , hashAlg : :: core :: ffi :: c_int , hash : * const byte , hashLen : word32 , sig : * mut byte , sigLen : * mut word32 , key : * mut dilithium_key , seed : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_sign_mu_with_seed (mu : * const byte , muLen : word32 , sig : * mut byte , sigLen : * mut word32 , key : * mut dilithium_key , seed : * const byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_verify_ctx_msg (sig : * const byte , sigLen : word32 , ctx : * const byte , ctxLen : byte , msg : * const byte , msgLen : word32 , res : * mut :: core :: ffi :: c_int , key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_verify_ctx_hash (sig : * const byte , sigLen : word32 , ctx : * const byte , ctxLen : byte , hashAlg : :: core :: ffi :: c_int , hash : * const byte , hashLen : word32 , res : * mut :: core :: ffi :: c_int , key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_verify_mu (sig : * const byte , sigLen : word32 , mu : * const byte , muLen : word32 , res : * mut :: core :: ffi :: c_int , key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_new (heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> * mut dilithium_key ; } unsafe extern "C" { pub fn wc_dilithium_delete (key : * mut dilithium_key , key_p : * mut * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_init (key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_init_ex (key : * mut dilithium_key , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_init_id (key : * mut dilithium_key , id : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_init_label (key : * mut dilithium_key , label : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_set_level (key : * mut dilithium_key , level : byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_get_level (key : * mut dilithium_key , level : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_free (key : * mut dilithium_key) ; } unsafe extern "C" { pub fn wc_dilithium_size (key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_priv_size (key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_pub_size (key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_sig_size (key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_check_key (key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_import_public (in_ : * const byte , inLen : word32 , key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_import_private (priv_ : * const byte , privSz : word32 , key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_import_key (priv_ : * const byte , privSz : word32 , pub_ : * const byte , pubSz : word32 , key : * mut dilithium_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_export_public (key : * mut dilithium_key , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_export_private (key : * mut dilithium_key , out : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_export_key (key : * mut dilithium_key , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn dilithium_get_oid_sum (key : * mut dilithium_key , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Dilithium_PrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut dilithium_key , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Dilithium_PublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut dilithium_key , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Dilithium_PublicKeyToDer (key : * mut dilithium_key , output : * mut byte , inLen : word32 , withAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Dilithium_KeyToDer (key : * mut dilithium_key , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Dilithium_PrivateKeyToDer (key : * mut dilithium_key , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlDsaKey_GetPrivLen (key : * mut dilithium_key , len : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlDsaKey_GetPubLen (key : * mut dilithium_key , len : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MlDsaKey_GetSigLen (key : * mut dilithium_key , len : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_dilithium_encode_w1_88 (w1 : * const sword32 , w1e : * mut byte) ; } unsafe extern "C" { pub fn wc_dilithium_encode_w1_32 (w1 : * const sword32 , w1e : * mut byte) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve25519_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ed448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct curve448_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct falcon_key { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SlhDsaKey { _unused : [u8 ; 0] , } pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS12 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_VER_PKCS5 : EncPkcs8Types = 5 ; pub const EncPkcs8Types_ENC_PKCS8_PBES2 : EncPkcs8Types = 13 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_RC4_128 : EncPkcs8Types = 1 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES : EncPkcs8Types = 2 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_DES3 : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBE_SHA1_40RC2_CBC : EncPkcs8Types = 6 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_MD5_DES : EncPkcs8Types = 3 ; pub const EncPkcs8Types_ENC_PKCS8_PBES1_SHA1_DES : EncPkcs8Types = 10 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES128CBC : EncPkcs8Types = 414 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_AES256CBC : EncPkcs8Types = 454 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES : EncPkcs8Types = 69 ; pub const EncPkcs8Types_ENC_PKCS8_ALG_DES3 : EncPkcs8Types = 652 ; pub type EncPkcs8Types = :: core :: ffi :: c_uint ; pub const CertType_CERT_TYPE : CertType = 0 ; pub const CertType_PRIVATEKEY_TYPE : CertType = 1 ; pub const CertType_ALT_PRIVATEKEY_TYPE : CertType = 2 ; pub const CertType_DH_PARAM_TYPE : CertType = 3 ; pub const CertType_DSA_PARAM_TYPE : CertType = 4 ; pub const CertType_CRL_TYPE : CertType = 5 ; pub const CertType_CA_TYPE : CertType = 6 ; pub const CertType_ECC_PRIVATEKEY_TYPE : CertType = 7 ; pub const CertType_DSA_PRIVATEKEY_TYPE : CertType = 8 ; pub const CertType_ACERT_TYPE : CertType = 9 ; pub const CertType_CERTREQ_TYPE : CertType = 10 ; pub const CertType_DSA_TYPE : CertType = 11 ; pub const CertType_ECC_TYPE : CertType = 12 ; pub const CertType_RSA_TYPE : CertType = 13 ; pub const CertType_PUBLICKEY_TYPE : CertType = 14 ; pub const CertType_RSA_PUBLICKEY_TYPE : CertType = 15 ; pub const CertType_ECC_PUBLICKEY_TYPE : CertType = 16 ; pub const CertType_TRUSTED_PEER_TYPE : CertType = 17 ; pub const CertType_EDDSA_PRIVATEKEY_TYPE : CertType = 18 ; pub const CertType_ED25519_TYPE : CertType = 19 ; pub const CertType_ED448_TYPE : CertType = 20 ; pub const CertType_PKCS12_TYPE : CertType = 21 ; pub const CertType_PKCS8_PRIVATEKEY_TYPE : CertType = 22 ; pub const CertType_PKCS8_ENC_PRIVATEKEY_TYPE : CertType = 23 ; pub const CertType_DETECT_CERT_TYPE : CertType = 24 ; pub const CertType_DH_PRIVATEKEY_TYPE : CertType = 25 ; pub const CertType_X942_PARAM_TYPE : CertType = 26 ; pub const CertType_FALCON_LEVEL1_TYPE : CertType = 27 ; pub const CertType_FALCON_LEVEL5_TYPE : CertType = 28 ; pub const CertType_DILITHIUM_LEVEL2_TYPE : CertType = 29 ; pub const CertType_DILITHIUM_LEVEL3_TYPE : CertType = 30 ; pub const CertType_DILITHIUM_LEVEL5_TYPE : CertType = 31 ; pub const CertType_ML_DSA_LEVEL2_TYPE : CertType = 32 ; pub const CertType_ML_DSA_LEVEL3_TYPE : CertType = 33 ; pub const CertType_ML_DSA_LEVEL5_TYPE : CertType = 34 ; pub const CertType_SLH_DSA_SHA2_128S_TYPE : CertType = 35 ; pub const CertType_SLH_DSA_SHA2_128F_TYPE : CertType = 36 ; pub const CertType_SLH_DSA_SHA2_192S_TYPE : CertType = 37 ; pub const CertType_SLH_DSA_SHA2_192F_TYPE : CertType = 38 ; pub const CertType_SLH_DSA_SHA2_256S_TYPE : CertType = 39 ; pub const CertType_SLH_DSA_SHA2_256F_TYPE : CertType = 40 ; pub const CertType_SLH_DSA_SHAKE_128S_TYPE : CertType = 41 ; pub const CertType_SLH_DSA_SHAKE_128F_TYPE : CertType = 42 ; pub const CertType_SLH_DSA_SHAKE_192S_TYPE : CertType = 43 ; pub const CertType_SLH_DSA_SHAKE_192F_TYPE : CertType = 44 ; pub const CertType_SLH_DSA_SHAKE_256S_TYPE : CertType = 45 ; pub const CertType_SLH_DSA_SHAKE_256F_TYPE : CertType = 46 ; pub const CertType_ECC_PARAM_TYPE : CertType = 47 ; pub const CertType_CHAIN_CERT_TYPE : CertType = 48 ; pub const CertType_PKCS7_TYPE : CertType = 49 ; pub const CertType_TRUSTED_CERT_TYPE : CertType = 50 ; pub type CertType = :: core :: ffi :: c_uint ; pub const Ctc_Encoding_CTC_UTF8 : Ctc_Encoding = 12 ; pub const Ctc_Encoding_CTC_PRINTABLE : Ctc_Encoding = 19 ; pub type Ctc_Encoding = :: core :: ffi :: c_uint ; pub const Ctc_Misc_CTC_COUNTRY_SIZE : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_NAME_SIZE : Ctc_Misc = 64 ; pub const Ctc_Misc_CTC_DATE_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_ALT_SIZE : Ctc_Misc = 16384 ; pub const Ctc_Misc_CTC_SERIAL_SIZE : Ctc_Misc = 20 ; pub const Ctc_Misc_CTC_GEN_SERIAL_SZ : Ctc_Misc = 16 ; pub const Ctc_Misc_CTC_FILETYPE_ASN1 : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_FILETYPE_PEM : Ctc_Misc = 1 ; pub const Ctc_Misc_CTC_FILETYPE_DEFAULT : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_MAX_SKID_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_AKID_SIZE : Ctc_Misc = 32 ; pub const Ctc_Misc_CTC_MAX_CERTPOL_SZ : Ctc_Misc = 200 ; pub const Ctc_Misc_CTC_MAX_CERTPOL_NB : Ctc_Misc = 2 ; pub const Ctc_Misc_CTC_MAX_CRLINFO_SZ : Ctc_Misc = 200 ; pub type Ctc_Misc = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DerBuffer { pub buffer : * mut byte , pub heap : * mut :: core :: ffi :: c_void , pub length : word32 , pub type_ : :: core :: ffi :: c_int , pub dynType : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DerBuffer"] [:: core :: mem :: size_of :: < DerBuffer > () - 32usize] ; ["Alignment of DerBuffer"] [:: core :: mem :: align_of :: < DerBuffer > () - 8usize] ; ["Offset of field: DerBuffer::buffer"] [:: core :: mem :: offset_of ! (DerBuffer , buffer) - 0usize] ; ["Offset of field: DerBuffer::heap"] [:: core :: mem :: offset_of ! (DerBuffer , heap) - 8usize] ; ["Offset of field: DerBuffer::length"] [:: core :: mem :: offset_of ! (DerBuffer , length) - 16usize] ; ["Offset of field: DerBuffer::type_"] [:: core :: mem :: offset_of ! (DerBuffer , type_) - 20usize] ; ["Offset of field: DerBuffer::dynType"] [:: core :: mem :: offset_of ! (DerBuffer , dynType) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_TIME { pub data : [:: core :: ffi :: c_uchar ; 32usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TIME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TIME > () - 40usize] ; ["Alignment of WOLFSSL_ASN1_TIME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TIME > () - 4usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , data) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , length) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_TIME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TIME , type_) - 36usize] ; } ; pub const IV_SZ : _bindgen_ty_29 = 32 ; pub const NAME_SZ : _bindgen_ty_29 = 80 ; pub const PEM_PASS_READ : _bindgen_ty_29 = 0 ; pub const PEM_PASS_WRITE : _bindgen_ty_29 = 1 ; pub type _bindgen_ty_29 = :: core :: ffi :: c_uint ; pub type wc_pem_password_cb = :: core :: option :: Option < unsafe extern "C" fn (passwd : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rw : :: core :: ffi :: c_int , userdata : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; pub type wc_SignCertCb = :: core :: option :: Option < unsafe extern "C" fn (in_ : * const byte , inLen : word32 , out : * mut byte , outLen : * mut word32 , sigAlgo : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptedInfo { pub consumed : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptedInfo"] [:: core :: mem :: size_of :: < EncryptedInfo > () - 8usize] ; ["Alignment of EncryptedInfo"] [:: core :: mem :: align_of :: < EncryptedInfo > () - 8usize] ; ["Offset of field: EncryptedInfo::consumed"] [:: core :: mem :: offset_of ! (EncryptedInfo , consumed) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_INTEGER { pub intData : [:: core :: ffi :: c_uchar ; 20usize] , pub negative : :: core :: ffi :: c_uchar , pub data : * mut :: core :: ffi :: c_uchar , pub dataMax : :: core :: ffi :: c_uint , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_INTEGER > () - 48usize] ; ["Alignment of WOLFSSL_ASN1_INTEGER"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_INTEGER > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::intData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , intData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::negative"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , negative) - 20usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , data) - 24usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::dataMax"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , dataMax) - 32usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , length) - 40usize] ; ["Offset of field: WOLFSSL_ASN1_INTEGER::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_INTEGER , type_) - 44usize] ; } ; impl WOLFSSL_ASN1_INTEGER { # [inline] pub fn isDynamic (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isDynamic (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn isDynamic_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_isDynamic_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (isDynamic : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u8 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NameAttrib { pub sz : :: core :: ffi :: c_int , pub id : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub value : [:: core :: ffi :: c_char ; 64usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NameAttrib"] [:: core :: mem :: size_of :: < NameAttrib > () - 76usize] ; ["Alignment of NameAttrib"] [:: core :: mem :: align_of :: < NameAttrib > () - 4usize] ; ["Offset of field: NameAttrib::sz"] [:: core :: mem :: offset_of ! (NameAttrib , sz) - 0usize] ; ["Offset of field: NameAttrib::id"] [:: core :: mem :: offset_of ! (NameAttrib , id) - 4usize] ; ["Offset of field: NameAttrib::type_"] [:: core :: mem :: offset_of ! (NameAttrib , type_) - 8usize] ; ["Offset of field: NameAttrib::value"] [:: core :: mem :: offset_of ! (NameAttrib , value) - 12usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertName { pub country : [:: core :: ffi :: c_char ; 64usize] , pub countryEnc : :: core :: ffi :: c_char , pub state : [:: core :: ffi :: c_char ; 64usize] , pub stateEnc : :: core :: ffi :: c_char , pub street : [:: core :: ffi :: c_char ; 64usize] , pub streetEnc : :: core :: ffi :: c_char , pub locality : [:: core :: ffi :: c_char ; 64usize] , pub localityEnc : :: core :: ffi :: c_char , pub sur : [:: core :: ffi :: c_char ; 64usize] , pub surEnc : :: core :: ffi :: c_char , pub org : [:: core :: ffi :: c_char ; 64usize] , pub orgEnc : :: core :: ffi :: c_char , pub unit : [:: core :: ffi :: c_char ; 64usize] , pub unitEnc : :: core :: ffi :: c_char , pub commonName : [:: core :: ffi :: c_char ; 64usize] , pub commonNameEnc : :: core :: ffi :: c_char , pub serialDev : [:: core :: ffi :: c_char ; 64usize] , pub serialDevEnc : :: core :: ffi :: c_char , pub userId : [:: core :: ffi :: c_char ; 64usize] , pub userIdEnc : :: core :: ffi :: c_char , pub postalCode : [:: core :: ffi :: c_char ; 64usize] , pub postalCodeEnc : :: core :: ffi :: c_char , pub busCat : [:: core :: ffi :: c_char ; 64usize] , pub busCatEnc : :: core :: ffi :: c_char , pub joiC : [:: core :: ffi :: c_char ; 64usize] , pub joiCEnc : :: core :: ffi :: c_char , pub joiSt : [:: core :: ffi :: c_char ; 64usize] , pub joiStEnc : :: core :: ffi :: c_char , pub email : [:: core :: ffi :: c_char ; 64usize] , pub name : [NameAttrib ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertName"] [:: core :: mem :: size_of :: < CertName > () - 1280usize] ; ["Alignment of CertName"] [:: core :: mem :: align_of :: < CertName > () - 4usize] ; ["Offset of field: CertName::country"] [:: core :: mem :: offset_of ! (CertName , country) - 0usize] ; ["Offset of field: CertName::countryEnc"] [:: core :: mem :: offset_of ! (CertName , countryEnc) - 64usize] ; ["Offset of field: CertName::state"] [:: core :: mem :: offset_of ! (CertName , state) - 65usize] ; ["Offset of field: CertName::stateEnc"] [:: core :: mem :: offset_of ! (CertName , stateEnc) - 129usize] ; ["Offset of field: CertName::street"] [:: core :: mem :: offset_of ! (CertName , street) - 130usize] ; ["Offset of field: CertName::streetEnc"] [:: core :: mem :: offset_of ! (CertName , streetEnc) - 194usize] ; ["Offset of field: CertName::locality"] [:: core :: mem :: offset_of ! (CertName , locality) - 195usize] ; ["Offset of field: CertName::localityEnc"] [:: core :: mem :: offset_of ! (CertName , localityEnc) - 259usize] ; ["Offset of field: CertName::sur"] [:: core :: mem :: offset_of ! (CertName , sur) - 260usize] ; ["Offset of field: CertName::surEnc"] [:: core :: mem :: offset_of ! (CertName , surEnc) - 324usize] ; ["Offset of field: CertName::org"] [:: core :: mem :: offset_of ! (CertName , org) - 325usize] ; ["Offset of field: CertName::orgEnc"] [:: core :: mem :: offset_of ! (CertName , orgEnc) - 389usize] ; ["Offset of field: CertName::unit"] [:: core :: mem :: offset_of ! (CertName , unit) - 390usize] ; ["Offset of field: CertName::unitEnc"] [:: core :: mem :: offset_of ! (CertName , unitEnc) - 454usize] ; ["Offset of field: CertName::commonName"] [:: core :: mem :: offset_of ! (CertName , commonName) - 455usize] ; ["Offset of field: CertName::commonNameEnc"] [:: core :: mem :: offset_of ! (CertName , commonNameEnc) - 519usize] ; ["Offset of field: CertName::serialDev"] [:: core :: mem :: offset_of ! (CertName , serialDev) - 520usize] ; ["Offset of field: CertName::serialDevEnc"] [:: core :: mem :: offset_of ! (CertName , serialDevEnc) - 584usize] ; ["Offset of field: CertName::userId"] [:: core :: mem :: offset_of ! (CertName , userId) - 585usize] ; ["Offset of field: CertName::userIdEnc"] [:: core :: mem :: offset_of ! (CertName , userIdEnc) - 649usize] ; ["Offset of field: CertName::postalCode"] [:: core :: mem :: offset_of ! (CertName , postalCode) - 650usize] ; ["Offset of field: CertName::postalCodeEnc"] [:: core :: mem :: offset_of ! (CertName , postalCodeEnc) - 714usize] ; ["Offset of field: CertName::busCat"] [:: core :: mem :: offset_of ! (CertName , busCat) - 715usize] ; ["Offset of field: CertName::busCatEnc"] [:: core :: mem :: offset_of ! (CertName , busCatEnc) - 779usize] ; ["Offset of field: CertName::joiC"] [:: core :: mem :: offset_of ! (CertName , joiC) - 780usize] ; ["Offset of field: CertName::joiCEnc"] [:: core :: mem :: offset_of ! (CertName , joiCEnc) - 844usize] ; ["Offset of field: CertName::joiSt"] [:: core :: mem :: offset_of ! (CertName , joiSt) - 845usize] ; ["Offset of field: CertName::joiStEnc"] [:: core :: mem :: offset_of ! (CertName , joiStEnc) - 909usize] ; ["Offset of field: CertName::email"] [:: core :: mem :: offset_of ! (CertName , email) - 910usize] ; ["Offset of field: CertName::name"] [:: core :: mem :: offset_of ! (CertName , name) - 976usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Cert { pub version : :: core :: ffi :: c_int , pub serial : [byte ; 20usize] , pub serialSz : :: core :: ffi :: c_int , pub sigType : :: core :: ffi :: c_int , pub issuer : CertName , pub subject : CertName , pub daysValid : :: core :: ffi :: c_int , pub selfSigned : :: core :: ffi :: c_int , pub isCA : :: core :: ffi :: c_int , pub pathLen : byte , pub bodySz : :: core :: ffi :: c_int , pub keyType : :: core :: ffi :: c_int , pub beforeDate : [byte ; 32usize] , pub beforeDateSz : :: core :: ffi :: c_int , pub afterDate : [byte ; 32usize] , pub afterDateSz : :: core :: ffi :: c_int , pub skid : [byte ; 32usize] , pub skidSz : :: core :: ffi :: c_int , pub akid : [byte ; 32usize] , pub akidSz : :: core :: ffi :: c_int , pub keyUsage : word16 , pub extKeyUsage : byte , pub nsCertType : byte , pub certPolicies : [[:: core :: ffi :: c_char ; 200usize] ; 2usize] , pub certPoliciesNb : word16 , pub crlInfo : [byte ; 200usize] , pub crlInfoSz : :: core :: ffi :: c_int , pub issRaw : [byte ; 1280usize] , pub sbjRaw : [byte ; 1280usize] , pub challengePw : [:: core :: ffi :: c_char ; 64usize] , pub unstructuredName : [:: core :: ffi :: c_char ; 64usize] , pub challengePwPrintableString : :: core :: ffi :: c_int , pub decodedCert : * mut :: core :: ffi :: c_void , pub der : * const byte , pub heap : * mut :: core :: ffi :: c_void , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub basicConstCrit : byte , pub _bitfield_align_2 : [u8 ; 0] , pub _bitfield_2 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 5usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Cert"] [:: core :: mem :: size_of :: < Cert > () - 6096usize] ; ["Alignment of Cert"] [:: core :: mem :: align_of :: < Cert > () - 8usize] ; ["Offset of field: Cert::version"] [:: core :: mem :: offset_of ! (Cert , version) - 0usize] ; ["Offset of field: Cert::serial"] [:: core :: mem :: offset_of ! (Cert , serial) - 4usize] ; ["Offset of field: Cert::serialSz"] [:: core :: mem :: offset_of ! (Cert , serialSz) - 24usize] ; ["Offset of field: Cert::sigType"] [:: core :: mem :: offset_of ! (Cert , sigType) - 28usize] ; ["Offset of field: Cert::issuer"] [:: core :: mem :: offset_of ! (Cert , issuer) - 32usize] ; ["Offset of field: Cert::subject"] [:: core :: mem :: offset_of ! (Cert , subject) - 1312usize] ; ["Offset of field: Cert::daysValid"] [:: core :: mem :: offset_of ! (Cert , daysValid) - 2592usize] ; ["Offset of field: Cert::selfSigned"] [:: core :: mem :: offset_of ! (Cert , selfSigned) - 2596usize] ; ["Offset of field: Cert::isCA"] [:: core :: mem :: offset_of ! (Cert , isCA) - 2600usize] ; ["Offset of field: Cert::pathLen"] [:: core :: mem :: offset_of ! (Cert , pathLen) - 2604usize] ; ["Offset of field: Cert::bodySz"] [:: core :: mem :: offset_of ! (Cert , bodySz) - 2608usize] ; ["Offset of field: Cert::keyType"] [:: core :: mem :: offset_of ! (Cert , keyType) - 2612usize] ; ["Offset of field: Cert::beforeDate"] [:: core :: mem :: offset_of ! (Cert , beforeDate) - 2616usize] ; ["Offset of field: Cert::beforeDateSz"] [:: core :: mem :: offset_of ! (Cert , beforeDateSz) - 2648usize] ; ["Offset of field: Cert::afterDate"] [:: core :: mem :: offset_of ! (Cert , afterDate) - 2652usize] ; ["Offset of field: Cert::afterDateSz"] [:: core :: mem :: offset_of ! (Cert , afterDateSz) - 2684usize] ; ["Offset of field: Cert::skid"] [:: core :: mem :: offset_of ! (Cert , skid) - 2688usize] ; ["Offset of field: Cert::skidSz"] [:: core :: mem :: offset_of ! (Cert , skidSz) - 2720usize] ; ["Offset of field: Cert::akid"] [:: core :: mem :: offset_of ! (Cert , akid) - 2724usize] ; ["Offset of field: Cert::akidSz"] [:: core :: mem :: offset_of ! (Cert , akidSz) - 2756usize] ; ["Offset of field: Cert::keyUsage"] [:: core :: mem :: offset_of ! (Cert , keyUsage) - 2760usize] ; ["Offset of field: Cert::extKeyUsage"] [:: core :: mem :: offset_of ! (Cert , extKeyUsage) - 2762usize] ; ["Offset of field: Cert::nsCertType"] [:: core :: mem :: offset_of ! (Cert , nsCertType) - 2763usize] ; ["Offset of field: Cert::certPolicies"] [:: core :: mem :: offset_of ! (Cert , certPolicies) - 2764usize] ; ["Offset of field: Cert::certPoliciesNb"] [:: core :: mem :: offset_of ! (Cert , certPoliciesNb) - 3164usize] ; ["Offset of field: Cert::crlInfo"] [:: core :: mem :: offset_of ! (Cert , crlInfo) - 3166usize] ; ["Offset of field: Cert::crlInfoSz"] [:: core :: mem :: offset_of ! (Cert , crlInfoSz) - 3368usize] ; ["Offset of field: Cert::issRaw"] [:: core :: mem :: offset_of ! (Cert , issRaw) - 3372usize] ; ["Offset of field: Cert::sbjRaw"] [:: core :: mem :: offset_of ! (Cert , sbjRaw) - 4652usize] ; ["Offset of field: Cert::challengePw"] [:: core :: mem :: offset_of ! (Cert , challengePw) - 5932usize] ; ["Offset of field: Cert::unstructuredName"] [:: core :: mem :: offset_of ! (Cert , unstructuredName) - 5996usize] ; ["Offset of field: Cert::challengePwPrintableString"] [:: core :: mem :: offset_of ! (Cert , challengePwPrintableString) - 6060usize] ; ["Offset of field: Cert::decodedCert"] [:: core :: mem :: offset_of ! (Cert , decodedCert) - 6064usize] ; ["Offset of field: Cert::der"] [:: core :: mem :: offset_of ! (Cert , der) - 6072usize] ; ["Offset of field: Cert::heap"] [:: core :: mem :: offset_of ! (Cert , heap) - 6080usize] ; ["Offset of field: Cert::basicConstCrit"] [:: core :: mem :: offset_of ! (Cert , basicConstCrit) - 6089usize] ; } ; impl Cert { # [inline] pub fn basicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_basicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn basicConstSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_basicConstSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (basicConstSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let basicConstSet : u8 = unsafe { :: core :: mem :: transmute (basicConstSet) } ; basicConstSet as u64 }) ; __bindgen_bitfield_unit } # [inline] pub fn isCaSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_2 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_isCaSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_2 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn isCaSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_2) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_isCaSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_2) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn pathLenSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_2 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_pathLenSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_2 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn pathLenSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_2) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_pathLenSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_2) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_2 (isCaSet : byte , pathLenSet : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isCaSet : u8 = unsafe { :: core :: mem :: transmute (isCaSet) } ; isCaSet as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let pathLenSet : u8 = unsafe { :: core :: mem :: transmute (pathLenSet) } ; pathLenSet as u64 }) ; __bindgen_bitfield_unit } } unsafe extern "C" { pub fn wc_InitCert (cert : * mut Cert) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CertNew (heap : * mut :: core :: ffi :: c_void) -> * mut Cert ; } unsafe extern "C" { pub fn wc_CertFree (cert : * mut Cert) ; } unsafe extern "C" { pub fn wc_InitCert_ex (cert : * mut Cert , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MakeCert_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MakeCert (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MakeCertReq_ex (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MakeCertReq (cert : * mut Cert , derBuffer : * mut byte , derSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SignCert_ex (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SignCert (requestSz : :: core :: ffi :: c_int , sType : :: core :: ffi :: c_int , buf : * mut byte , buffSz : word32 , rsaKey : * mut RsaKey , eccKey : * mut ecc_key , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_MakeSelfCert (cert : * mut Cert , buf : * mut byte , buffSz : word32 , key : * mut RsaKey , rng : * mut WC_RNG) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetIssuer (cert : * mut Cert , issuerFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetSubject (cert : * mut Cert , subjectFile : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetIssuerBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetSubjectBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetAltNamesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetDatesBuffer (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetCertDates (cert : * mut Cert , before : * mut tm , after : * mut tm) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetAuthKeyIdFromPublicKey_ex (cert : * mut Cert , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetAuthKeyIdFromPublicKey (cert : * mut Cert , rsakey : * mut RsaKey , eckey : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetAuthKeyIdFromCert (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetAuthKeyId (cert : * mut Cert , file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetSubjectKeyIdFromPublicKey_ex (cert : * mut Cert , keyType : :: core :: ffi :: c_int , key : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetSubjectKeyIdFromPublicKey (cert : * mut Cert , rsakey : * mut RsaKey , eckey : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetSubjectKeyId (cert : * mut Cert , file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetSubjectRaw (subjectRaw : * mut * mut byte , cert : * mut Cert) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetSubjectRaw (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetIssuerRaw (cert : * mut Cert , der : * const byte , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetKeyUsage (cert : * mut Cert , value : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_SetExtKeyUsage (cert : * mut Cert , value : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetDateInfo (certDate : * const byte , certDateSz : :: core :: ffi :: c_int , date : * mut * const byte , format : * mut byte , length : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetDateAsCalendarTime (date : * const byte , length : :: core :: ffi :: c_int , format : byte , timearg : * mut tm) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PemGetHeaderFooter (type_ : :: core :: ffi :: c_int , header : * mut * const :: core :: ffi :: c_char , footer : * mut * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AllocDer (pDer : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_FreeDer (pDer : * mut * mut DerBuffer) ; } unsafe extern "C" { pub fn wc_PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_KeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , pass : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CertPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PemPubKeyToDer (fileName : * const :: core :: ffi :: c_char , derBuf : * mut :: core :: ffi :: c_uchar , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PemPubKeyToDer_ex (fileName : * const :: core :: ffi :: c_char , der : * mut * mut DerBuffer) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PubKeyPemToDer (pem : * const :: core :: ffi :: c_uchar , pemSz : :: core :: ffi :: c_int , buff : * mut :: core :: ffi :: c_uchar , buffSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PemCertToDer (fileName : * const :: core :: ffi :: c_char , derBuf : * mut :: core :: ffi :: c_uchar , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PemCertToDer_ex (fileName : * const :: core :: ffi :: c_char , der : * mut * mut DerBuffer) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DerToPem (der : * const byte , derSz : word32 , output : * mut byte , outSz : word32 , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DerToPemEx (der : * const byte , derSz : word32 , output : * mut byte , outSz : word32 , cipher_info : * mut byte , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PkcsPad (buf : * mut byte , sz : word32 , blockSz : word32) -> word32 ; } unsafe extern "C" { pub fn wc_RsaPublicKeyDecode_ex (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , n : * mut * const byte , nSz : * mut word32 , e : * mut * const byte , eSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaKeyToPublicDer (key : * mut RsaKey , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaPublicKeyDerSize (key : * mut RsaKey , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_RsaKeyToPublicDer_ex (key : * mut RsaKey , output : * mut byte , inLen : word32 , with_header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccPrivateKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut ecc_key , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_BuildEccKeyDer (key : * mut ecc_key , output : * mut byte , inLen : * mut word32 , pubIn : :: core :: ffi :: c_int , curveIn : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccKeyToDer (key : * mut ecc_key , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccPrivateKeyToDer (key : * mut ecc_key , output : * mut byte , inLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccKeyDerSize (key : * mut ecc_key , pub_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccPrivateKeyToPKCS8 (key : * mut ecc_key , output : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccKeyToPKCS8 (key : * mut ecc_key , output : * mut byte , outLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccPublicKeyDecode (input : * const byte , inOutIdx : * mut word32 , key : * mut ecc_key , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccPublicKeyToDer (key : * mut ecc_key , output : * mut byte , inLen : word32 , with_AlgCurve : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccPublicKeyToDer_ex (key : * mut ecc_key , output : * mut byte , inLen : word32 , with_AlgCurve : :: core :: ffi :: c_int , comp : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EccPublicKeyDerSize (key : * mut ecc_key , with_AlgCurve : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EncodeSignature (out : * mut byte , digest : * const byte , digSz : word32 , hashOID : :: core :: ffi :: c_int) -> word32 ; } unsafe extern "C" { pub fn wc_GetCTC_HashOID (type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetPkcs8TraditionalOffset (input : * mut byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CreatePKCS8Key (out : * mut byte , outSz : * mut word32 , key : * mut byte , keySz : word32 , algoID : :: core :: ffi :: c_int , curveOID : * const byte , oidSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EncryptPKCS8Key_ex (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , hmacOid : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EncryptPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_DecryptPKCS8Key (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CreateEncryptedPKCS8Key (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , pbeOid : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetTime (timePtr : * mut :: core :: ffi :: c_void , timeSize : word32) -> :: core :: ffi :: c_int ; } pub type wc_time_cb = :: core :: option :: Option < unsafe extern "C" fn (t : * mut time_t) -> time_t > ; unsafe extern "C" { pub fn wc_SetTimeCb (f : wc_time_cb) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Time (t : * mut time_t) -> time_t ; } unsafe extern "C" { pub fn wc_InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wc_FreeDecodedCert (cert : * mut DecodedCert) ; } unsafe extern "C" { pub fn wc_ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetPubKeyDerFromCert (cert : * mut DecodedCert , derKey : * mut byte , derKeySz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetSubjectPubKeyInfoDerFromCert (certDer : * const byte , certDerSz : word32 , pubKeyDer : * mut byte , pubKeyDerSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetDecodedCertSubject (cert : * const DecodedCert , buf : * mut :: core :: ffi :: c_char , bufSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetDecodedCertIssuer (cert : * const DecodedCert , buf : * mut :: core :: ffi :: c_char , bufSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetDecodedCertSerial (cert : * const DecodedCert , buf : * mut byte , bufSz : * mut word32) -> :: core :: ffi :: c_int ; } pub const Asn1PrintOpt_ASN1_PRINT_OPT_OFFSET : Asn1PrintOpt = 0 ; pub const Asn1PrintOpt_ASN1_PRINT_OPT_LENGTH : Asn1PrintOpt = 1 ; pub const Asn1PrintOpt_ASN1_PRINT_OPT_INDENT : Asn1PrintOpt = 2 ; pub const Asn1PrintOpt_ASN1_PRINT_OPT_DRAW_BRANCH : Asn1PrintOpt = 3 ; pub const Asn1PrintOpt_ASN1_PRINT_OPT_SHOW_DATA : Asn1PrintOpt = 4 ; pub const Asn1PrintOpt_ASN1_PRINT_OPT_SHOW_HEADER_DATA : Asn1PrintOpt = 5 ; pub const Asn1PrintOpt_ASN1_PRINT_OPT_SHOW_OID : Asn1PrintOpt = 6 ; pub const Asn1PrintOpt_ASN1_PRINT_OPT_SHOW_NO_TEXT : Asn1PrintOpt = 7 ; pub const Asn1PrintOpt_ASN1_PRINT_OPT_SHOW_NO_DUMP_TEXT : Asn1PrintOpt = 8 ; pub type Asn1PrintOpt = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Asn1PrintOptions { pub offset : word32 , pub length : word32 , pub indent : word8 , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : u16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Asn1PrintOptions"] [:: core :: mem :: size_of :: < Asn1PrintOptions > () - 12usize] ; ["Alignment of Asn1PrintOptions"] [:: core :: mem :: align_of :: < Asn1PrintOptions > () - 4usize] ; ["Offset of field: Asn1PrintOptions::offset"] [:: core :: mem :: offset_of ! (Asn1PrintOptions , offset) - 0usize] ; ["Offset of field: Asn1PrintOptions::length"] [:: core :: mem :: offset_of ! (Asn1PrintOptions , length) - 4usize] ; ["Offset of field: Asn1PrintOptions::indent"] [:: core :: mem :: offset_of ! (Asn1PrintOptions , indent) - 8usize] ; } ; impl Asn1PrintOptions { # [inline] pub fn draw_branch (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_draw_branch (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn draw_branch_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_draw_branch_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn show_data (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_show_data (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn show_data_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_show_data_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn show_header_data (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_show_header_data (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn show_header_data_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_show_header_data_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn show_oid (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_show_oid (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn show_oid_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_show_oid_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn show_no_text (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_show_no_text (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn show_no_text_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_show_no_text_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn show_no_dump_text (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_show_no_dump_text (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn show_no_dump_text_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_show_no_dump_text_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (draw_branch : byte , show_data : byte , show_header_data : byte , show_oid : byte , show_no_text : byte , show_no_dump_text : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let draw_branch : u8 = unsafe { :: core :: mem :: transmute (draw_branch) } ; draw_branch as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let show_data : u8 = unsafe { :: core :: mem :: transmute (show_data) } ; show_data as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let show_header_data : u8 = unsafe { :: core :: mem :: transmute (show_header_data) } ; show_header_data as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let show_oid : u8 = unsafe { :: core :: mem :: transmute (show_oid) } ; show_oid as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let show_no_text : u8 = unsafe { :: core :: mem :: transmute (show_no_text) } ; show_no_text as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let show_no_dump_text : u8 = unsafe { :: core :: mem :: transmute (show_no_dump_text) } ; show_no_dump_text as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Asn1Item { pub tag : :: core :: ffi :: c_uchar , pub cons : :: core :: ffi :: c_uchar , pub len : word32 , pub data_idx : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Asn1Item"] [:: core :: mem :: size_of :: < Asn1Item > () - 12usize] ; ["Alignment of Asn1Item"] [:: core :: mem :: align_of :: < Asn1Item > () - 4usize] ; ["Offset of field: Asn1Item::tag"] [:: core :: mem :: offset_of ! (Asn1Item , tag) - 0usize] ; ["Offset of field: Asn1Item::cons"] [:: core :: mem :: offset_of ! (Asn1Item , cons) - 1usize] ; ["Offset of field: Asn1Item::len"] [:: core :: mem :: offset_of ! (Asn1Item , len) - 4usize] ; ["Offset of field: Asn1Item::data_idx"] [:: core :: mem :: offset_of ! (Asn1Item , data_idx) - 8usize] ; } ; pub type Asn1OidToNameCb = :: core :: option :: Option < unsafe extern "C" fn (oid : * mut :: core :: ffi :: c_uchar , len : word32) -> * const :: core :: ffi :: c_char > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Asn1 { pub item : Asn1Item , pub depth : :: core :: ffi :: c_uchar , pub end_idx : [word32 ; 16usize] , pub data : * mut :: core :: ffi :: c_uchar , pub max : word32 , pub offset : word32 , pub curr : word32 , pub part : :: core :: ffi :: c_uchar , pub file : * mut FILE , pub nameCb : Asn1OidToNameCb , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Asn1"] [:: core :: mem :: size_of :: < Asn1 > () - 120usize] ; ["Alignment of Asn1"] [:: core :: mem :: align_of :: < Asn1 > () - 8usize] ; ["Offset of field: Asn1::item"] [:: core :: mem :: offset_of ! (Asn1 , item) - 0usize] ; ["Offset of field: Asn1::depth"] [:: core :: mem :: offset_of ! (Asn1 , depth) - 12usize] ; ["Offset of field: Asn1::end_idx"] [:: core :: mem :: offset_of ! (Asn1 , end_idx) - 16usize] ; ["Offset of field: Asn1::data"] [:: core :: mem :: offset_of ! (Asn1 , data) - 80usize] ; ["Offset of field: Asn1::max"] [:: core :: mem :: offset_of ! (Asn1 , max) - 88usize] ; ["Offset of field: Asn1::offset"] [:: core :: mem :: offset_of ! (Asn1 , offset) - 92usize] ; ["Offset of field: Asn1::curr"] [:: core :: mem :: offset_of ! (Asn1 , curr) - 96usize] ; ["Offset of field: Asn1::part"] [:: core :: mem :: offset_of ! (Asn1 , part) - 100usize] ; ["Offset of field: Asn1::file"] [:: core :: mem :: offset_of ! (Asn1 , file) - 104usize] ; ["Offset of field: Asn1::nameCb"] [:: core :: mem :: offset_of ! (Asn1 , nameCb) - 112usize] ; } ; unsafe extern "C" { pub fn wc_Asn1PrintOptions_Init (opts : * mut Asn1PrintOptions) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Asn1PrintOptions_Set (opts : * mut Asn1PrintOptions , opt : Asn1PrintOpt , val : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Asn1_Init (asn1 : * mut Asn1) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Asn1_SetFile (asn1 : * mut Asn1 , file : * mut FILE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Asn1_SetOidToNameCb (asn1 : * mut Asn1 , nameCb : Asn1OidToNameCb) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Asn1_PrintAll (asn1 : * mut Asn1 , opts : * mut Asn1PrintOptions , data : * mut :: core :: ffi :: c_uchar , len : word32) -> :: core :: ffi :: c_int ; } pub const ASN_ISSUER : _bindgen_ty_30 = 0 ; pub const ASN_SUBJECT : _bindgen_ty_30 = 1 ; pub const ASN_BEFORE : _bindgen_ty_30 = 0 ; pub const ASN_AFTER : _bindgen_ty_30 = 1 ; pub type _bindgen_ty_30 = :: core :: ffi :: c_uint ; pub const ASN_Tags_ASN_EOC : ASN_Tags = 0 ; pub const ASN_Tags_ASN_BOOLEAN : ASN_Tags = 1 ; pub const ASN_Tags_ASN_INTEGER : ASN_Tags = 2 ; pub const ASN_Tags_ASN_BIT_STRING : ASN_Tags = 3 ; pub const ASN_Tags_ASN_OCTET_STRING : ASN_Tags = 4 ; pub const ASN_Tags_ASN_TAG_NULL : ASN_Tags = 5 ; pub const ASN_Tags_ASN_OBJECT_ID : ASN_Tags = 6 ; pub const ASN_Tags_ASN_OBJECT_DESC : ASN_Tags = 7 ; pub const ASN_Tags_ASN_INSTANCE_OF : ASN_Tags = 8 ; pub const ASN_Tags_ASN_REAL : ASN_Tags = 9 ; pub const ASN_Tags_ASN_ENUMERATED : ASN_Tags = 10 ; pub const ASN_Tags_ASN_EMBEDDED_PDV : ASN_Tags = 11 ; pub const ASN_Tags_ASN_UTF8STRING : ASN_Tags = 12 ; pub const ASN_Tags_ASN_RELATIVE_OID : ASN_Tags = 13 ; pub const ASN_Tags_ASN_SEQUENCE : ASN_Tags = 16 ; pub const ASN_Tags_ASN_SET : ASN_Tags = 17 ; pub const ASN_Tags_ASN_NUMERICSTRING : ASN_Tags = 18 ; pub const ASN_Tags_ASN_PRINTABLE_STRING : ASN_Tags = 19 ; pub const ASN_Tags_ASN_T61STRING : ASN_Tags = 20 ; pub const ASN_Tags_ASN_VIDEOTEXSTRING : ASN_Tags = 21 ; pub const ASN_Tags_ASN_IA5_STRING : ASN_Tags = 22 ; pub const ASN_Tags_ASN_UTC_TIME : ASN_Tags = 23 ; pub const ASN_Tags_ASN_GENERALIZED_TIME : ASN_Tags = 24 ; pub const ASN_Tags_ASN_GRAPHICSTRING : ASN_Tags = 25 ; pub const ASN_Tags_ASN_ISO646STRING : ASN_Tags = 26 ; pub const ASN_Tags_ASN_GENERALSTRING : ASN_Tags = 27 ; pub const ASN_Tags_ASN_UNIVERSALSTRING : ASN_Tags = 28 ; pub const ASN_Tags_ASN_CHARACTER_STRING : ASN_Tags = 29 ; pub const ASN_Tags_ASN_BMPSTRING : ASN_Tags = 30 ; pub const ASN_Tags_ASN_TYPE_MASK : ASN_Tags = 31 ; pub const ASN_Tags_ASN_LONG_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_INDEF_LENGTH : ASN_Tags = 128 ; pub const ASN_Tags_ASN_CONSTRUCTED : ASN_Tags = 32 ; pub const ASN_Tags_ASN_APPLICATION : ASN_Tags = 64 ; pub const ASN_Tags_ASN_CONTEXT_SPECIFIC : ASN_Tags = 128 ; pub const ASN_Tags_ASN_PRIVATE : ASN_Tags = 192 ; pub const ASN_Tags_ASN_CLASS_MASK : ASN_Tags = 192 ; pub const ASN_Tags_CRL_EXTENSIONS : ASN_Tags = 160 ; pub const ASN_Tags_ASN_EXTENSIONS : ASN_Tags = 163 ; pub const ASN_Tags_ASN_OTHER_TYPE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_RFC822_TYPE : ASN_Tags = 1 ; pub const ASN_Tags_ASN_DNS_TYPE : ASN_Tags = 2 ; pub const ASN_Tags_ASN_DIR_TYPE : ASN_Tags = 4 ; pub const ASN_Tags_ASN_URI_TYPE : ASN_Tags = 6 ; pub const ASN_Tags_ASN_IP_TYPE : ASN_Tags = 7 ; pub const ASN_Tags_ASN_RID_TYPE : ASN_Tags = 8 ; pub const ASN_Tags_ASN_ENC_CONTENT : ASN_Tags = 0 ; pub const ASN_Tags_ASN_OTHERNAME_VALUE : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AUTHKEYID_ISSUER : ASN_Tags = 1 ; pub const ASN_Tags_ASN_AUTHKEYID_SERIAL : ASN_Tags = 2 ; pub const ASN_Tags_ASN_SUBTREE_MIN : ASN_Tags = 0 ; pub const ASN_Tags_ASN_SUBTREE_MAX : ASN_Tags = 1 ; pub const ASN_Tags_ASN_X509_CERT_VERSION : ASN_Tags = 0 ; pub const ASN_Tags_ASN_AKID_KEYID : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PARAMS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ECC_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_ASYMKEY_ATTRS : ASN_Tags = 0 ; pub const ASN_Tags_ASN_ASYMKEY_PUBKEY : ASN_Tags = 1 ; pub const ASN_Tags_ASN_PKEY_SEED : ASN_Tags = 0 ; pub type ASN_Tags = :: core :: ffi :: c_uint ; pub const ASNItem_DataType_ASN_DATA_TYPE_NONE : ASNItem_DataType = 0 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD8 : ASNItem_DataType = 1 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD16 : ASNItem_DataType = 2 ; pub const ASNItem_DataType_ASN_DATA_TYPE_WORD32 : ASNItem_DataType = 4 ; pub const ASNItem_DataType_ASN_DATA_TYPE_BUFFER : ASNItem_DataType = 5 ; pub const ASNItem_DataType_ASN_DATA_TYPE_EXP_BUFFER : ASNItem_DataType = 6 ; pub const ASNItem_DataType_ASN_DATA_TYPE_REPLACE_BUFFER : ASNItem_DataType = 7 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP : ASNItem_DataType = 8 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_INITED : ASNItem_DataType = 9 ; pub const ASNItem_DataType_ASN_DATA_TYPE_MP_POS_NEG : ASNItem_DataType = 10 ; pub const ASNItem_DataType_ASN_DATA_TYPE_CHOICE : ASNItem_DataType = 11 ; pub type ASNItem_DataType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNItem { pub depth : byte , pub tag : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub optional : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNItem"] [:: core :: mem :: size_of :: < ASNItem > () - 4usize] ; ["Alignment of ASNItem"] [:: core :: mem :: align_of :: < ASNItem > () - 1usize] ; ["Offset of field: ASNItem::depth"] [:: core :: mem :: offset_of ! (ASNItem , depth) - 0usize] ; ["Offset of field: ASNItem::tag"] [:: core :: mem :: offset_of ! (ASNItem , tag) - 1usize] ; ["Offset of field: ASNItem::optional"] [:: core :: mem :: offset_of ! (ASNItem , optional) - 3usize] ; } ; impl ASNItem { # [inline] pub fn constructed (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_constructed (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn constructed_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_constructed_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn headerOnly (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_headerOnly (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn headerOnly_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_headerOnly_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (constructed : byte , headerOnly : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let constructed : u8 = unsafe { :: core :: mem :: transmute (constructed) } ; constructed as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let headerOnly : u8 = unsafe { :: core :: mem :: transmute (headerOnly) } ; headerOnly as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct ASNSetData { pub offset : word32 , pub length : word32 , pub data : ASNSetData__bindgen_ty_1 , pub dataType : byte , pub noOut : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNSetData__bindgen_ty_1 { pub u8_ : byte , pub u16_ : word16 , pub u32_ : word32 , pub mp : * mut mp_int , pub buffer : ASNSetData__bindgen_ty_1__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNSetData__bindgen_ty_1__bindgen_ty_1 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNSetData__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNSetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNSetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNSetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNSetData__bindgen_ty_1 , buffer) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNSetData"] [:: core :: mem :: size_of :: < ASNSetData > () - 32usize] ; ["Alignment of ASNSetData"] [:: core :: mem :: align_of :: < ASNSetData > () - 8usize] ; ["Offset of field: ASNSetData::offset"] [:: core :: mem :: offset_of ! (ASNSetData , offset) - 0usize] ; ["Offset of field: ASNSetData::length"] [:: core :: mem :: offset_of ! (ASNSetData , length) - 4usize] ; ["Offset of field: ASNSetData::data"] [:: core :: mem :: offset_of ! (ASNSetData , data) - 8usize] ; ["Offset of field: ASNSetData::dataType"] [:: core :: mem :: offset_of ! (ASNSetData , dataType) - 24usize] ; ["Offset of field: ASNSetData::noOut"] [:: core :: mem :: offset_of ! (ASNSetData , noOut) - 25usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ASNGetData { pub offset : word32 , pub length : word32 , pub data : ASNGetData__bindgen_ty_1 , pub dataType : byte , pub tag : byte , } # [repr (C)] # [derive (Copy , Clone)] pub union ASNGetData__bindgen_ty_1 { pub u8_ : * mut byte , pub u16_ : * mut word16 , pub u32_ : * mut word32 , pub mp : * mut mp_int , pub choice : * const byte , pub buffer : ASNGetData__bindgen_ty_1__bindgen_ty_1 , pub ref_ : ASNGetData__bindgen_ty_1__bindgen_ty_2 , pub oid : ASNGetData__bindgen_ty_1__bindgen_ty_3 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_1 { pub data : * mut byte , pub length : * mut word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_1::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_1 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_2 { pub data : * const byte , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 16usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_2"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_2 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_2::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_2 , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ASNGetData__bindgen_ty_1__bindgen_ty_3 { pub data : * const byte , pub length : word32 , pub type_ : word32 , pub sum : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1__bindgen_ty_3"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1__bindgen_ty_3 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::data"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , data) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::length"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , length) - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::type_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , type_) - 12usize] ; ["Offset of field: ASNGetData__bindgen_ty_1__bindgen_ty_3::sum"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1__bindgen_ty_3 , sum) - 16usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData__bindgen_ty_1"] [:: core :: mem :: size_of :: < ASNGetData__bindgen_ty_1 > () - 24usize] ; ["Alignment of ASNGetData__bindgen_ty_1"] [:: core :: mem :: align_of :: < ASNGetData__bindgen_ty_1 > () - 8usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u8_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u8_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u16_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u16_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::u32_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , u32_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::mp"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , mp) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::choice"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , choice) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::buffer"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , buffer) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::ref_"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , ref_) - 0usize] ; ["Offset of field: ASNGetData__bindgen_ty_1::oid"] [:: core :: mem :: offset_of ! (ASNGetData__bindgen_ty_1 , oid) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ASNGetData"] [:: core :: mem :: size_of :: < ASNGetData > () - 40usize] ; ["Alignment of ASNGetData"] [:: core :: mem :: align_of :: < ASNGetData > () - 8usize] ; ["Offset of field: ASNGetData::offset"] [:: core :: mem :: offset_of ! (ASNGetData , offset) - 0usize] ; ["Offset of field: ASNGetData::length"] [:: core :: mem :: offset_of ! (ASNGetData , length) - 4usize] ; ["Offset of field: ASNGetData::data"] [:: core :: mem :: offset_of ! (ASNGetData , data) - 8usize] ; ["Offset of field: ASNGetData::dataType"] [:: core :: mem :: offset_of ! (ASNGetData , dataType) - 32usize] ; ["Offset of field: ASNGetData::tag"] [:: core :: mem :: offset_of ! (ASNGetData , tag) - 33usize] ; } ; unsafe extern "C" { pub fn SizeASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , encSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetASN_Items (asn : * const ASNItem , data : * mut ASNSetData , count : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetASN_Items (asn : * const ASNItem , data : * mut ASNGetData , count : :: core :: ffi :: c_int , complete : :: core :: ffi :: c_int , input : * const byte , inOutIdx : * mut word32 , length : word32) -> :: core :: ffi :: c_int ; } pub const DN_Tags_ASN_DN_NULL : DN_Tags = 0 ; pub const DN_Tags_ASN_COMMON_NAME : DN_Tags = 3 ; pub const DN_Tags_ASN_SUR_NAME : DN_Tags = 4 ; pub const DN_Tags_ASN_SERIAL_NUMBER : DN_Tags = 5 ; pub const DN_Tags_ASN_COUNTRY_NAME : DN_Tags = 6 ; pub const DN_Tags_ASN_LOCALITY_NAME : DN_Tags = 7 ; pub const DN_Tags_ASN_STATE_NAME : DN_Tags = 8 ; pub const DN_Tags_ASN_STREET_ADDR : DN_Tags = 9 ; pub const DN_Tags_ASN_ORG_NAME : DN_Tags = 10 ; pub const DN_Tags_ASN_ORGUNIT_NAME : DN_Tags = 11 ; pub const DN_Tags_ASN_BUS_CAT : DN_Tags = 15 ; pub const DN_Tags_ASN_POSTAL_CODE : DN_Tags = 17 ; pub const DN_Tags_ASN_USER_ID : DN_Tags = 18 ; pub const DN_Tags_ASN_CONTENT_TYPE : DN_Tags = 151 ; pub const DN_Tags_ASN_EMAIL_NAME : DN_Tags = 152 ; pub const DN_Tags_ASN_CUSTOM_NAME : DN_Tags = 153 ; pub const DN_Tags_ASN_FAVOURITE_DRINK : DN_Tags = 19 ; pub const DN_Tags_ASN_RFC822_MAILBOX : DN_Tags = 20 ; pub const DN_Tags_ASN_DOMAIN_COMPONENT : DN_Tags = 25 ; pub type DN_Tags = :: core :: ffi :: c_uint ; unsafe extern "C" { pub static pem_struct_min_sz : :: core :: ffi :: c_int ; } pub const ECC_TYPES_ECC_PREFIX_0 : ECC_TYPES = 160 ; pub const ECC_TYPES_ECC_PREFIX_1 : ECC_TYPES = 161 ; pub type ECC_TYPES = :: core :: ffi :: c_uint ; pub const Misc_ASN_ASN_BOOL_SIZE : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_HEADER_SZ : Misc_ASN = 2 ; pub const Misc_ASN_ASN_ECC_CONTEXT_SZ : Misc_ASN = 2 ; pub const Misc_ASN_KEYID_SIZE : Misc_ASN = 20 ; pub const Misc_ASN_RSA_INTS : Misc_ASN = 8 ; pub const Misc_ASN_DSA_PARAM_INTS : Misc_ASN = 3 ; pub const Misc_ASN_RSA_PUB_INTS : Misc_ASN = 2 ; pub const Misc_ASN_MIN_DATE_SIZE : Misc_ASN = 12 ; pub const Misc_ASN_MAX_DATE_SIZE : Misc_ASN = 32 ; pub const Misc_ASN_ASN_GEN_TIME_SZ : Misc_ASN = 15 ; pub const Misc_ASN_MAX_ATTRIB_SZ : Misc_ASN = 215 ; pub const Misc_ASN_MAX_EXTENSIONS_SZ : Misc_ASN = 16390 ; pub const Misc_ASN_MAX_OID_SZ : Misc_ASN = 32 ; pub const Misc_ASN_MAX_OID_STRING_SZ : Misc_ASN = 64 ; pub const Misc_ASN_MAX_KID_SZ : Misc_ASN = 45 ; pub const Misc_ASN_MAX_KEYUSAGE_SZ : Misc_ASN = 18 ; pub const Misc_ASN_MAX_EXTKEYUSAGE_SZ : Misc_ASN = 72 ; pub const Misc_ASN_MAX_NSCERTTYPE_SZ : Misc_ASN = 23 ; pub const Misc_ASN_MAX_CERTPOL_NB : Misc_ASN = 2 ; pub const Misc_ASN_MAX_CERTPOL_SZ : Misc_ASN = 200 ; pub const Misc_ASN_OCSP_NONCE_EXT_SZ : Misc_ASN = 35 ; pub const Misc_ASN_MAX_OCSP_EXT_SZ : Misc_ASN = 58 ; pub const Misc_ASN_MAX_OCSP_NONCE_SZ : Misc_ASN = 16 ; pub const Misc_ASN_TRAILING_ZERO : Misc_ASN = 1 ; pub const Misc_ASN_ASN_TAG_SZ : Misc_ASN = 1 ; pub const Misc_ASN_ASN_INDEF_END_SZ : Misc_ASN = 2 ; pub const Misc_ASN_MIN_VERSION_SZ : Misc_ASN = 3 ; pub const Misc_ASN_MAX_X509_VERSION : Misc_ASN = 3 ; pub const Misc_ASN_MIN_X509_VERSION : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V1 : Misc_ASN = 0 ; pub const Misc_ASN_WOLFSSL_X509_V2 : Misc_ASN = 1 ; pub const Misc_ASN_WOLFSSL_X509_V3 : Misc_ASN = 2 ; pub const Misc_ASN_MAX_TIME_STRING_SZ : Misc_ASN = 25 ; pub const Misc_ASN_PKCS5_SALT_SZ : Misc_ASN = 8 ; pub const Misc_ASN_PKCS5V2_SALT_SZ : Misc_ASN = 16 ; pub const Misc_ASN_PEM_LINE_SZ : Misc_ASN = 64 ; pub const Misc_ASN_PEM_LINE_LEN : Misc_ASN = 76 ; pub const Misc_ASN_COUNTRY_CODE_LEN : Misc_ASN = 2 ; pub type Misc_ASN = :: core :: ffi :: c_uint ; pub const Oid_Types_oidHashType : Oid_Types = 0 ; pub const Oid_Types_oidSigType : Oid_Types = 1 ; pub const Oid_Types_oidKeyType : Oid_Types = 2 ; pub const Oid_Types_oidCurveType : Oid_Types = 3 ; pub const Oid_Types_oidBlkType : Oid_Types = 4 ; pub const Oid_Types_oidOcspType : Oid_Types = 5 ; pub const Oid_Types_oidCertExtType : Oid_Types = 6 ; pub const Oid_Types_oidCertAuthInfoType : Oid_Types = 7 ; pub const Oid_Types_oidCertPolicyType : Oid_Types = 8 ; pub const Oid_Types_oidCertAltNameType : Oid_Types = 9 ; pub const Oid_Types_oidCertKeyUseType : Oid_Types = 10 ; pub const Oid_Types_oidKdfType : Oid_Types = 11 ; pub const Oid_Types_oidKeyWrapType : Oid_Types = 12 ; pub const Oid_Types_oidCmsKeyAgreeType : Oid_Types = 13 ; pub const Oid_Types_oidPBEType : Oid_Types = 14 ; pub const Oid_Types_oidHmacType : Oid_Types = 15 ; pub const Oid_Types_oidCompressType : Oid_Types = 16 ; pub const Oid_Types_oidCertNameType : Oid_Types = 17 ; pub const Oid_Types_oidTlsExtType : Oid_Types = 18 ; pub const Oid_Types_oidCrlExtType : Oid_Types = 19 ; pub const Oid_Types_oidCsrAttrType : Oid_Types = 20 ; pub const Oid_Types_oidIgnoreType : Oid_Types = 21 ; pub type Oid_Types = :: core :: ffi :: c_uint ; pub const VerifyType_NO_VERIFY : VerifyType = 0 ; pub const VerifyType_VERIFY : VerifyType = 1 ; pub const VerifyType_VERIFY_CRL : VerifyType = 2 ; pub const VerifyType_VERIFY_OCSP : VerifyType = 3 ; pub const VerifyType_VERIFY_NAME : VerifyType = 4 ; pub const VerifyType_VERIFY_SKIP_DATE : VerifyType = 5 ; pub const VerifyType_VERIFY_OCSP_CERT : VerifyType = 6 ; pub type VerifyType = :: core :: ffi :: c_uint ; pub const KeyIdType_SKID_TYPE : KeyIdType = 0 ; pub const KeyIdType_AKID_TYPE : KeyIdType = 1 ; pub type KeyIdType = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DNS_entry { pub next : * mut DNS_entry , pub type_ : :: core :: ffi :: c_int , pub len : :: core :: ffi :: c_int , pub name : * const :: core :: ffi :: c_char , pub nameStored : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DNS_entry"] [:: core :: mem :: size_of :: < DNS_entry > () - 32usize] ; ["Alignment of DNS_entry"] [:: core :: mem :: align_of :: < DNS_entry > () - 8usize] ; ["Offset of field: DNS_entry::next"] [:: core :: mem :: offset_of ! (DNS_entry , next) - 0usize] ; ["Offset of field: DNS_entry::type_"] [:: core :: mem :: offset_of ! (DNS_entry , type_) - 8usize] ; ["Offset of field: DNS_entry::len"] [:: core :: mem :: offset_of ! (DNS_entry , len) - 12usize] ; ["Offset of field: DNS_entry::name"] [:: core :: mem :: offset_of ! (DNS_entry , name) - 16usize] ; ["Offset of field: DNS_entry::nameStored"] [:: core :: mem :: offset_of ! (DNS_entry , nameStored) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Base_entry { pub next : * mut Base_entry , pub name : * mut :: core :: ffi :: c_char , pub nameSz : :: core :: ffi :: c_int , pub type_ : byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Base_entry"] [:: core :: mem :: size_of :: < Base_entry > () - 24usize] ; ["Alignment of Base_entry"] [:: core :: mem :: align_of :: < Base_entry > () - 8usize] ; ["Offset of field: Base_entry::next"] [:: core :: mem :: offset_of ! (Base_entry , next) - 0usize] ; ["Offset of field: Base_entry::name"] [:: core :: mem :: offset_of ! (Base_entry , name) - 8usize] ; ["Offset of field: Base_entry::nameSz"] [:: core :: mem :: offset_of ! (Base_entry , nameSz) - 16usize] ; ["Offset of field: Base_entry::type_"] [:: core :: mem :: offset_of ! (Base_entry , type_) - 20usize] ; } ; pub const SignatureState_SIG_STATE_BEGIN : SignatureState = 0 ; pub const SignatureState_SIG_STATE_HASH : SignatureState = 1 ; pub const SignatureState_SIG_STATE_KEY : SignatureState = 2 ; pub const SignatureState_SIG_STATE_DO : SignatureState = 3 ; pub const SignatureState_SIG_STATE_CHECK : SignatureState = 4 ; pub type SignatureState = :: core :: ffi :: c_uint ; pub type wc_CallbackEccVerify = :: core :: option :: Option < unsafe extern "C" fn (sig : * const :: core :: ffi :: c_uchar , sigSz : :: core :: ffi :: c_uint , hash : * const :: core :: ffi :: c_uchar , hashSz : :: core :: ffi :: c_uint , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , result : * mut :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; pub type wc_CallbackRsaVerify = :: core :: option :: Option < unsafe extern "C" fn (sig : * mut :: core :: ffi :: c_uchar , sigSz : :: core :: ffi :: c_uint , out : * mut * mut :: core :: ffi :: c_uchar , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct tagCertAttribute { pub verifyByTSIP_SCE : byte , pub certBegin : word32 , pub pubkey_n_start : word32 , pub pubkey_n_len : word32 , pub pubkey_e_start : word32 , pub pubkey_e_len : word32 , pub curve_id : :: core :: ffi :: c_int , pub cert : * const byte , pub certSz : word32 , pub keyIndex : * const byte , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of tagCertAttribute"] [:: core :: mem :: size_of :: < tagCertAttribute > () - 56usize] ; ["Alignment of tagCertAttribute"] [:: core :: mem :: align_of :: < tagCertAttribute > () - 8usize] ; ["Offset of field: tagCertAttribute::verifyByTSIP_SCE"] [:: core :: mem :: offset_of ! (tagCertAttribute , verifyByTSIP_SCE) - 0usize] ; ["Offset of field: tagCertAttribute::certBegin"] [:: core :: mem :: offset_of ! (tagCertAttribute , certBegin) - 4usize] ; ["Offset of field: tagCertAttribute::pubkey_n_start"] [:: core :: mem :: offset_of ! (tagCertAttribute , pubkey_n_start) - 8usize] ; ["Offset of field: tagCertAttribute::pubkey_n_len"] [:: core :: mem :: offset_of ! (tagCertAttribute , pubkey_n_len) - 12usize] ; ["Offset of field: tagCertAttribute::pubkey_e_start"] [:: core :: mem :: offset_of ! (tagCertAttribute , pubkey_e_start) - 16usize] ; ["Offset of field: tagCertAttribute::pubkey_e_len"] [:: core :: mem :: offset_of ! (tagCertAttribute , pubkey_e_len) - 20usize] ; ["Offset of field: tagCertAttribute::curve_id"] [:: core :: mem :: offset_of ! (tagCertAttribute , curve_id) - 24usize] ; ["Offset of field: tagCertAttribute::cert"] [:: core :: mem :: offset_of ! (tagCertAttribute , cert) - 32usize] ; ["Offset of field: tagCertAttribute::certSz"] [:: core :: mem :: offset_of ! (tagCertAttribute , certSz) - 40usize] ; ["Offset of field: tagCertAttribute::keyIndex"] [:: core :: mem :: offset_of ! (tagCertAttribute , keyIndex) - 48usize] ; } ; pub type CertAttribute = tagCertAttribute ; # [repr (C)] # [derive (Copy , Clone)] pub struct SignatureCtx { pub heap : * mut :: core :: ffi :: c_void , pub digest : * mut byte , pub out : * mut byte , pub sigCpy : * mut byte , pub verify : :: core :: ffi :: c_int , pub key : SignatureCtx__bindgen_ty_1 , pub devId : :: core :: ffi :: c_int , pub state : :: core :: ffi :: c_int , pub typeH : :: core :: ffi :: c_int , pub digestSz : :: core :: ffi :: c_int , pub keyOID : word32 , pub pkCbEcc : wc_CallbackEccVerify , pub pkCtxEcc : * mut :: core :: ffi :: c_void , pub pkCbRsa : wc_CallbackRsaVerify , pub pkCtxRsa : * mut :: core :: ffi :: c_void , pub CertAtt : CertAttribute , pub hash : wc_HashType , pub mgf : :: core :: ffi :: c_int , pub saltLen : :: core :: ffi :: c_int , } # [repr (C)] # [derive (Copy , Clone)] pub union SignatureCtx__bindgen_ty_1 { pub rsa : * mut RsaKey , pub ecc : * mut ecc_key , pub dilithium : * mut dilithium_key , pub ptr : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: size_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Alignment of SignatureCtx__bindgen_ty_1"] [:: core :: mem :: align_of :: < SignatureCtx__bindgen_ty_1 > () - 8usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::rsa"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , rsa) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ecc"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ecc) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::dilithium"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , dilithium) - 0usize] ; ["Offset of field: SignatureCtx__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (SignatureCtx__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SignatureCtx"] [:: core :: mem :: size_of :: < SignatureCtx > () - 176usize] ; ["Alignment of SignatureCtx"] [:: core :: mem :: align_of :: < SignatureCtx > () - 8usize] ; ["Offset of field: SignatureCtx::heap"] [:: core :: mem :: offset_of ! (SignatureCtx , heap) - 0usize] ; ["Offset of field: SignatureCtx::digest"] [:: core :: mem :: offset_of ! (SignatureCtx , digest) - 8usize] ; ["Offset of field: SignatureCtx::out"] [:: core :: mem :: offset_of ! (SignatureCtx , out) - 16usize] ; ["Offset of field: SignatureCtx::sigCpy"] [:: core :: mem :: offset_of ! (SignatureCtx , sigCpy) - 24usize] ; ["Offset of field: SignatureCtx::verify"] [:: core :: mem :: offset_of ! (SignatureCtx , verify) - 32usize] ; ["Offset of field: SignatureCtx::key"] [:: core :: mem :: offset_of ! (SignatureCtx , key) - 40usize] ; ["Offset of field: SignatureCtx::devId"] [:: core :: mem :: offset_of ! (SignatureCtx , devId) - 48usize] ; ["Offset of field: SignatureCtx::state"] [:: core :: mem :: offset_of ! (SignatureCtx , state) - 52usize] ; ["Offset of field: SignatureCtx::typeH"] [:: core :: mem :: offset_of ! (SignatureCtx , typeH) - 56usize] ; ["Offset of field: SignatureCtx::digestSz"] [:: core :: mem :: offset_of ! (SignatureCtx , digestSz) - 60usize] ; ["Offset of field: SignatureCtx::keyOID"] [:: core :: mem :: offset_of ! (SignatureCtx , keyOID) - 64usize] ; ["Offset of field: SignatureCtx::pkCbEcc"] [:: core :: mem :: offset_of ! (SignatureCtx , pkCbEcc) - 72usize] ; ["Offset of field: SignatureCtx::pkCtxEcc"] [:: core :: mem :: offset_of ! (SignatureCtx , pkCtxEcc) - 80usize] ; ["Offset of field: SignatureCtx::pkCbRsa"] [:: core :: mem :: offset_of ! (SignatureCtx , pkCbRsa) - 88usize] ; ["Offset of field: SignatureCtx::pkCtxRsa"] [:: core :: mem :: offset_of ! (SignatureCtx , pkCtxRsa) - 96usize] ; ["Offset of field: SignatureCtx::CertAtt"] [:: core :: mem :: offset_of ! (SignatureCtx , CertAtt) - 104usize] ; ["Offset of field: SignatureCtx::hash"] [:: core :: mem :: offset_of ! (SignatureCtx , hash) - 160usize] ; ["Offset of field: SignatureCtx::mgf"] [:: core :: mem :: offset_of ! (SignatureCtx , mgf) - 164usize] ; ["Offset of field: SignatureCtx::saltLen"] [:: core :: mem :: offset_of ! (SignatureCtx , saltLen) - 168usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DecodedName { pub fullName : * mut :: core :: ffi :: c_char , pub fullNameLen : :: core :: ffi :: c_int , pub entryCount : :: core :: ffi :: c_int , pub cnIdx : :: core :: ffi :: c_int , pub cnLen : :: core :: ffi :: c_int , pub cnNid : :: core :: ffi :: c_int , pub snIdx : :: core :: ffi :: c_int , pub snLen : :: core :: ffi :: c_int , pub snNid : :: core :: ffi :: c_int , pub cIdx : :: core :: ffi :: c_int , pub cLen : :: core :: ffi :: c_int , pub cNid : :: core :: ffi :: c_int , pub lIdx : :: core :: ffi :: c_int , pub lLen : :: core :: ffi :: c_int , pub lNid : :: core :: ffi :: c_int , pub stIdx : :: core :: ffi :: c_int , pub stLen : :: core :: ffi :: c_int , pub stNid : :: core :: ffi :: c_int , pub oIdx : :: core :: ffi :: c_int , pub oLen : :: core :: ffi :: c_int , pub oNid : :: core :: ffi :: c_int , pub ouIdx : :: core :: ffi :: c_int , pub ouLen : :: core :: ffi :: c_int , pub bcIdx : :: core :: ffi :: c_int , pub bcLen : :: core :: ffi :: c_int , pub jcIdx : :: core :: ffi :: c_int , pub jcLen : :: core :: ffi :: c_int , pub jsIdx : :: core :: ffi :: c_int , pub jsLen : :: core :: ffi :: c_int , pub ouNid : :: core :: ffi :: c_int , pub emailIdx : :: core :: ffi :: c_int , pub emailLen : :: core :: ffi :: c_int , pub emailNid : :: core :: ffi :: c_int , pub uidIdx : :: core :: ffi :: c_int , pub uidLen : :: core :: ffi :: c_int , pub uidNid : :: core :: ffi :: c_int , pub serialIdx : :: core :: ffi :: c_int , pub serialLen : :: core :: ffi :: c_int , pub serialNid : :: core :: ffi :: c_int , pub dcIdx : [:: core :: ffi :: c_int ; 10usize] , pub dcLen : [:: core :: ffi :: c_int ; 10usize] , pub dcNum : :: core :: ffi :: c_int , pub dcMode : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedName"] [:: core :: mem :: size_of :: < DecodedName > () - 248usize] ; ["Alignment of DecodedName"] [:: core :: mem :: align_of :: < DecodedName > () - 8usize] ; ["Offset of field: DecodedName::fullName"] [:: core :: mem :: offset_of ! (DecodedName , fullName) - 0usize] ; ["Offset of field: DecodedName::fullNameLen"] [:: core :: mem :: offset_of ! (DecodedName , fullNameLen) - 8usize] ; ["Offset of field: DecodedName::entryCount"] [:: core :: mem :: offset_of ! (DecodedName , entryCount) - 12usize] ; ["Offset of field: DecodedName::cnIdx"] [:: core :: mem :: offset_of ! (DecodedName , cnIdx) - 16usize] ; ["Offset of field: DecodedName::cnLen"] [:: core :: mem :: offset_of ! (DecodedName , cnLen) - 20usize] ; ["Offset of field: DecodedName::cnNid"] [:: core :: mem :: offset_of ! (DecodedName , cnNid) - 24usize] ; ["Offset of field: DecodedName::snIdx"] [:: core :: mem :: offset_of ! (DecodedName , snIdx) - 28usize] ; ["Offset of field: DecodedName::snLen"] [:: core :: mem :: offset_of ! (DecodedName , snLen) - 32usize] ; ["Offset of field: DecodedName::snNid"] [:: core :: mem :: offset_of ! (DecodedName , snNid) - 36usize] ; ["Offset of field: DecodedName::cIdx"] [:: core :: mem :: offset_of ! (DecodedName , cIdx) - 40usize] ; ["Offset of field: DecodedName::cLen"] [:: core :: mem :: offset_of ! (DecodedName , cLen) - 44usize] ; ["Offset of field: DecodedName::cNid"] [:: core :: mem :: offset_of ! (DecodedName , cNid) - 48usize] ; ["Offset of field: DecodedName::lIdx"] [:: core :: mem :: offset_of ! (DecodedName , lIdx) - 52usize] ; ["Offset of field: DecodedName::lLen"] [:: core :: mem :: offset_of ! (DecodedName , lLen) - 56usize] ; ["Offset of field: DecodedName::lNid"] [:: core :: mem :: offset_of ! (DecodedName , lNid) - 60usize] ; ["Offset of field: DecodedName::stIdx"] [:: core :: mem :: offset_of ! (DecodedName , stIdx) - 64usize] ; ["Offset of field: DecodedName::stLen"] [:: core :: mem :: offset_of ! (DecodedName , stLen) - 68usize] ; ["Offset of field: DecodedName::stNid"] [:: core :: mem :: offset_of ! (DecodedName , stNid) - 72usize] ; ["Offset of field: DecodedName::oIdx"] [:: core :: mem :: offset_of ! (DecodedName , oIdx) - 76usize] ; ["Offset of field: DecodedName::oLen"] [:: core :: mem :: offset_of ! (DecodedName , oLen) - 80usize] ; ["Offset of field: DecodedName::oNid"] [:: core :: mem :: offset_of ! (DecodedName , oNid) - 84usize] ; ["Offset of field: DecodedName::ouIdx"] [:: core :: mem :: offset_of ! (DecodedName , ouIdx) - 88usize] ; ["Offset of field: DecodedName::ouLen"] [:: core :: mem :: offset_of ! (DecodedName , ouLen) - 92usize] ; ["Offset of field: DecodedName::bcIdx"] [:: core :: mem :: offset_of ! (DecodedName , bcIdx) - 96usize] ; ["Offset of field: DecodedName::bcLen"] [:: core :: mem :: offset_of ! (DecodedName , bcLen) - 100usize] ; ["Offset of field: DecodedName::jcIdx"] [:: core :: mem :: offset_of ! (DecodedName , jcIdx) - 104usize] ; ["Offset of field: DecodedName::jcLen"] [:: core :: mem :: offset_of ! (DecodedName , jcLen) - 108usize] ; ["Offset of field: DecodedName::jsIdx"] [:: core :: mem :: offset_of ! (DecodedName , jsIdx) - 112usize] ; ["Offset of field: DecodedName::jsLen"] [:: core :: mem :: offset_of ! (DecodedName , jsLen) - 116usize] ; ["Offset of field: DecodedName::ouNid"] [:: core :: mem :: offset_of ! (DecodedName , ouNid) - 120usize] ; ["Offset of field: DecodedName::emailIdx"] [:: core :: mem :: offset_of ! (DecodedName , emailIdx) - 124usize] ; ["Offset of field: DecodedName::emailLen"] [:: core :: mem :: offset_of ! (DecodedName , emailLen) - 128usize] ; ["Offset of field: DecodedName::emailNid"] [:: core :: mem :: offset_of ! (DecodedName , emailNid) - 132usize] ; ["Offset of field: DecodedName::uidIdx"] [:: core :: mem :: offset_of ! (DecodedName , uidIdx) - 136usize] ; ["Offset of field: DecodedName::uidLen"] [:: core :: mem :: offset_of ! (DecodedName , uidLen) - 140usize] ; ["Offset of field: DecodedName::uidNid"] [:: core :: mem :: offset_of ! (DecodedName , uidNid) - 144usize] ; ["Offset of field: DecodedName::serialIdx"] [:: core :: mem :: offset_of ! (DecodedName , serialIdx) - 148usize] ; ["Offset of field: DecodedName::serialLen"] [:: core :: mem :: offset_of ! (DecodedName , serialLen) - 152usize] ; ["Offset of field: DecodedName::serialNid"] [:: core :: mem :: offset_of ! (DecodedName , serialNid) - 156usize] ; ["Offset of field: DecodedName::dcIdx"] [:: core :: mem :: offset_of ! (DecodedName , dcIdx) - 160usize] ; ["Offset of field: DecodedName::dcLen"] [:: core :: mem :: offset_of ! (DecodedName , dcLen) - 200usize] ; ["Offset of field: DecodedName::dcNum"] [:: core :: mem :: offset_of ! (DecodedName , dcNum) - 240usize] ; ["Offset of field: DecodedName::dcMode"] [:: core :: mem :: offset_of ! (DecodedName , dcMode) - 244usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncodedName { pub nameLen : :: core :: ffi :: c_int , pub totalLen : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub used : :: core :: ffi :: c_int , pub encoded : [byte ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncodedName"] [:: core :: mem :: size_of :: < EncodedName > () - 144usize] ; ["Alignment of EncodedName"] [:: core :: mem :: align_of :: < EncodedName > () - 4usize] ; ["Offset of field: EncodedName::nameLen"] [:: core :: mem :: offset_of ! (EncodedName , nameLen) - 0usize] ; ["Offset of field: EncodedName::totalLen"] [:: core :: mem :: offset_of ! (EncodedName , totalLen) - 4usize] ; ["Offset of field: EncodedName::type_"] [:: core :: mem :: offset_of ! (EncodedName , type_) - 8usize] ; ["Offset of field: EncodedName::used"] [:: core :: mem :: offset_of ! (EncodedName , used) - 12usize] ; ["Offset of field: EncodedName::encoded"] [:: core :: mem :: offset_of ! (EncodedName , encoded) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_AIA_ENTRY { pub method : word32 , pub uri : * const byte , pub uriSz : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_AIA_ENTRY"] [:: core :: mem :: size_of :: < WOLFSSL_AIA_ENTRY > () - 24usize] ; ["Alignment of WOLFSSL_AIA_ENTRY"] [:: core :: mem :: align_of :: < WOLFSSL_AIA_ENTRY > () - 8usize] ; ["Offset of field: WOLFSSL_AIA_ENTRY::method"] [:: core :: mem :: offset_of ! (WOLFSSL_AIA_ENTRY , method) - 0usize] ; ["Offset of field: WOLFSSL_AIA_ENTRY::uri"] [:: core :: mem :: offset_of ! (WOLFSSL_AIA_ENTRY , uri) - 8usize] ; ["Offset of field: WOLFSSL_AIA_ENTRY::uriSz"] [:: core :: mem :: offset_of ! (WOLFSSL_AIA_ENTRY , uriSz) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct DecodedCert { pub publicKey : * const byte , pub pubKeySize : word32 , pub pubKeyStored : :: core :: ffi :: c_int , pub certBegin : word32 , pub sigIndex : word32 , pub sigLength : word32 , pub signatureOID : word32 , pub keyOID : word32 , pub sigParamsIndex : word32 , pub sigParamsLength : word32 , pub version : :: core :: ffi :: c_int , pub altNames : * mut DNS_entry , pub altEmailNames : * mut DNS_entry , pub altDirNames : * mut DNS_entry , pub altOtherNamesRaw : * mut DNS_entry , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectHash : [byte ; 20usize] , pub issuerHash : [byte ; 20usize] , pub signature : * const byte , pub subjectCN : * const :: core :: ffi :: c_char , pub subjectCNLen : :: core :: ffi :: c_int , pub subjectCNEnc : :: core :: ffi :: c_char , pub issuer : [:: core :: ffi :: c_char ; 360usize] , pub subject : [:: core :: ffi :: c_char ; 360usize] , pub verify : :: core :: ffi :: c_int , pub source : * const byte , pub srcIdx : word32 , pub maxIdx : word32 , pub heap : * mut :: core :: ffi :: c_void , pub serial : [byte ; 32usize] , pub serialSz : :: core :: ffi :: c_int , pub extensions : * const byte , pub extensionsSz : :: core :: ffi :: c_int , pub extensionsIdx : word32 , pub extAuthInfo : * const byte , pub extAuthInfoSz : :: core :: ffi :: c_int , pub extCrlInfoRaw : * const byte , pub extCrlInfoRawSz : :: core :: ffi :: c_int , pub extCrlInfo : * const byte , pub extCrlInfoSz : :: core :: ffi :: c_int , pub extSubjKeyId : [byte ; 20usize] , pub extSubjKeyIdSz : word32 , pub extAuthKeyId : [byte ; 20usize] , pub extAuthKeyIdSz : word32 , pub pathLength : word16 , pub maxPathLen : word16 , pub policyConstSkip : byte , pub extKeyUsage : word16 , pub extExtKeyUsage : byte , pub pkCurveOID : word32 , pub beforeDate : * const byte , pub beforeDateLen : :: core :: ffi :: c_int , pub afterDate : * const byte , pub afterDateLen : :: core :: ffi :: c_int , pub issuerRaw : * const byte , pub issuerRawLen : :: core :: ffi :: c_int , pub subjectRaw : * const byte , pub subjectRawLen : :: core :: ffi :: c_int , pub subjectEmail : * const :: core :: ffi :: c_char , pub subjectEmailLen : :: core :: ffi :: c_int , pub subjectSN : * mut :: core :: ffi :: c_char , pub subjectSNLen : :: core :: ffi :: c_int , pub subjectSNEnc : :: core :: ffi :: c_char , pub subjectC : * mut :: core :: ffi :: c_char , pub subjectCLen : :: core :: ffi :: c_int , pub subjectCEnc : :: core :: ffi :: c_char , pub subjectL : * mut :: core :: ffi :: c_char , pub subjectLLen : :: core :: ffi :: c_int , pub subjectLEnc : :: core :: ffi :: c_char , pub subjectST : * mut :: core :: ffi :: c_char , pub subjectSTLen : :: core :: ffi :: c_int , pub subjectSTEnc : :: core :: ffi :: c_char , pub subjectO : * mut :: core :: ffi :: c_char , pub subjectOLen : :: core :: ffi :: c_int , pub subjectOEnc : :: core :: ffi :: c_char , pub subjectOU : * mut :: core :: ffi :: c_char , pub subjectOULen : :: core :: ffi :: c_int , pub subjectOUEnc : :: core :: ffi :: c_char , pub subjectSND : * mut :: core :: ffi :: c_char , pub subjectSNDLen : :: core :: ffi :: c_int , pub subjectSNDEnc : :: core :: ffi :: c_char , pub subjectUID : * mut :: core :: ffi :: c_char , pub subjectUIDLen : :: core :: ffi :: c_int , pub subjectUIDEnc : :: core :: ffi :: c_char , pub subjectStreet : * mut :: core :: ffi :: c_char , pub subjectStreetLen : :: core :: ffi :: c_int , pub subjectStreetEnc : :: core :: ffi :: c_char , pub subjectBC : * mut :: core :: ffi :: c_char , pub subjectBCLen : :: core :: ffi :: c_int , pub subjectBCEnc : :: core :: ffi :: c_char , pub subjectJC : * const :: core :: ffi :: c_char , pub subjectJCLen : :: core :: ffi :: c_int , pub subjectJCEnc : :: core :: ffi :: c_char , pub subjectJS : * const :: core :: ffi :: c_char , pub subjectJSLen : :: core :: ffi :: c_int , pub subjectJSEnc : :: core :: ffi :: c_char , pub subjectPC : * mut :: core :: ffi :: c_char , pub subjectPCLen : :: core :: ffi :: c_int , pub subjectPCEnc : :: core :: ffi :: c_char , pub extCertPolicies : [[:: core :: ffi :: c_char ; 200usize] ; 2usize] , pub extCertPoliciesNb : :: core :: ffi :: c_int , pub nsCertType : byte , pub contentType : * const :: core :: ffi :: c_char , pub contentTypeLen : :: core :: ffi :: c_int , pub cPwd : * const :: core :: ffi :: c_char , pub cPwdLen : :: core :: ffi :: c_int , pub sNum : * const :: core :: ffi :: c_char , pub sNumLen : :: core :: ffi :: c_int , pub dnQualifier : * mut :: core :: ffi :: c_char , pub dnQualifierLen : :: core :: ffi :: c_int , pub initials : * mut :: core :: ffi :: c_char , pub initialsLen : :: core :: ffi :: c_int , pub surname : * mut :: core :: ffi :: c_char , pub surnameLen : :: core :: ffi :: c_int , pub givenName : * mut :: core :: ffi :: c_char , pub givenNameLen : :: core :: ffi :: c_int , pub unstructuredName : * const :: core :: ffi :: c_char , pub unstructuredNameLen : :: core :: ffi :: c_int , pub ca : * mut Signer , pub sigCtx : SignatureCtx , pub badDate : :: core :: ffi :: c_int , pub criticalExt : :: core :: ffi :: c_int , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 4usize] > , pub extAuthInfoList : [WOLFSSL_AIA_ENTRY ; 8usize] , pub _bitfield_align_2 : [u8 ; 0] , pub _bitfield_2 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DecodedCert"] [:: core :: mem :: size_of :: < DecodedCert > () - 2304usize] ; ["Alignment of DecodedCert"] [:: core :: mem :: align_of :: < DecodedCert > () - 8usize] ; ["Offset of field: DecodedCert::publicKey"] [:: core :: mem :: offset_of ! (DecodedCert , publicKey) - 0usize] ; ["Offset of field: DecodedCert::pubKeySize"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeySize) - 8usize] ; ["Offset of field: DecodedCert::pubKeyStored"] [:: core :: mem :: offset_of ! (DecodedCert , pubKeyStored) - 12usize] ; ["Offset of field: DecodedCert::certBegin"] [:: core :: mem :: offset_of ! (DecodedCert , certBegin) - 16usize] ; ["Offset of field: DecodedCert::sigIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigIndex) - 20usize] ; ["Offset of field: DecodedCert::sigLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigLength) - 24usize] ; ["Offset of field: DecodedCert::signatureOID"] [:: core :: mem :: offset_of ! (DecodedCert , signatureOID) - 28usize] ; ["Offset of field: DecodedCert::keyOID"] [:: core :: mem :: offset_of ! (DecodedCert , keyOID) - 32usize] ; ["Offset of field: DecodedCert::sigParamsIndex"] [:: core :: mem :: offset_of ! (DecodedCert , sigParamsIndex) - 36usize] ; ["Offset of field: DecodedCert::sigParamsLength"] [:: core :: mem :: offset_of ! (DecodedCert , sigParamsLength) - 40usize] ; ["Offset of field: DecodedCert::version"] [:: core :: mem :: offset_of ! (DecodedCert , version) - 44usize] ; ["Offset of field: DecodedCert::altNames"] [:: core :: mem :: offset_of ! (DecodedCert , altNames) - 48usize] ; ["Offset of field: DecodedCert::altEmailNames"] [:: core :: mem :: offset_of ! (DecodedCert , altEmailNames) - 56usize] ; ["Offset of field: DecodedCert::altDirNames"] [:: core :: mem :: offset_of ! (DecodedCert , altDirNames) - 64usize] ; ["Offset of field: DecodedCert::altOtherNamesRaw"] [:: core :: mem :: offset_of ! (DecodedCert , altOtherNamesRaw) - 72usize] ; ["Offset of field: DecodedCert::permittedNames"] [:: core :: mem :: offset_of ! (DecodedCert , permittedNames) - 80usize] ; ["Offset of field: DecodedCert::excludedNames"] [:: core :: mem :: offset_of ! (DecodedCert , excludedNames) - 88usize] ; ["Offset of field: DecodedCert::subjectHash"] [:: core :: mem :: offset_of ! (DecodedCert , subjectHash) - 96usize] ; ["Offset of field: DecodedCert::issuerHash"] [:: core :: mem :: offset_of ! (DecodedCert , issuerHash) - 116usize] ; ["Offset of field: DecodedCert::signature"] [:: core :: mem :: offset_of ! (DecodedCert , signature) - 136usize] ; ["Offset of field: DecodedCert::subjectCN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCN) - 144usize] ; ["Offset of field: DecodedCert::subjectCNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNLen) - 152usize] ; ["Offset of field: DecodedCert::subjectCNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCNEnc) - 156usize] ; ["Offset of field: DecodedCert::issuer"] [:: core :: mem :: offset_of ! (DecodedCert , issuer) - 157usize] ; ["Offset of field: DecodedCert::subject"] [:: core :: mem :: offset_of ! (DecodedCert , subject) - 517usize] ; ["Offset of field: DecodedCert::verify"] [:: core :: mem :: offset_of ! (DecodedCert , verify) - 880usize] ; ["Offset of field: DecodedCert::source"] [:: core :: mem :: offset_of ! (DecodedCert , source) - 888usize] ; ["Offset of field: DecodedCert::srcIdx"] [:: core :: mem :: offset_of ! (DecodedCert , srcIdx) - 896usize] ; ["Offset of field: DecodedCert::maxIdx"] [:: core :: mem :: offset_of ! (DecodedCert , maxIdx) - 900usize] ; ["Offset of field: DecodedCert::heap"] [:: core :: mem :: offset_of ! (DecodedCert , heap) - 904usize] ; ["Offset of field: DecodedCert::serial"] [:: core :: mem :: offset_of ! (DecodedCert , serial) - 912usize] ; ["Offset of field: DecodedCert::serialSz"] [:: core :: mem :: offset_of ! (DecodedCert , serialSz) - 944usize] ; ["Offset of field: DecodedCert::extensions"] [:: core :: mem :: offset_of ! (DecodedCert , extensions) - 952usize] ; ["Offset of field: DecodedCert::extensionsSz"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsSz) - 960usize] ; ["Offset of field: DecodedCert::extensionsIdx"] [:: core :: mem :: offset_of ! (DecodedCert , extensionsIdx) - 964usize] ; ["Offset of field: DecodedCert::extAuthInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfo) - 968usize] ; ["Offset of field: DecodedCert::extAuthInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoSz) - 976usize] ; ["Offset of field: DecodedCert::extCrlInfoRaw"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRaw) - 984usize] ; ["Offset of field: DecodedCert::extCrlInfoRawSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoRawSz) - 992usize] ; ["Offset of field: DecodedCert::extCrlInfo"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfo) - 1000usize] ; ["Offset of field: DecodedCert::extCrlInfoSz"] [:: core :: mem :: offset_of ! (DecodedCert , extCrlInfoSz) - 1008usize] ; ["Offset of field: DecodedCert::extSubjKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyId) - 1012usize] ; ["Offset of field: DecodedCert::extSubjKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extSubjKeyIdSz) - 1032usize] ; ["Offset of field: DecodedCert::extAuthKeyId"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyId) - 1036usize] ; ["Offset of field: DecodedCert::extAuthKeyIdSz"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthKeyIdSz) - 1056usize] ; ["Offset of field: DecodedCert::pathLength"] [:: core :: mem :: offset_of ! (DecodedCert , pathLength) - 1060usize] ; ["Offset of field: DecodedCert::maxPathLen"] [:: core :: mem :: offset_of ! (DecodedCert , maxPathLen) - 1062usize] ; ["Offset of field: DecodedCert::policyConstSkip"] [:: core :: mem :: offset_of ! (DecodedCert , policyConstSkip) - 1064usize] ; ["Offset of field: DecodedCert::extKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extKeyUsage) - 1066usize] ; ["Offset of field: DecodedCert::extExtKeyUsage"] [:: core :: mem :: offset_of ! (DecodedCert , extExtKeyUsage) - 1068usize] ; ["Offset of field: DecodedCert::pkCurveOID"] [:: core :: mem :: offset_of ! (DecodedCert , pkCurveOID) - 1072usize] ; ["Offset of field: DecodedCert::beforeDate"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDate) - 1080usize] ; ["Offset of field: DecodedCert::beforeDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , beforeDateLen) - 1088usize] ; ["Offset of field: DecodedCert::afterDate"] [:: core :: mem :: offset_of ! (DecodedCert , afterDate) - 1096usize] ; ["Offset of field: DecodedCert::afterDateLen"] [:: core :: mem :: offset_of ! (DecodedCert , afterDateLen) - 1104usize] ; ["Offset of field: DecodedCert::issuerRaw"] [:: core :: mem :: offset_of ! (DecodedCert , issuerRaw) - 1112usize] ; ["Offset of field: DecodedCert::issuerRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , issuerRawLen) - 1120usize] ; ["Offset of field: DecodedCert::subjectRaw"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRaw) - 1128usize] ; ["Offset of field: DecodedCert::subjectRawLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectRawLen) - 1136usize] ; ["Offset of field: DecodedCert::subjectEmail"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmail) - 1144usize] ; ["Offset of field: DecodedCert::subjectEmailLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectEmailLen) - 1152usize] ; ["Offset of field: DecodedCert::subjectSN"] [:: core :: mem :: offset_of ! (DecodedCert , subjectSN) - 1160usize] ; ["Offset of field: DecodedCert::subjectSNLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectSNLen) - 1168usize] ; ["Offset of field: DecodedCert::subjectSNEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectSNEnc) - 1172usize] ; ["Offset of field: DecodedCert::subjectC"] [:: core :: mem :: offset_of ! (DecodedCert , subjectC) - 1176usize] ; ["Offset of field: DecodedCert::subjectCLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCLen) - 1184usize] ; ["Offset of field: DecodedCert::subjectCEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectCEnc) - 1188usize] ; ["Offset of field: DecodedCert::subjectL"] [:: core :: mem :: offset_of ! (DecodedCert , subjectL) - 1192usize] ; ["Offset of field: DecodedCert::subjectLLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectLLen) - 1200usize] ; ["Offset of field: DecodedCert::subjectLEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectLEnc) - 1204usize] ; ["Offset of field: DecodedCert::subjectST"] [:: core :: mem :: offset_of ! (DecodedCert , subjectST) - 1208usize] ; ["Offset of field: DecodedCert::subjectSTLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectSTLen) - 1216usize] ; ["Offset of field: DecodedCert::subjectSTEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectSTEnc) - 1220usize] ; ["Offset of field: DecodedCert::subjectO"] [:: core :: mem :: offset_of ! (DecodedCert , subjectO) - 1224usize] ; ["Offset of field: DecodedCert::subjectOLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectOLen) - 1232usize] ; ["Offset of field: DecodedCert::subjectOEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectOEnc) - 1236usize] ; ["Offset of field: DecodedCert::subjectOU"] [:: core :: mem :: offset_of ! (DecodedCert , subjectOU) - 1240usize] ; ["Offset of field: DecodedCert::subjectOULen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectOULen) - 1248usize] ; ["Offset of field: DecodedCert::subjectOUEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectOUEnc) - 1252usize] ; ["Offset of field: DecodedCert::subjectSND"] [:: core :: mem :: offset_of ! (DecodedCert , subjectSND) - 1256usize] ; ["Offset of field: DecodedCert::subjectSNDLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectSNDLen) - 1264usize] ; ["Offset of field: DecodedCert::subjectSNDEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectSNDEnc) - 1268usize] ; ["Offset of field: DecodedCert::subjectUID"] [:: core :: mem :: offset_of ! (DecodedCert , subjectUID) - 1272usize] ; ["Offset of field: DecodedCert::subjectUIDLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectUIDLen) - 1280usize] ; ["Offset of field: DecodedCert::subjectUIDEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectUIDEnc) - 1284usize] ; ["Offset of field: DecodedCert::subjectStreet"] [:: core :: mem :: offset_of ! (DecodedCert , subjectStreet) - 1288usize] ; ["Offset of field: DecodedCert::subjectStreetLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectStreetLen) - 1296usize] ; ["Offset of field: DecodedCert::subjectStreetEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectStreetEnc) - 1300usize] ; ["Offset of field: DecodedCert::subjectBC"] [:: core :: mem :: offset_of ! (DecodedCert , subjectBC) - 1304usize] ; ["Offset of field: DecodedCert::subjectBCLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectBCLen) - 1312usize] ; ["Offset of field: DecodedCert::subjectBCEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectBCEnc) - 1316usize] ; ["Offset of field: DecodedCert::subjectJC"] [:: core :: mem :: offset_of ! (DecodedCert , subjectJC) - 1320usize] ; ["Offset of field: DecodedCert::subjectJCLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectJCLen) - 1328usize] ; ["Offset of field: DecodedCert::subjectJCEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectJCEnc) - 1332usize] ; ["Offset of field: DecodedCert::subjectJS"] [:: core :: mem :: offset_of ! (DecodedCert , subjectJS) - 1336usize] ; ["Offset of field: DecodedCert::subjectJSLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectJSLen) - 1344usize] ; ["Offset of field: DecodedCert::subjectJSEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectJSEnc) - 1348usize] ; ["Offset of field: DecodedCert::subjectPC"] [:: core :: mem :: offset_of ! (DecodedCert , subjectPC) - 1352usize] ; ["Offset of field: DecodedCert::subjectPCLen"] [:: core :: mem :: offset_of ! (DecodedCert , subjectPCLen) - 1360usize] ; ["Offset of field: DecodedCert::subjectPCEnc"] [:: core :: mem :: offset_of ! (DecodedCert , subjectPCEnc) - 1364usize] ; ["Offset of field: DecodedCert::extCertPolicies"] [:: core :: mem :: offset_of ! (DecodedCert , extCertPolicies) - 1365usize] ; ["Offset of field: DecodedCert::extCertPoliciesNb"] [:: core :: mem :: offset_of ! (DecodedCert , extCertPoliciesNb) - 1768usize] ; ["Offset of field: DecodedCert::nsCertType"] [:: core :: mem :: offset_of ! (DecodedCert , nsCertType) - 1772usize] ; ["Offset of field: DecodedCert::contentType"] [:: core :: mem :: offset_of ! (DecodedCert , contentType) - 1776usize] ; ["Offset of field: DecodedCert::contentTypeLen"] [:: core :: mem :: offset_of ! (DecodedCert , contentTypeLen) - 1784usize] ; ["Offset of field: DecodedCert::cPwd"] [:: core :: mem :: offset_of ! (DecodedCert , cPwd) - 1792usize] ; ["Offset of field: DecodedCert::cPwdLen"] [:: core :: mem :: offset_of ! (DecodedCert , cPwdLen) - 1800usize] ; ["Offset of field: DecodedCert::sNum"] [:: core :: mem :: offset_of ! (DecodedCert , sNum) - 1808usize] ; ["Offset of field: DecodedCert::sNumLen"] [:: core :: mem :: offset_of ! (DecodedCert , sNumLen) - 1816usize] ; ["Offset of field: DecodedCert::dnQualifier"] [:: core :: mem :: offset_of ! (DecodedCert , dnQualifier) - 1824usize] ; ["Offset of field: DecodedCert::dnQualifierLen"] [:: core :: mem :: offset_of ! (DecodedCert , dnQualifierLen) - 1832usize] ; ["Offset of field: DecodedCert::initials"] [:: core :: mem :: offset_of ! (DecodedCert , initials) - 1840usize] ; ["Offset of field: DecodedCert::initialsLen"] [:: core :: mem :: offset_of ! (DecodedCert , initialsLen) - 1848usize] ; ["Offset of field: DecodedCert::surname"] [:: core :: mem :: offset_of ! (DecodedCert , surname) - 1856usize] ; ["Offset of field: DecodedCert::surnameLen"] [:: core :: mem :: offset_of ! (DecodedCert , surnameLen) - 1864usize] ; ["Offset of field: DecodedCert::givenName"] [:: core :: mem :: offset_of ! (DecodedCert , givenName) - 1872usize] ; ["Offset of field: DecodedCert::givenNameLen"] [:: core :: mem :: offset_of ! (DecodedCert , givenNameLen) - 1880usize] ; ["Offset of field: DecodedCert::unstructuredName"] [:: core :: mem :: offset_of ! (DecodedCert , unstructuredName) - 1888usize] ; ["Offset of field: DecodedCert::unstructuredNameLen"] [:: core :: mem :: offset_of ! (DecodedCert , unstructuredNameLen) - 1896usize] ; ["Offset of field: DecodedCert::ca"] [:: core :: mem :: offset_of ! (DecodedCert , ca) - 1904usize] ; ["Offset of field: DecodedCert::sigCtx"] [:: core :: mem :: offset_of ! (DecodedCert , sigCtx) - 1912usize] ; ["Offset of field: DecodedCert::badDate"] [:: core :: mem :: offset_of ! (DecodedCert , badDate) - 2088usize] ; ["Offset of field: DecodedCert::criticalExt"] [:: core :: mem :: offset_of ! (DecodedCert , criticalExt) - 2092usize] ; ["Offset of field: DecodedCert::extAuthInfoList"] [:: core :: mem :: offset_of ! (DecodedCert , extAuthInfoList) - 2104usize] ; } ; impl DecodedCert { # [inline] pub fn subjectCNStored (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_subjectCNStored (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn subjectCNStored_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_subjectCNStored_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn extSubjKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extSubjKeyIdSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extSubjKeyIdSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn extAuthKeyIdSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extAuthKeyIdSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extAuthKeyIdSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn extNameConstraintSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extNameConstraintSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extNameConstraintSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn isCA (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (4usize , 1u8) as u8) } } # [inline] pub fn set_isCA (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (4usize , 1u8 , val as u64) } } # [inline] pub unsafe fn isCA_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 4usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_isCA_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 4usize , 1u8 , val as u64 ,) } } # [inline] pub fn pathLengthSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (5usize , 1u8) as u8) } } # [inline] pub fn set_pathLengthSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (5usize , 1u8 , val as u64) } } # [inline] pub unsafe fn pathLengthSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 5usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_pathLengthSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 5usize , 1u8 , val as u64 ,) } } # [inline] pub fn weOwnAltNames (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (6usize , 1u8) as u8) } } # [inline] pub fn set_weOwnAltNames (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (6usize , 1u8 , val as u64) } } # [inline] pub unsafe fn weOwnAltNames_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 6usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_weOwnAltNames_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 6usize , 1u8 , val as u64 ,) } } # [inline] pub fn extKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (7usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extKeyUsageSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 7usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extKeyUsageSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 7usize , 1u8 , val as u64 ,) } } # [inline] pub fn extExtKeyUsageSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (8usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (8usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extExtKeyUsageSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 8usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extExtKeyUsageSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 8usize , 1u8 , val as u64 ,) } } # [inline] pub fn extCRLdistSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (9usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (9usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extCRLdistSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 9usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extCRLdistSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 9usize , 1u8 , val as u64 ,) } } # [inline] pub fn extAuthInfoSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (10usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (10usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extAuthInfoSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 10usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extAuthInfoSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 10usize , 1u8 , val as u64 ,) } } # [inline] pub fn extBasicConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (11usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (11usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extBasicConstSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 11usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extBasicConstSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 11usize , 1u8 , val as u64 ,) } } # [inline] pub fn extPolicyConstSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (12usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (12usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extPolicyConstSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 12usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extPolicyConstSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 12usize , 1u8 , val as u64 ,) } } # [inline] pub fn extPolicyConstRxpSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (13usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstRxpSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (13usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extPolicyConstRxpSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 13usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extPolicyConstRxpSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 13usize , 1u8 , val as u64 ,) } } # [inline] pub fn extPolicyConstIpmSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (14usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstIpmSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (14usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extPolicyConstIpmSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 14usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extPolicyConstIpmSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 14usize , 1u8 , val as u64 ,) } } # [inline] pub fn extSubjAltNameSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (15usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (15usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extSubjAltNameSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 15usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extSubjAltNameSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 15usize , 1u8 , val as u64 ,) } } # [inline] pub fn inhibitAnyOidSet (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (16usize , 1u8) as u8) } } # [inline] pub fn set_inhibitAnyOidSet (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (16usize , 1u8 , val as u64) } } # [inline] pub unsafe fn inhibitAnyOidSet_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 16usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_inhibitAnyOidSet_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 16usize , 1u8 , val as u64 ,) } } # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (17usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (17usize , 1u8 , val as u64) } } # [inline] pub unsafe fn selfSigned_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 17usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_selfSigned_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 17usize , 1u8 , val as u64 ,) } } # [inline] pub fn extCRLdistCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (18usize , 1u8) as u8) } } # [inline] pub fn set_extCRLdistCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (18usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extCRLdistCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 18usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extCRLdistCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 18usize , 1u8 , val as u64 ,) } } # [inline] pub fn extAuthInfoCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (19usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (19usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extAuthInfoCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 19usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extAuthInfoCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 19usize , 1u8 , val as u64 ,) } } # [inline] pub fn extBasicConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (20usize , 1u8) as u8) } } # [inline] pub fn set_extBasicConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (20usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extBasicConstCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 20usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extBasicConstCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 20usize , 1u8 , val as u64 ,) } } # [inline] pub fn extPolicyConstCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (21usize , 1u8) as u8) } } # [inline] pub fn set_extPolicyConstCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (21usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extPolicyConstCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 21usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extPolicyConstCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 21usize , 1u8 , val as u64 ,) } } # [inline] pub fn extSubjAltNameCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (22usize , 1u8) as u8) } } # [inline] pub fn set_extSubjAltNameCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (22usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extSubjAltNameCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 22usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extSubjAltNameCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 22usize , 1u8 , val as u64 ,) } } # [inline] pub fn extAuthKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (23usize , 1u8) as u8) } } # [inline] pub fn set_extAuthKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (23usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extAuthKeyIdCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 23usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extAuthKeyIdCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 23usize , 1u8 , val as u64 ,) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (24usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (24usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extNameConstraintCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 24usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extNameConstraintCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 24usize , 1u8 , val as u64 ,) } } # [inline] pub fn extNameConstraintHasUnsupported (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (25usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintHasUnsupported (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (25usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extNameConstraintHasUnsupported_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 25usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extNameConstraintHasUnsupported_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 25usize , 1u8 , val as u64 ,) } } # [inline] pub fn extSubjKeyIdCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (26usize , 1u8) as u8) } } # [inline] pub fn set_extSubjKeyIdCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (26usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extSubjKeyIdCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 26usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extSubjKeyIdCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 26usize , 1u8 , val as u64 ,) } } # [inline] pub fn extKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (27usize , 1u8) as u8) } } # [inline] pub fn set_extKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (27usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extKeyUsageCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 27usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extKeyUsageCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 27usize , 1u8 , val as u64 ,) } } # [inline] pub fn extExtKeyUsageCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (28usize , 1u8) as u8) } } # [inline] pub fn set_extExtKeyUsageCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (28usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extExtKeyUsageCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 28usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extExtKeyUsageCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 28usize , 1u8 , val as u64 ,) } } # [inline] pub fn isCSR (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (29usize , 1u8) as u8) } } # [inline] pub fn set_isCSR (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (29usize , 1u8 , val as u64) } } # [inline] pub unsafe fn isCSR_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 29usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_isCSR_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 4usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 29usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (subjectCNStored : byte , extSubjKeyIdSet : byte , extAuthKeyIdSet : byte , extNameConstraintSet : byte , isCA : byte , pathLengthSet : byte , weOwnAltNames : byte , extKeyUsageSet : byte , extExtKeyUsageSet : byte , extCRLdistSet : byte , extAuthInfoSet : byte , extBasicConstSet : byte , extPolicyConstSet : byte , extPolicyConstRxpSet : byte , extPolicyConstIpmSet : byte , extSubjAltNameSet : byte , inhibitAnyOidSet : byte , selfSigned : byte , extCRLdistCrit : byte , extAuthInfoCrit : byte , extBasicConstCrit : byte , extPolicyConstCrit : byte , extSubjAltNameCrit : byte , extAuthKeyIdCrit : byte , extNameConstraintCrit : byte , extNameConstraintHasUnsupported : byte , extSubjKeyIdCrit : byte , extKeyUsageCrit : byte , extExtKeyUsageCrit : byte , isCSR : byte) -> __BindgenBitfieldUnit < [u8 ; 4usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 4usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let subjectCNStored : u8 = unsafe { :: core :: mem :: transmute (subjectCNStored) } ; subjectCNStored as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extSubjKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdSet) } ; extSubjKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extAuthKeyIdSet : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdSet) } ; extAuthKeyIdSet as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let extNameConstraintSet : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintSet) } ; extNameConstraintSet as u64 }) ; __bindgen_bitfield_unit . set (4usize , 1u8 , { let isCA : u8 = unsafe { :: core :: mem :: transmute (isCA) } ; isCA as u64 }) ; __bindgen_bitfield_unit . set (5usize , 1u8 , { let pathLengthSet : u8 = unsafe { :: core :: mem :: transmute (pathLengthSet) } ; pathLengthSet as u64 }) ; __bindgen_bitfield_unit . set (6usize , 1u8 , { let weOwnAltNames : u8 = unsafe { :: core :: mem :: transmute (weOwnAltNames) } ; weOwnAltNames as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageSet) } ; extKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (8usize , 1u8 , { let extExtKeyUsageSet : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageSet) } ; extExtKeyUsageSet as u64 }) ; __bindgen_bitfield_unit . set (9usize , 1u8 , { let extCRLdistSet : u8 = unsafe { :: core :: mem :: transmute (extCRLdistSet) } ; extCRLdistSet as u64 }) ; __bindgen_bitfield_unit . set (10usize , 1u8 , { let extAuthInfoSet : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoSet) } ; extAuthInfoSet as u64 }) ; __bindgen_bitfield_unit . set (11usize , 1u8 , { let extBasicConstSet : u8 = unsafe { :: core :: mem :: transmute (extBasicConstSet) } ; extBasicConstSet as u64 }) ; __bindgen_bitfield_unit . set (12usize , 1u8 , { let extPolicyConstSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstSet) } ; extPolicyConstSet as u64 }) ; __bindgen_bitfield_unit . set (13usize , 1u8 , { let extPolicyConstRxpSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstRxpSet) } ; extPolicyConstRxpSet as u64 }) ; __bindgen_bitfield_unit . set (14usize , 1u8 , { let extPolicyConstIpmSet : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstIpmSet) } ; extPolicyConstIpmSet as u64 }) ; __bindgen_bitfield_unit . set (15usize , 1u8 , { let extSubjAltNameSet : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameSet) } ; extSubjAltNameSet as u64 }) ; __bindgen_bitfield_unit . set (16usize , 1u8 , { let inhibitAnyOidSet : u8 = unsafe { :: core :: mem :: transmute (inhibitAnyOidSet) } ; inhibitAnyOidSet as u64 }) ; __bindgen_bitfield_unit . set (17usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (18usize , 1u8 , { let extCRLdistCrit : u8 = unsafe { :: core :: mem :: transmute (extCRLdistCrit) } ; extCRLdistCrit as u64 }) ; __bindgen_bitfield_unit . set (19usize , 1u8 , { let extAuthInfoCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoCrit) } ; extAuthInfoCrit as u64 }) ; __bindgen_bitfield_unit . set (20usize , 1u8 , { let extBasicConstCrit : u8 = unsafe { :: core :: mem :: transmute (extBasicConstCrit) } ; extBasicConstCrit as u64 }) ; __bindgen_bitfield_unit . set (21usize , 1u8 , { let extPolicyConstCrit : u8 = unsafe { :: core :: mem :: transmute (extPolicyConstCrit) } ; extPolicyConstCrit as u64 }) ; __bindgen_bitfield_unit . set (22usize , 1u8 , { let extSubjAltNameCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjAltNameCrit) } ; extSubjAltNameCrit as u64 }) ; __bindgen_bitfield_unit . set (23usize , 1u8 , { let extAuthKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extAuthKeyIdCrit) } ; extAuthKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (24usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (25usize , 1u8 , { let extNameConstraintHasUnsupported : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintHasUnsupported) } ; extNameConstraintHasUnsupported as u64 }) ; __bindgen_bitfield_unit . set (26usize , 1u8 , { let extSubjKeyIdCrit : u8 = unsafe { :: core :: mem :: transmute (extSubjKeyIdCrit) } ; extSubjKeyIdCrit as u64 }) ; __bindgen_bitfield_unit . set (27usize , 1u8 , { let extKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extKeyUsageCrit) } ; extKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (28usize , 1u8 , { let extExtKeyUsageCrit : u8 = unsafe { :: core :: mem :: transmute (extExtKeyUsageCrit) } ; extExtKeyUsageCrit as u64 }) ; __bindgen_bitfield_unit . set (29usize , 1u8 , { let isCSR : u8 = unsafe { :: core :: mem :: transmute (isCSR) } ; isCSR as u64 }) ; __bindgen_bitfield_unit } # [inline] pub fn extAuthInfoListSz (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_2 . get (0usize , 7u8) as u8) } } # [inline] pub fn set_extAuthInfoListSz (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_2 . set (0usize , 7u8 , val as u64) } } # [inline] pub unsafe fn extAuthInfoListSz_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_2) , 0usize , 7u8 ,) as u8) } } # [inline] pub unsafe fn set_extAuthInfoListSz_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_2) , 0usize , 7u8 , val as u64 ,) } } # [inline] pub fn extAuthInfoListOverflow (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_2 . get (7usize , 1u8) as u8) } } # [inline] pub fn set_extAuthInfoListOverflow (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_2 . set (7usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extAuthInfoListOverflow_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_2) , 7usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extAuthInfoListOverflow_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_2) , 7usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_2 (extAuthInfoListSz : byte , extAuthInfoListOverflow : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 7u8 , { let extAuthInfoListSz : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoListSz) } ; extAuthInfoListSz as u64 }) ; __bindgen_bitfield_unit . set (7usize , 1u8 , { let extAuthInfoListOverflow : u8 = unsafe { :: core :: mem :: transmute (extAuthInfoListOverflow) } ; extAuthInfoListOverflow as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Signer { pub pubKeySize : word32 , pub keyOID : word32 , pub keyUsage : word16 , pub extKeyUsage : byte , pub maxPathLen : word16 , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub publicKey : * const byte , pub nameLen : :: core :: ffi :: c_int , pub name : * const :: core :: ffi :: c_char , pub permittedNames : * mut Base_entry , pub excludedNames : * mut Base_entry , pub subjectNameHash : [byte ; 20usize] , pub subjectKeyIdHash : [byte ; 20usize] , pub type_ : byte , pub next : * mut Signer , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Signer"] [:: core :: mem :: size_of :: < Signer > () - 112usize] ; ["Alignment of Signer"] [:: core :: mem :: align_of :: < Signer > () - 8usize] ; ["Offset of field: Signer::pubKeySize"] [:: core :: mem :: offset_of ! (Signer , pubKeySize) - 0usize] ; ["Offset of field: Signer::keyOID"] [:: core :: mem :: offset_of ! (Signer , keyOID) - 4usize] ; ["Offset of field: Signer::keyUsage"] [:: core :: mem :: offset_of ! (Signer , keyUsage) - 8usize] ; ["Offset of field: Signer::extKeyUsage"] [:: core :: mem :: offset_of ! (Signer , extKeyUsage) - 10usize] ; ["Offset of field: Signer::maxPathLen"] [:: core :: mem :: offset_of ! (Signer , maxPathLen) - 12usize] ; ["Offset of field: Signer::publicKey"] [:: core :: mem :: offset_of ! (Signer , publicKey) - 16usize] ; ["Offset of field: Signer::nameLen"] [:: core :: mem :: offset_of ! (Signer , nameLen) - 24usize] ; ["Offset of field: Signer::name"] [:: core :: mem :: offset_of ! (Signer , name) - 32usize] ; ["Offset of field: Signer::permittedNames"] [:: core :: mem :: offset_of ! (Signer , permittedNames) - 40usize] ; ["Offset of field: Signer::excludedNames"] [:: core :: mem :: offset_of ! (Signer , excludedNames) - 48usize] ; ["Offset of field: Signer::subjectNameHash"] [:: core :: mem :: offset_of ! (Signer , subjectNameHash) - 56usize] ; ["Offset of field: Signer::subjectKeyIdHash"] [:: core :: mem :: offset_of ! (Signer , subjectKeyIdHash) - 76usize] ; ["Offset of field: Signer::type_"] [:: core :: mem :: offset_of ! (Signer , type_) - 96usize] ; ["Offset of field: Signer::next"] [:: core :: mem :: offset_of ! (Signer , next) - 104usize] ; } ; impl Signer { # [inline] pub fn selfSigned (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_selfSigned (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn selfSigned_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_selfSigned_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn extNameConstraintCrit (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintCrit (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extNameConstraintCrit_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extNameConstraintCrit_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn extNameConstraintHasUnsupported (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_extNameConstraintHasUnsupported (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn extNameConstraintHasUnsupported_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_extNameConstraintHasUnsupported_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (selfSigned : byte , extNameConstraintCrit : byte , extNameConstraintHasUnsupported : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let selfSigned : u8 = unsafe { :: core :: mem :: transmute (selfSigned) } ; selfSigned as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let extNameConstraintCrit : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintCrit) } ; extNameConstraintCrit as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let extNameConstraintHasUnsupported : u8 = unsafe { :: core :: mem :: transmute (extNameConstraintHasUnsupported) } ; extNameConstraintHasUnsupported as u64 }) ; __bindgen_bitfield_unit } } unsafe extern "C" { pub fn HashIdAlg (oidSum : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn CalcHashId (data : * const byte , len : word32 , hash : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn CalcHashId_ex (data : * const byte , len : word32 , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetHashId (id : * const byte , length : :: core :: ffi :: c_int , hash : * mut byte , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetName (cert : * mut DecodedCert , nameType : :: core :: ffi :: c_int , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn StreamOctetString (inBuf : * const byte , inBufSz : word32 , out : * mut byte , outSz : * mut word32 , idx : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn FreeAltNames (altNames : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn AltNameNew (heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } unsafe extern "C" { pub fn AltNameDup (from : * mut DNS_entry , heap : * mut :: core :: ffi :: c_void) -> * mut DNS_entry ; } unsafe extern "C" { pub fn FreeNameSubtrees (names : * mut Base_entry , heap : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn InitDecodedCert (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn InitDecodedCert_ex (cert : * mut DecodedCert , source : * const byte , inSz : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn FreeDecodedCert (cert : * mut DecodedCert) ; } unsafe extern "C" { pub fn ParseCert (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodePolicyOID (out : * mut :: core :: ffi :: c_char , outSz : word32 , in_ : * const byte , inSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn EncodePolicyOID (out : * mut byte , outSz : * mut word32 , in_ : * const :: core :: ffi :: c_char , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeExtensionType (input : * const byte , length : word32 , oid : word32 , critical : byte , cert : * mut DecodedCert , isUnknownExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn CheckCertSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ConfirmSignature (sigCtx : * mut SignatureCtx , buf : * const byte , bufSz : word32 , key : * const byte , keySz : word32 , keyOID : word32 , sig : * const byte , sigSz : word32 , sigOID : word32 , sigParams : * const byte , sigParamsSz : word32 , rsaKeyIdx : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn CheckCSRSignaturePubKey (cert : * const byte , certSz : word32 , heap : * mut :: core :: ffi :: c_void , pubKey : * const byte , pubKeySz : word32 , pubKeyOID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn AddSignature (buf : * mut byte , bodySz : :: core :: ffi :: c_int , sig : * const byte , sigSz : :: core :: ffi :: c_int , sigAlgoType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ParseCertRelative (cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , cm : * mut :: core :: ffi :: c_void , extraCa : * mut Signer) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeToKey (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeCert (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , criticalExt : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeBasicCaConstraint (input : * const byte , sz : :: core :: ffi :: c_int , isCa : * mut byte , pathLength : * mut word16 , pathLengthSet : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeSubjKeyId (input : * const byte , sz : word32 , extSubjKeyId : * mut * const byte , extSubjKeyIdSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeAuthKeyId (input : * const byte , sz : word32 , extAuthKeyId : * mut * const byte , extAuthKeyIdSz : * mut word32 , extAuthKeyIdIssuer : * mut * const byte , extAuthKeyIdIssuerSz : * mut word32 , extAuthKeyIdIssuerSN : * mut * const byte , extAuthKeyIdIssuerSNSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeKeyUsage (input : * const byte , sz : word32 , extKeyUsage : * mut word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeExtKeyUsage (input : * const byte , sz : word32 , extExtKeyUsageSrc : * mut * const byte , extExtKeyUsageSz : * mut word32 , extExtKeyUsageCount : * mut word32 , extExtKeyUsage : * mut byte , extExtKeyUsageSsh : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TryDecodeRPKToKey (cert : * mut DecodedCert) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetPubX509 (cert : * mut DecodedCert , verify : :: core :: ffi :: c_int , badDate : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn OidFromId (id : word32 , type_ : word32 , oidSz : * mut word32) -> * const byte ; } unsafe extern "C" { pub fn findSignerByKeyHash (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } unsafe extern "C" { pub fn findSignerByName (list : * mut Signer , hash : * mut byte) -> * mut Signer ; } unsafe extern "C" { pub fn FillSigner (signer : * mut Signer , cert : * mut DecodedCert , type_ : :: core :: ffi :: c_int , der : * mut DerBuffer) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn MakeSigner (heap : * mut :: core :: ffi :: c_void) -> * mut Signer ; } unsafe extern "C" { pub fn FreeSigner (signer : * mut Signer , heap : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn FreeSignerTable (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn FreeSignerTableType (table : * mut * mut Signer , rows : :: core :: ffi :: c_int , type_ : byte , heap : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn ToTraditional (input : * mut byte , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ToTraditional_ex (input : * mut byte , sz : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ToTraditionalInline (input : * const byte , inOutIdx : * mut word32 , sz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ToTraditionalInline_ex (input : * const byte , inOutIdx : * mut word32 , sz : word32 , algId : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ToTraditionalInline_ex2 (input : * const byte , inOutIdx : * mut word32 , sz : word32 , algId : * mut word32 , eccOid : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ToTraditionalEnc (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , algId : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn UnTraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TraditionalEnc_ex (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , hmacOid : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TraditionalEnc (key : * mut byte , keySz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecryptContent (input : * mut byte , sz : word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn EncryptContent (input : * mut byte , sz : word32 , out : * mut byte , outSz : * mut word32 , password : * const :: core :: ffi :: c_char , passwordSz : :: core :: ffi :: c_int , vPKCS : :: core :: ffi :: c_int , vAlgo : :: core :: ffi :: c_int , encAlgId : :: core :: ffi :: c_int , salt : * mut byte , saltSz : word32 , itt : :: core :: ffi :: c_int , hmacOid : :: core :: ffi :: c_int , rng : * mut WC_RNG , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_GetKeyOID (key : * mut byte , keySz : word32 , curveOID : * mut * const byte , oidSz : * mut word32 , algoID : * mut :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type wolfssl_tm = tm ; unsafe extern "C" { pub fn GetFormattedTime (currTime : * mut :: core :: ffi :: c_void , buf : * mut byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetAsnTimeString (currTime : * mut :: core :: ffi :: c_void , buf : * mut byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetFormattedTime_ex (currTime : * mut :: core :: ffi :: c_void , buf : * mut byte , len : word32 , format : byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ExtractDate (date : * const :: core :: ffi :: c_uchar , format : :: core :: ffi :: c_uchar , certTime : * mut wolfssl_tm , idx : * mut :: core :: ffi :: c_int , len : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DateGreaterThan (a : * const tm , b : * const tm) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ValidateGmtime (inTime : * mut tm) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ValidateDate (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int , len : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_ValidateDateWithTime (date : * const byte , format : byte , dateType : :: core :: ffi :: c_int , checkTime : time_t , len : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AsnSetSkipDateCheck (skip_p : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_AsnGetSkipDateCheck () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetNameEx (output : * mut byte , outputSz : word32 , name : * mut CertName , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetName (output : * mut byte , outputSz : word32 , name : * mut CertName) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetOneCertName (name : * mut CertName , idx : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn GetCertNameId (idx : :: core :: ffi :: c_int) -> byte ; } unsafe extern "C" { pub fn GetShortInt (input : * const byte , inOutIdx : * mut word32 , number : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetShortInt (output : * mut byte , inOutIdx : * mut word32 , number : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetSigName (oid : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn GetLength (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetLength_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetASNHeader (input : * const byte , tag : byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetSequence (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetSequence_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_IndexSequenceOf (seqOf : * const byte , seqOfSz : word32 , seqIndex : usize , out : * mut * const byte , outSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetOctetString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn CheckBitString (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , zeroBits : :: core :: ffi :: c_int , unusedBits : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetSet (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetSet_ex (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32 , check : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetMyVersion (input : * const byte , inOutIdx : * mut word32 , version : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetInt (mpi : * mut mp_int , input : * const byte , inOutIdx : * mut word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetASNInt (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_oid_sum (input : * const byte , length : :: core :: ffi :: c_int) -> word32 ; } unsafe extern "C" { pub fn DecodeObjectId (in_ : * const byte , inSz : word32 , out : * mut word16 , outSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetASNObjectId (input : * const byte , inOutIdx : * mut word32 , len : * mut :: core :: ffi :: c_int , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetObjectId (len : :: core :: ffi :: c_int , output : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetObjectId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetAlgoId (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetAlgoIdEx (input : * const byte , inOutIdx : * mut word32 , oid : * mut word32 , oidType : word32 , maxIdx : word32 , absentParams : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetASNTag (input : * const byte , inOutIdx : * mut word32 , tag : * mut byte , maxIdx : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetASN_BitString (input : * const byte , idx : word32 , length : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetASNLength (length : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetASNSequence (len : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetASNOctetString (len : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetASNImplicit (tag : byte , number : byte , len : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetASNExplicit (number : byte , len : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetASNSet (len : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetLength (length : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetLengthEx (length : word32 , output : * mut byte , isIndef : byte) -> word32 ; } unsafe extern "C" { pub fn SetHeader (tag : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } unsafe extern "C" { pub fn SetSequence (len : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetSequenceEx (len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } unsafe extern "C" { pub fn SetIndefEnd (output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetOctetString (len : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetOctetStringEx (len : word32 , output : * mut byte , indef : byte) -> word32 ; } unsafe extern "C" { pub fn SetASNInt (len : :: core :: ffi :: c_int , firstByte : byte , output : * mut byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetBitString (len : word32 , unusedBits : byte , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetImplicit (tag : byte , number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } unsafe extern "C" { pub fn SetExplicit (number : byte , len : word32 , output : * mut byte , isIndef : byte) -> word32 ; } unsafe extern "C" { pub fn SetSet (len : word32 , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn SetAlgoID (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int) -> word32 ; } unsafe extern "C" { pub fn SetAlgoIDEx (algoOID : :: core :: ffi :: c_int , output : * mut byte , type_ : :: core :: ffi :: c_int , curveSz : :: core :: ffi :: c_int , absentParams : byte) -> word32 ; } unsafe extern "C" { pub fn wc_EncodeRsaPssAlgoId (hashOID : :: core :: ffi :: c_int , saltLen : :: core :: ffi :: c_int , out : * mut byte , outSz : word32) -> word32 ; } unsafe extern "C" { pub fn wc_DecodeRsaPssParams (params : * const byte , sz : word32 , hash : * mut wc_HashType , mgf : * mut :: core :: ffi :: c_int , saltLen : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetMyVersion (version : word32 , output : * mut byte , header : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetSerialNumber (sn : * const byte , snSz : word32 , output : * mut byte , outputSz : word32 , maxSnSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetOthername (name : * mut :: core :: ffi :: c_void , output : * mut byte) -> word32 ; } unsafe extern "C" { pub fn GetNameHash (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetNameHash_ex (source : * const byte , idx : * mut word32 , hash : * mut byte , maxIdx : :: core :: ffi :: c_int , sigOID : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CheckPrivateKeyCert (key : * const byte , keySz : word32 , der : * mut DecodedCert , checkAlt : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_CheckPrivateKey (privKey : * const byte , privKeySz : word32 , pubKey : * const byte , pubKeySz : word32 , ks : Key_Sum , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn StoreDHparams (out : * mut byte , outLen : * mut word32 , p : * mut mp_int , g : * mut mp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn FlattenAltNames (output : * mut byte , outputSz : word32 , names : * const DNS_entry) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EncodeName (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EncodeNameCanonical (name : * mut EncodedName , nameStr : * const :: core :: ffi :: c_char , nameType : :: core :: ffi :: c_char , type_ : byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn StoreECC_DSA_Sig (out : * mut byte , outLen : * mut word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn StoreECC_DSA_Sig_Bin (out : * mut byte , outLen : * mut word32 , r : * const byte , rLen : word32 , s : * const byte , sLen : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeECC_DSA_Sig_Bin (sig : * const byte , sigLen : word32 , r : * mut byte , rLen : * mut word32 , s : * mut byte , sLen : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeECC_DSA_Sig (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeECC_DSA_Sig_Ex (sig : * const byte , sigLen : word32 , r : * mut mp_int , s : * mut mp_int , init : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn InitSignatureCtx (sigCtx : * mut SignatureCtx , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn FreeSignatureCtx (sigCtx : * mut SignatureCtx) ; } unsafe extern "C" { pub fn SetAsymKeyDerPublic (pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int , withHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeAsymKeyPublic_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , keyType : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeAsymKeyPublic (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_EncryptedInfoParse (info : * mut EncryptedInfo , pBuffer : * mut * const :: core :: ffi :: c_char , bufSz : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn PemToDer (buff : * const :: core :: ffi :: c_uchar , longSz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int , pDer : * mut * mut DerBuffer , heap : * mut :: core :: ffi :: c_void , info : * mut EncryptedInfo , keyFormat : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn AllocDer (der : * mut * mut DerBuffer , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn AllocCopyDer (der : * mut * mut DerBuffer , buff : * const :: core :: ffi :: c_uchar , length : word32 , type_ : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn FreeDer (der : * mut * mut DerBuffer) ; } unsafe extern "C" { pub fn ParseKeyUsageStr (value : * const :: core :: ffi :: c_char , keyUsage : * mut word16 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn ParseExtKeyUsageStr (value : * const :: core :: ffi :: c_char , extKeyUsage : * mut byte , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub const cert_enums_RSA_KEY : cert_enums = 10 ; pub const cert_enums_ECC_KEY : cert_enums = 12 ; pub const cert_enums_ED25519_KEY : cert_enums = 13 ; pub const cert_enums_ED448_KEY : cert_enums = 14 ; pub const cert_enums_DSA_KEY : cert_enums = 15 ; pub const cert_enums_FALCON_LEVEL1_KEY : cert_enums = 16 ; pub const cert_enums_FALCON_LEVEL5_KEY : cert_enums = 17 ; pub const cert_enums_DILITHIUM_LEVEL2_KEY : cert_enums = 18 ; pub const cert_enums_DILITHIUM_LEVEL3_KEY : cert_enums = 19 ; pub const cert_enums_DILITHIUM_LEVEL5_KEY : cert_enums = 20 ; pub const cert_enums_ML_DSA_LEVEL2_KEY : cert_enums = 21 ; pub const cert_enums_ML_DSA_LEVEL3_KEY : cert_enums = 22 ; pub const cert_enums_ML_DSA_LEVEL5_KEY : cert_enums = 23 ; pub const cert_enums_SLH_DSA_SHA2_128S_KEY : cert_enums = 24 ; pub const cert_enums_SLH_DSA_SHA2_128F_KEY : cert_enums = 25 ; pub const cert_enums_SLH_DSA_SHA2_192S_KEY : cert_enums = 26 ; pub const cert_enums_SLH_DSA_SHA2_192F_KEY : cert_enums = 27 ; pub const cert_enums_SLH_DSA_SHA2_256S_KEY : cert_enums = 28 ; pub const cert_enums_SLH_DSA_SHA2_256F_KEY : cert_enums = 29 ; pub const cert_enums_SLH_DSA_SHAKE_128S_KEY : cert_enums = 30 ; pub const cert_enums_SLH_DSA_SHAKE_128F_KEY : cert_enums = 31 ; pub const cert_enums_SLH_DSA_SHAKE_192S_KEY : cert_enums = 32 ; pub const cert_enums_SLH_DSA_SHAKE_192F_KEY : cert_enums = 33 ; pub const cert_enums_SLH_DSA_SHAKE_256S_KEY : cert_enums = 34 ; pub const cert_enums_SLH_DSA_SHAKE_256F_KEY : cert_enums = 35 ; pub type cert_enums = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct AsnHashes { pub sha : [byte ; 20usize] , pub sha256 : [byte ; 32usize] , pub sha384 : [byte ; 48usize] , pub sha512 : [byte ; 64usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of AsnHashes"] [:: core :: mem :: size_of :: < AsnHashes > () - 164usize] ; ["Alignment of AsnHashes"] [:: core :: mem :: align_of :: < AsnHashes > () - 1usize] ; ["Offset of field: AsnHashes::sha"] [:: core :: mem :: offset_of ! (AsnHashes , sha) - 0usize] ; ["Offset of field: AsnHashes::sha256"] [:: core :: mem :: offset_of ! (AsnHashes , sha256) - 20usize] ; ["Offset of field: AsnHashes::sha384"] [:: core :: mem :: offset_of ! (AsnHashes , sha384) - 52usize] ; ["Offset of field: AsnHashes::sha512"] [:: core :: mem :: offset_of ! (AsnHashes , sha512) - 100usize] ; } ; unsafe extern "C" { pub fn AsnHashesHash (hashes : * mut AsnHashes , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn AsnHashesGetHash (hashes : * const AsnHashes , hashAlg : :: core :: ffi :: c_int , size : * mut :: core :: ffi :: c_int) -> * const byte ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CertStatus { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RevokedCert { _unused : [u8 ; 0] , } unsafe extern "C" { pub fn wolfssl_local_MatchBaseName (type_ : :: core :: ffi :: c_int , name : * const :: core :: ffi :: c_char , nameSz : :: core :: ffi :: c_int , base : * const :: core :: ffi :: c_char , baseSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfssl_local_MatchIpSubnet (ip : * const byte , ipSz : :: core :: ffi :: c_int , constraint : * const byte , constraintSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeAsymKey_Assign (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , seed : * mut * const byte , seedLen : * mut word32 , privKey : * mut * const byte , privKeyLen : * mut word32 , pubKey : * mut * const byte , pubKeyLen : * mut word32 , inOutKeyType : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn DecodeAsymKey (input : * const byte , inOutIdx : * mut word32 , inSz : word32 , privKey : * mut byte , privKeyLen : * mut word32 , pubKey : * mut byte , pubKeyLen : * mut word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SetAsymKeyDer (privKey : * const byte , privKeyLen : word32 , pubKey : * const byte , pubKeyLen : word32 , output : * mut byte , outLen : word32 , keyType : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const PBESTypes_PBE_MD5_DES : PBESTypes = 0 ; pub const PBESTypes_PBE_SHA1_RC4_128 : PBESTypes = 1 ; pub const PBESTypes_PBE_SHA1_DES : PBESTypes = 2 ; pub const PBESTypes_PBE_SHA1_DES3 : PBESTypes = 3 ; pub const PBESTypes_PBE_AES256_CBC : PBESTypes = 4 ; pub const PBESTypes_PBE_AES128_CBC : PBESTypes = 5 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC : PBESTypes = 6 ; pub const PBESTypes_PBE_SHA1_RC4_128_SUM : PBESTypes = 657 ; pub const PBESTypes_PBE_SHA1_DES3_SUM : PBESTypes = 659 ; pub const PBESTypes_PBE_SHA1_40RC2_CBC_SUM : PBESTypes = 662 ; pub const PBESTypes_PBE_MD5_DES_SUM : PBESTypes = 651 ; pub const PBESTypes_PBE_SHA1_DES_SUM : PBESTypes = 658 ; pub const PBESTypes_PBES2_SUM : PBESTypes = 661 ; pub const PBESTypes_PBES2 : PBESTypes = 13 ; pub const PBESTypes_PBES1_MD5_DES : PBESTypes = 3 ; pub const PBESTypes_PBES1_SHA1_DES : PBESTypes = 10 ; pub const PBESTypes_PBE_NONE : PBESTypes = 999 ; pub type PBESTypes = :: core :: ffi :: c_uint ; pub const PKCSTypes_PKCS5v2 : PKCSTypes = 6 ; pub const PKCSTypes_PKCS12v1 : PKCSTypes = 12 ; pub const PKCSTypes_PKCS5 : PKCSTypes = 5 ; pub const PKCSTypes_PKCS8v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS8v1 : PKCSTypes = 1 ; pub const PKCSTypes_PKCS1v0 : PKCSTypes = 0 ; pub const PKCSTypes_PKCS1v1 : PKCSTypes = 1 ; pub type PKCSTypes = :: core :: ffi :: c_uint ; pub const wolfSSL_ErrorCodes_WOLFSSL_FATAL_ERROR : wolfSSL_ErrorCodes = - 1 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ERROR_WANT_READ_E : wolfSSL_ErrorCodes = - 2 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ERROR_WANT_WRITE_E : wolfSSL_ErrorCodes = - 3 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ERROR_WANT_X509_LOOKUP_E : wolfSSL_ErrorCodes = - 4 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ERROR_SYSCALL_E : wolfSSL_ErrorCodes = - 5 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ERROR_ZERO_RETURN_E : wolfSSL_ErrorCodes = - 6 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ERROR_WANT_CONNECT_E : wolfSSL_ErrorCodes = - 7 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ERROR_WANT_ACCEPT_E : wolfSSL_ErrorCodes = - 8 ; pub const wolfSSL_ErrorCodes_WOLFSSL_FIRST_E : wolfSSL_ErrorCodes = - 301 ; pub const wolfSSL_ErrorCodes_INPUT_CASE_ERROR : wolfSSL_ErrorCodes = - 301 ; pub const wolfSSL_ErrorCodes_PREFIX_ERROR : wolfSSL_ErrorCodes = - 302 ; pub const wolfSSL_ErrorCodes_MEMORY_ERROR : wolfSSL_ErrorCodes = - 303 ; pub const wolfSSL_ErrorCodes_VERIFY_FINISHED_ERROR : wolfSSL_ErrorCodes = - 304 ; pub const wolfSSL_ErrorCodes_VERIFY_MAC_ERROR : wolfSSL_ErrorCodes = - 305 ; pub const wolfSSL_ErrorCodes_PARSE_ERROR : wolfSSL_ErrorCodes = - 306 ; pub const wolfSSL_ErrorCodes_UNKNOWN_HANDSHAKE_TYPE : wolfSSL_ErrorCodes = - 307 ; pub const wolfSSL_ErrorCodes_SOCKET_ERROR_E : wolfSSL_ErrorCodes = - 308 ; pub const wolfSSL_ErrorCodes_SOCKET_NODATA : wolfSSL_ErrorCodes = - 309 ; pub const wolfSSL_ErrorCodes_INCOMPLETE_DATA : wolfSSL_ErrorCodes = - 310 ; pub const wolfSSL_ErrorCodes_UNKNOWN_RECORD_TYPE : wolfSSL_ErrorCodes = - 311 ; pub const wolfSSL_ErrorCodes_DECRYPT_ERROR : wolfSSL_ErrorCodes = - 312 ; pub const wolfSSL_ErrorCodes_FATAL_ERROR : wolfSSL_ErrorCodes = - 313 ; pub const wolfSSL_ErrorCodes_ENCRYPT_ERROR : wolfSSL_ErrorCodes = - 314 ; pub const wolfSSL_ErrorCodes_FREAD_ERROR : wolfSSL_ErrorCodes = - 315 ; pub const wolfSSL_ErrorCodes_NO_PEER_KEY : wolfSSL_ErrorCodes = - 316 ; pub const wolfSSL_ErrorCodes_NO_PRIVATE_KEY : wolfSSL_ErrorCodes = - 317 ; pub const wolfSSL_ErrorCodes_RSA_PRIVATE_ERROR : wolfSSL_ErrorCodes = - 318 ; pub const wolfSSL_ErrorCodes_NO_DH_PARAMS : wolfSSL_ErrorCodes = - 319 ; pub const wolfSSL_ErrorCodes_BUILD_MSG_ERROR : wolfSSL_ErrorCodes = - 320 ; pub const wolfSSL_ErrorCodes_BAD_HELLO : wolfSSL_ErrorCodes = - 321 ; pub const wolfSSL_ErrorCodes_DOMAIN_NAME_MISMATCH : wolfSSL_ErrorCodes = - 322 ; pub const wolfSSL_ErrorCodes_WANT_READ : wolfSSL_ErrorCodes = - 323 ; pub const wolfSSL_ErrorCodes_NOT_READY_ERROR : wolfSSL_ErrorCodes = - 324 ; pub const wolfSSL_ErrorCodes_IPADDR_MISMATCH : wolfSSL_ErrorCodes = - 325 ; pub const wolfSSL_ErrorCodes_VERSION_ERROR : wolfSSL_ErrorCodes = - 326 ; pub const wolfSSL_ErrorCodes_WANT_WRITE : wolfSSL_ErrorCodes = - 327 ; pub const wolfSSL_ErrorCodes_BUFFER_ERROR : wolfSSL_ErrorCodes = - 328 ; pub const wolfSSL_ErrorCodes_VERIFY_CERT_ERROR : wolfSSL_ErrorCodes = - 329 ; pub const wolfSSL_ErrorCodes_VERIFY_SIGN_ERROR : wolfSSL_ErrorCodes = - 330 ; pub const wolfSSL_ErrorCodes_CLIENT_ID_ERROR : wolfSSL_ErrorCodes = - 331 ; pub const wolfSSL_ErrorCodes_SERVER_HINT_ERROR : wolfSSL_ErrorCodes = - 332 ; pub const wolfSSL_ErrorCodes_PSK_KEY_ERROR : wolfSSL_ErrorCodes = - 333 ; pub const wolfSSL_ErrorCodes_DUPE_ENTRY_E : wolfSSL_ErrorCodes = - 334 ; pub const wolfSSL_ErrorCodes_GETTIME_ERROR : wolfSSL_ErrorCodes = - 337 ; pub const wolfSSL_ErrorCodes_GETITIMER_ERROR : wolfSSL_ErrorCodes = - 338 ; pub const wolfSSL_ErrorCodes_SIGACT_ERROR : wolfSSL_ErrorCodes = - 339 ; pub const wolfSSL_ErrorCodes_SETITIMER_ERROR : wolfSSL_ErrorCodes = - 340 ; pub const wolfSSL_ErrorCodes_LENGTH_ERROR : wolfSSL_ErrorCodes = - 341 ; pub const wolfSSL_ErrorCodes_PEER_KEY_ERROR : wolfSSL_ErrorCodes = - 342 ; pub const wolfSSL_ErrorCodes_ZERO_RETURN : wolfSSL_ErrorCodes = - 343 ; pub const wolfSSL_ErrorCodes_SIDE_ERROR : wolfSSL_ErrorCodes = - 344 ; pub const wolfSSL_ErrorCodes_NO_PEER_CERT : wolfSSL_ErrorCodes = - 345 ; pub const wolfSSL_ErrorCodes_ECC_CURVETYPE_ERROR : wolfSSL_ErrorCodes = - 350 ; pub const wolfSSL_ErrorCodes_ECC_CURVE_ERROR : wolfSSL_ErrorCodes = - 351 ; pub const wolfSSL_ErrorCodes_ECC_PEERKEY_ERROR : wolfSSL_ErrorCodes = - 352 ; pub const wolfSSL_ErrorCodes_ECC_MAKEKEY_ERROR : wolfSSL_ErrorCodes = - 353 ; pub const wolfSSL_ErrorCodes_ECC_EXPORT_ERROR : wolfSSL_ErrorCodes = - 354 ; pub const wolfSSL_ErrorCodes_ECC_SHARED_ERROR : wolfSSL_ErrorCodes = - 355 ; pub const wolfSSL_ErrorCodes_NOT_CA_ERROR : wolfSSL_ErrorCodes = - 357 ; pub const wolfSSL_ErrorCodes_BAD_CERT_MANAGER_ERROR : wolfSSL_ErrorCodes = - 359 ; pub const wolfSSL_ErrorCodes_OCSP_CERT_REVOKED : wolfSSL_ErrorCodes = - 360 ; pub const wolfSSL_ErrorCodes_CRL_CERT_REVOKED : wolfSSL_ErrorCodes = - 361 ; pub const wolfSSL_ErrorCodes_CRL_MISSING : wolfSSL_ErrorCodes = - 362 ; pub const wolfSSL_ErrorCodes_MONITOR_SETUP_E : wolfSSL_ErrorCodes = - 363 ; pub const wolfSSL_ErrorCodes_THREAD_CREATE_E : wolfSSL_ErrorCodes = - 364 ; pub const wolfSSL_ErrorCodes_OCSP_NEED_URL : wolfSSL_ErrorCodes = - 365 ; pub const wolfSSL_ErrorCodes_OCSP_CERT_UNKNOWN : wolfSSL_ErrorCodes = - 366 ; pub const wolfSSL_ErrorCodes_OCSP_LOOKUP_FAIL : wolfSSL_ErrorCodes = - 367 ; pub const wolfSSL_ErrorCodes_MAX_CHAIN_ERROR : wolfSSL_ErrorCodes = - 368 ; pub const wolfSSL_ErrorCodes_COOKIE_ERROR : wolfSSL_ErrorCodes = - 369 ; pub const wolfSSL_ErrorCodes_SEQUENCE_ERROR : wolfSSL_ErrorCodes = - 370 ; pub const wolfSSL_ErrorCodes_SUITES_ERROR : wolfSSL_ErrorCodes = - 371 ; pub const wolfSSL_ErrorCodes_MAX_CERT_EXTENSIONS_ERR : wolfSSL_ErrorCodes = - 372 ; pub const wolfSSL_ErrorCodes_OUT_OF_ORDER_E : wolfSSL_ErrorCodes = - 373 ; pub const wolfSSL_ErrorCodes_BAD_KEA_TYPE_E : wolfSSL_ErrorCodes = - 374 ; pub const wolfSSL_ErrorCodes_SANITY_CIPHER_E : wolfSSL_ErrorCodes = - 375 ; pub const wolfSSL_ErrorCodes_RECV_OVERFLOW_E : wolfSSL_ErrorCodes = - 376 ; pub const wolfSSL_ErrorCodes_GEN_COOKIE_E : wolfSSL_ErrorCodes = - 377 ; pub const wolfSSL_ErrorCodes_NO_PEER_VERIFY : wolfSSL_ErrorCodes = - 378 ; pub const wolfSSL_ErrorCodes_FWRITE_ERROR : wolfSSL_ErrorCodes = - 379 ; pub const wolfSSL_ErrorCodes_CACHE_MATCH_ERROR : wolfSSL_ErrorCodes = - 380 ; pub const wolfSSL_ErrorCodes_UNKNOWN_SNI_HOST_NAME_E : wolfSSL_ErrorCodes = - 381 ; pub const wolfSSL_ErrorCodes_UNKNOWN_MAX_FRAG_LEN_E : wolfSSL_ErrorCodes = - 382 ; pub const wolfSSL_ErrorCodes_KEYUSE_SIGNATURE_E : wolfSSL_ErrorCodes = - 383 ; pub const wolfSSL_ErrorCodes_KEYUSE_ENCIPHER_E : wolfSSL_ErrorCodes = - 385 ; pub const wolfSSL_ErrorCodes_EXTKEYUSE_AUTH_E : wolfSSL_ErrorCodes = - 386 ; pub const wolfSSL_ErrorCodes_SEND_OOB_READ_E : wolfSSL_ErrorCodes = - 387 ; pub const wolfSSL_ErrorCodes_SECURE_RENEGOTIATION_E : wolfSSL_ErrorCodes = - 388 ; pub const wolfSSL_ErrorCodes_SESSION_TICKET_LEN_E : wolfSSL_ErrorCodes = - 389 ; pub const wolfSSL_ErrorCodes_SESSION_TICKET_EXPECT_E : wolfSSL_ErrorCodes = - 390 ; pub const wolfSSL_ErrorCodes_SCR_DIFFERENT_CERT_E : wolfSSL_ErrorCodes = - 391 ; pub const wolfSSL_ErrorCodes_SESSION_SECRET_CB_E : wolfSSL_ErrorCodes = - 392 ; pub const wolfSSL_ErrorCodes_NO_CHANGE_CIPHER_E : wolfSSL_ErrorCodes = - 393 ; pub const wolfSSL_ErrorCodes_SANITY_MSG_E : wolfSSL_ErrorCodes = - 394 ; pub const wolfSSL_ErrorCodes_DUPLICATE_MSG_E : wolfSSL_ErrorCodes = - 395 ; pub const wolfSSL_ErrorCodes_SNI_UNSUPPORTED : wolfSSL_ErrorCodes = - 396 ; pub const wolfSSL_ErrorCodes_SOCKET_PEER_CLOSED_E : wolfSSL_ErrorCodes = - 397 ; pub const wolfSSL_ErrorCodes_BAD_TICKET_KEY_CB_SZ : wolfSSL_ErrorCodes = - 398 ; pub const wolfSSL_ErrorCodes_BAD_TICKET_MSG_SZ : wolfSSL_ErrorCodes = - 399 ; pub const wolfSSL_ErrorCodes_BAD_TICKET_ENCRYPT : wolfSSL_ErrorCodes = - 400 ; pub const wolfSSL_ErrorCodes_DH_KEY_SIZE_E : wolfSSL_ErrorCodes = - 401 ; pub const wolfSSL_ErrorCodes_SNI_ABSENT_ERROR : wolfSSL_ErrorCodes = - 402 ; pub const wolfSSL_ErrorCodes_RSA_SIGN_FAULT : wolfSSL_ErrorCodes = - 403 ; pub const wolfSSL_ErrorCodes_HANDSHAKE_SIZE_ERROR : wolfSSL_ErrorCodes = - 404 ; pub const wolfSSL_ErrorCodes_UNKNOWN_ALPN_PROTOCOL_NAME_E : wolfSSL_ErrorCodes = - 405 ; pub const wolfSSL_ErrorCodes_BAD_CERTIFICATE_STATUS_ERROR : wolfSSL_ErrorCodes = - 406 ; pub const wolfSSL_ErrorCodes_OCSP_INVALID_STATUS : wolfSSL_ErrorCodes = - 407 ; pub const wolfSSL_ErrorCodes_OCSP_WANT_READ : wolfSSL_ErrorCodes = - 408 ; pub const wolfSSL_ErrorCodes_RSA_KEY_SIZE_E : wolfSSL_ErrorCodes = - 409 ; pub const wolfSSL_ErrorCodes_ECC_KEY_SIZE_E : wolfSSL_ErrorCodes = - 410 ; pub const wolfSSL_ErrorCodes_DTLS_EXPORT_VER_E : wolfSSL_ErrorCodes = - 411 ; pub const wolfSSL_ErrorCodes_INPUT_SIZE_E : wolfSSL_ErrorCodes = - 412 ; pub const wolfSSL_ErrorCodes_CTX_INIT_MUTEX_E : wolfSSL_ErrorCodes = - 413 ; pub const wolfSSL_ErrorCodes_EXT_MASTER_SECRET_NEEDED_E : wolfSSL_ErrorCodes = - 414 ; pub const wolfSSL_ErrorCodes_DTLS_POOL_SZ_E : wolfSSL_ErrorCodes = - 415 ; pub const wolfSSL_ErrorCodes_DECODE_E : wolfSSL_ErrorCodes = - 416 ; pub const wolfSSL_ErrorCodes_HTTP_TIMEOUT : wolfSSL_ErrorCodes = - 417 ; pub const wolfSSL_ErrorCodes_WRITE_DUP_READ_E : wolfSSL_ErrorCodes = - 418 ; pub const wolfSSL_ErrorCodes_WRITE_DUP_WRITE_E : wolfSSL_ErrorCodes = - 419 ; pub const wolfSSL_ErrorCodes_INVALID_CERT_CTX_E : wolfSSL_ErrorCodes = - 420 ; pub const wolfSSL_ErrorCodes_BAD_KEY_SHARE_DATA : wolfSSL_ErrorCodes = - 421 ; pub const wolfSSL_ErrorCodes_MISSING_HANDSHAKE_DATA : wolfSSL_ErrorCodes = - 422 ; pub const wolfSSL_ErrorCodes_BAD_BINDER : wolfSSL_ErrorCodes = - 423 ; pub const wolfSSL_ErrorCodes_EXT_NOT_ALLOWED : wolfSSL_ErrorCodes = - 424 ; pub const wolfSSL_ErrorCodes_INVALID_PARAMETER : wolfSSL_ErrorCodes = - 425 ; pub const wolfSSL_ErrorCodes_MCAST_HIGHWATER_CB_E : wolfSSL_ErrorCodes = - 426 ; pub const wolfSSL_ErrorCodes_ALERT_COUNT_E : wolfSSL_ErrorCodes = - 427 ; pub const wolfSSL_ErrorCodes_EXT_MISSING : wolfSSL_ErrorCodes = - 428 ; pub const wolfSSL_ErrorCodes_UNSUPPORTED_EXTENSION : wolfSSL_ErrorCodes = - 429 ; pub const wolfSSL_ErrorCodes_PRF_MISSING : wolfSSL_ErrorCodes = - 430 ; pub const wolfSSL_ErrorCodes_DTLS_RETX_OVER_TX : wolfSSL_ErrorCodes = - 431 ; pub const wolfSSL_ErrorCodes_DH_PARAMS_NOT_FFDHE_E : wolfSSL_ErrorCodes = - 432 ; pub const wolfSSL_ErrorCodes_TCA_INVALID_ID_TYPE : wolfSSL_ErrorCodes = - 433 ; pub const wolfSSL_ErrorCodes_TCA_ABSENT_ERROR : wolfSSL_ErrorCodes = - 434 ; pub const wolfSSL_ErrorCodes_TSIP_MAC_DIGSZ_E : wolfSSL_ErrorCodes = - 435 ; pub const wolfSSL_ErrorCodes_CLIENT_CERT_CB_ERROR : wolfSSL_ErrorCodes = - 436 ; pub const wolfSSL_ErrorCodes_SSL_SHUTDOWN_ALREADY_DONE_E : wolfSSL_ErrorCodes = - 437 ; pub const wolfSSL_ErrorCodes_TLS13_SECRET_CB_E : wolfSSL_ErrorCodes = - 438 ; pub const wolfSSL_ErrorCodes_DTLS_SIZE_ERROR : wolfSSL_ErrorCodes = - 439 ; pub const wolfSSL_ErrorCodes_NO_CERT_ERROR : wolfSSL_ErrorCodes = - 440 ; pub const wolfSSL_ErrorCodes_APP_DATA_READY : wolfSSL_ErrorCodes = - 441 ; pub const wolfSSL_ErrorCodes_TOO_MUCH_EARLY_DATA : wolfSSL_ErrorCodes = - 442 ; pub const wolfSSL_ErrorCodes_SOCKET_FILTERED_E : wolfSSL_ErrorCodes = - 443 ; pub const wolfSSL_ErrorCodes_HTTP_RECV_ERR : wolfSSL_ErrorCodes = - 444 ; pub const wolfSSL_ErrorCodes_HTTP_HEADER_ERR : wolfSSL_ErrorCodes = - 445 ; pub const wolfSSL_ErrorCodes_HTTP_PROTO_ERR : wolfSSL_ErrorCodes = - 446 ; pub const wolfSSL_ErrorCodes_HTTP_STATUS_ERR : wolfSSL_ErrorCodes = - 447 ; pub const wolfSSL_ErrorCodes_HTTP_VERSION_ERR : wolfSSL_ErrorCodes = - 448 ; pub const wolfSSL_ErrorCodes_HTTP_APPSTR_ERR : wolfSSL_ErrorCodes = - 449 ; pub const wolfSSL_ErrorCodes_UNSUPPORTED_PROTO_VERSION : wolfSSL_ErrorCodes = - 450 ; pub const wolfSSL_ErrorCodes_FALCON_KEY_SIZE_E : wolfSSL_ErrorCodes = - 451 ; pub const wolfSSL_ErrorCodes_QUIC_TP_MISSING_E : wolfSSL_ErrorCodes = - 452 ; pub const wolfSSL_ErrorCodes_DILITHIUM_KEY_SIZE_E : wolfSSL_ErrorCodes = - 453 ; pub const wolfSSL_ErrorCodes_DTLS_CID_ERROR : wolfSSL_ErrorCodes = - 454 ; pub const wolfSSL_ErrorCodes_DTLS_TOO_MANY_FRAGMENTS_E : wolfSSL_ErrorCodes = - 455 ; pub const wolfSSL_ErrorCodes_QUIC_WRONG_ENC_LEVEL : wolfSSL_ErrorCodes = - 456 ; pub const wolfSSL_ErrorCodes_DUPLICATE_TLS_EXT_E : wolfSSL_ErrorCodes = - 457 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ALPN_NOT_FOUND : wolfSSL_ErrorCodes = - 458 ; pub const wolfSSL_ErrorCodes_WOLFSSL_BAD_CERTTYPE : wolfSSL_ErrorCodes = - 459 ; pub const wolfSSL_ErrorCodes_WOLFSSL_BAD_STAT : wolfSSL_ErrorCodes = - 460 ; pub const wolfSSL_ErrorCodes_WOLFSSL_BAD_PATH : wolfSSL_ErrorCodes = - 461 ; pub const wolfSSL_ErrorCodes_WOLFSSL_BAD_FILETYPE : wolfSSL_ErrorCodes = - 462 ; pub const wolfSSL_ErrorCodes_WOLFSSL_BAD_FILE : wolfSSL_ErrorCodes = - 463 ; pub const wolfSSL_ErrorCodes_WOLFSSL_NOT_IMPLEMENTED : wolfSSL_ErrorCodes = - 464 ; pub const wolfSSL_ErrorCodes_WOLFSSL_UNKNOWN : wolfSSL_ErrorCodes = - 465 ; pub const wolfSSL_ErrorCodes_UNSUPPORTED_SUITE : wolfSSL_ErrorCodes = - 500 ; pub const wolfSSL_ErrorCodes_MATCH_SUITE_ERROR : wolfSSL_ErrorCodes = - 501 ; pub const wolfSSL_ErrorCodes_COMPRESSION_ERROR : wolfSSL_ErrorCodes = - 502 ; pub const wolfSSL_ErrorCodes_KEY_SHARE_ERROR : wolfSSL_ErrorCodes = - 503 ; pub const wolfSSL_ErrorCodes_POST_HAND_AUTH_ERROR : wolfSSL_ErrorCodes = - 504 ; pub const wolfSSL_ErrorCodes_HRR_COOKIE_ERROR : wolfSSL_ErrorCodes = - 505 ; pub const wolfSSL_ErrorCodes_UNSUPPORTED_CERTIFICATE : wolfSSL_ErrorCodes = - 506 ; pub const wolfSSL_ErrorCodes_DTLS_PARTIAL_RECORD_READ : wolfSSL_ErrorCodes = - 455 ; pub const wolfSSL_ErrorCodes_WOLFSSL_PEM_R_NO_START_LINE_E : wolfSSL_ErrorCodes = - 507 ; pub const wolfSSL_ErrorCodes_WOLFSSL_PEM_R_PROBLEMS_GETTING_PASSWORD_E : wolfSSL_ErrorCodes = - 508 ; pub const wolfSSL_ErrorCodes_WOLFSSL_PEM_R_BAD_PASSWORD_READ_E : wolfSSL_ErrorCodes = - 509 ; pub const wolfSSL_ErrorCodes_WOLFSSL_PEM_R_BAD_DECRYPT_E : wolfSSL_ErrorCodes = - 510 ; pub const wolfSSL_ErrorCodes_WOLFSSL_ASN1_R_HEADER_TOO_LONG_E : wolfSSL_ErrorCodes = - 511 ; pub const wolfSSL_ErrorCodes_WOLFSSL_EVP_R_BAD_DECRYPT_E : wolfSSL_ErrorCodes = - 512 ; pub const wolfSSL_ErrorCodes_WOLFSSL_EVP_R_BN_DECODE_ERROR : wolfSSL_ErrorCodes = - 513 ; pub const wolfSSL_ErrorCodes_WOLFSSL_EVP_R_DECODE_ERROR : wolfSSL_ErrorCodes = - 514 ; pub const wolfSSL_ErrorCodes_WOLFSSL_EVP_R_PRIVATE_KEY_DECODE_ERROR : wolfSSL_ErrorCodes = - 515 ; pub const wolfSSL_ErrorCodes_CRYPTO_POLICY_FORBIDDEN : wolfSSL_ErrorCodes = - 516 ; pub const wolfSSL_ErrorCodes_SESSION_TICKET_NONCE_OVERFLOW : wolfSSL_ErrorCodes = - 517 ; pub const wolfSSL_ErrorCodes_EMPTY_RECORD_LIMIT_E : wolfSSL_ErrorCodes = - 518 ; pub const wolfSSL_ErrorCodes_ECH_REQUIRED_E : wolfSSL_ErrorCodes = - 519 ; pub const wolfSSL_ErrorCodes_WOLFSSL_LAST_E : wolfSSL_ErrorCodes = - 519 ; pub type wolfSSL_ErrorCodes = :: core :: ffi :: c_int ; pub const IOerrors_WOLFSSL_CBIO_ERR_GENERAL : IOerrors = - 1 ; pub const IOerrors_WOLFSSL_CBIO_ERR_WANT_READ : IOerrors = - 2 ; pub const IOerrors_WOLFSSL_CBIO_ERR_WANT_WRITE : IOerrors = - 2 ; pub const IOerrors_WOLFSSL_CBIO_ERR_CONN_RST : IOerrors = - 3 ; pub const IOerrors_WOLFSSL_CBIO_ERR_ISR : IOerrors = - 4 ; pub const IOerrors_WOLFSSL_CBIO_ERR_CONN_CLOSE : IOerrors = - 5 ; pub const IOerrors_WOLFSSL_CBIO_ERR_TIMEOUT : IOerrors = - 6 ; pub type IOerrors = :: core :: ffi :: c_int ; unsafe extern "C" { pub fn SetErrorString (err : :: core :: ffi :: c_int , str_ : * mut :: core :: ffi :: c_char) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_PKCS12 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WC_DerCertList { pub buffer : * mut byte , pub bufferSz : word32 , pub next : * mut WC_DerCertList , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WC_DerCertList"] [:: core :: mem :: size_of :: < WC_DerCertList > () - 24usize] ; ["Alignment of WC_DerCertList"] [:: core :: mem :: align_of :: < WC_DerCertList > () - 8usize] ; ["Offset of field: WC_DerCertList::buffer"] [:: core :: mem :: offset_of ! (WC_DerCertList , buffer) - 0usize] ; ["Offset of field: WC_DerCertList::bufferSz"] [:: core :: mem :: offset_of ! (WC_DerCertList , bufferSz) - 8usize] ; ["Offset of field: WC_DerCertList::next"] [:: core :: mem :: offset_of ! (WC_DerCertList , next) - 16usize] ; } ; pub const WC_PKCS12_ITT_DEFAULT : _bindgen_ty_31 = 2048 ; pub const WC_PKCS12_VERSION_DEFAULT : _bindgen_ty_31 = 3 ; pub const WC_PKCS12_MAC_DEFAULT : _bindgen_ty_31 = 1 ; pub type _bindgen_ty_31 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wc_PKCS12_new () -> * mut WC_PKCS12 ; } unsafe extern "C" { pub fn wc_PKCS12_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } unsafe extern "C" { pub fn wc_PKCS12_free (pkcs12 : * mut WC_PKCS12) ; } unsafe extern "C" { pub fn wc_d2i_PKCS12 (der : * const byte , derSz : word32 , pkcs12 : * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_d2i_PKCS12_fp (file : * const :: core :: ffi :: c_char , pkcs12 : * mut * mut WC_PKCS12) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_i2d_PKCS12 (pkcs12 : * mut WC_PKCS12 , der : * mut * mut byte , derSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PKCS12_parse (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PKCS12_parse_ex (pkcs12 : * mut WC_PKCS12 , psw : * const :: core :: ffi :: c_char , pkey : * mut * mut byte , pkeySz : * mut word32 , cert : * mut * mut byte , certSz : * mut word32 , ca : * mut * mut WC_DerCertList , keepKeyHeader : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PKCS12_verify_ex (pkcs12 : * mut WC_PKCS12 , psw : * const byte , pswSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PKCS12_create (pass : * mut :: core :: ffi :: c_char , passSz : word32 , name : * mut :: core :: ffi :: c_char , key : * mut byte , keySz : word32 , cert : * mut byte , certSz : word32 , ca : * mut WC_DerCertList , nidKey : :: core :: ffi :: c_int , nidCert : :: core :: ffi :: c_int , iter : :: core :: ffi :: c_int , macIter : :: core :: ffi :: c_int , keyType : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WC_PKCS12 ; } unsafe extern "C" { pub fn wc_PKCS12_SetHeap (pkcs12 : * mut WC_PKCS12 , heap : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PKCS12_GetHeap (pkcs12 : * mut WC_PKCS12) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wc_FreeCertList (list : * mut WC_DerCertList , heap : * mut :: core :: ffi :: c_void) ; } pub const MAX_PACKETNAME_SZ : _bindgen_ty_32 = 24 ; pub const MAX_CIPHERNAME_SZ : _bindgen_ty_32 = 24 ; pub const MAX_TIMEOUT_NAME_SZ : _bindgen_ty_32 = 24 ; pub const MAX_PACKETS_HANDSHAKE : _bindgen_ty_32 = 14 ; pub const MAX_VALUE_SZ : _bindgen_ty_32 = 128 ; pub type _bindgen_ty_32 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct handShakeInfo_st { pub ssl : * mut WOLFSSL , pub cipherName : [:: core :: ffi :: c_char ; 25usize] , pub packetNames : [[:: core :: ffi :: c_char ; 25usize] ; 14usize] , pub numberPackets : :: core :: ffi :: c_int , pub negotiationError : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of handShakeInfo_st"] [:: core :: mem :: size_of :: < handShakeInfo_st > () - 392usize] ; ["Alignment of handShakeInfo_st"] [:: core :: mem :: align_of :: < handShakeInfo_st > () - 8usize] ; ["Offset of field: handShakeInfo_st::ssl"] [:: core :: mem :: offset_of ! (handShakeInfo_st , ssl) - 0usize] ; ["Offset of field: handShakeInfo_st::cipherName"] [:: core :: mem :: offset_of ! (handShakeInfo_st , cipherName) - 8usize] ; ["Offset of field: handShakeInfo_st::packetNames"] [:: core :: mem :: offset_of ! (handShakeInfo_st , packetNames) - 33usize] ; ["Offset of field: handShakeInfo_st::numberPackets"] [:: core :: mem :: offset_of ! (handShakeInfo_st , numberPackets) - 384usize] ; ["Offset of field: handShakeInfo_st::negotiationError"] [:: core :: mem :: offset_of ! (handShakeInfo_st , negotiationError) - 388usize] ; } ; pub type HandShakeInfo = handShakeInfo_st ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_TIMEVAL { pub tv_sec : :: core :: ffi :: c_long , pub tv_usec : :: core :: ffi :: c_long , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_TIMEVAL"] [:: core :: mem :: size_of :: < WOLFSSL_TIMEVAL > () - 16usize] ; ["Alignment of WOLFSSL_TIMEVAL"] [:: core :: mem :: align_of :: < WOLFSSL_TIMEVAL > () - 8usize] ; ["Offset of field: WOLFSSL_TIMEVAL::tv_sec"] [:: core :: mem :: offset_of ! (WOLFSSL_TIMEVAL , tv_sec) - 0usize] ; ["Offset of field: WOLFSSL_TIMEVAL::tv_usec"] [:: core :: mem :: offset_of ! (WOLFSSL_TIMEVAL , tv_usec) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct packetInfo_st { pub packetName : [:: core :: ffi :: c_char ; 25usize] , pub timestamp : WOLFSSL_TIMEVAL , pub value : [:: core :: ffi :: c_uchar ; 128usize] , pub bufferValue : * mut :: core :: ffi :: c_uchar , pub valueSz : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of packetInfo_st"] [:: core :: mem :: size_of :: < packetInfo_st > () - 192usize] ; ["Alignment of packetInfo_st"] [:: core :: mem :: align_of :: < packetInfo_st > () - 8usize] ; ["Offset of field: packetInfo_st::packetName"] [:: core :: mem :: offset_of ! (packetInfo_st , packetName) - 0usize] ; ["Offset of field: packetInfo_st::timestamp"] [:: core :: mem :: offset_of ! (packetInfo_st , timestamp) - 32usize] ; ["Offset of field: packetInfo_st::value"] [:: core :: mem :: offset_of ! (packetInfo_st , value) - 48usize] ; ["Offset of field: packetInfo_st::bufferValue"] [:: core :: mem :: offset_of ! (packetInfo_st , bufferValue) - 176usize] ; ["Offset of field: packetInfo_st::valueSz"] [:: core :: mem :: offset_of ! (packetInfo_st , valueSz) - 184usize] ; } ; pub type PacketInfo = packetInfo_st ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeoutInfo_st { pub timeoutName : [:: core :: ffi :: c_char ; 25usize] , pub flags : :: core :: ffi :: c_int , pub numberPackets : :: core :: ffi :: c_int , pub packets : [PacketInfo ; 14usize] , pub timeoutValue : WOLFSSL_TIMEVAL , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of timeoutInfo_st"] [:: core :: mem :: size_of :: < timeoutInfo_st > () - 2744usize] ; ["Alignment of timeoutInfo_st"] [:: core :: mem :: align_of :: < timeoutInfo_st > () - 8usize] ; ["Offset of field: timeoutInfo_st::timeoutName"] [:: core :: mem :: offset_of ! (timeoutInfo_st , timeoutName) - 0usize] ; ["Offset of field: timeoutInfo_st::flags"] [:: core :: mem :: offset_of ! (timeoutInfo_st , flags) - 28usize] ; ["Offset of field: timeoutInfo_st::numberPackets"] [:: core :: mem :: offset_of ! (timeoutInfo_st , numberPackets) - 32usize] ; ["Offset of field: timeoutInfo_st::packets"] [:: core :: mem :: offset_of ! (timeoutInfo_st , packets) - 40usize] ; ["Offset of field: timeoutInfo_st::timeoutValue"] [:: core :: mem :: offset_of ! (timeoutInfo_st , timeoutValue) - 2728usize] ; } ; pub type TimeoutInfo = timeoutInfo_st ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_STACK { _unused : [u8 ; 0] , } pub type WOLFSSL_LHASH = WOLFSSL_STACK ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_SESSION { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_METHOD { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_CTX { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509 { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_ACERT { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_NAME { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_NAME_ENTRY { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_PUBKEY { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_ALGOR { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_CHAIN { _unused : [u8 ; 0] , } pub type WOLFSSL_X509_PKCS12 = WC_PKCS12 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_INFO { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_CERT_MANAGER { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_SOCKADDR { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_CRL { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_BY_DIR_HASH { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_BY_DIR_entry { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_BY_DIR { _unused : [u8 ; 0] , } unsafe extern "C" { pub fn __errno_location () -> * mut :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct flock { pub l_type : :: core :: ffi :: c_short , pub l_whence : :: core :: ffi :: c_short , pub l_start : __off_t , pub l_len : __off_t , pub l_pid : __pid_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of flock"] [:: core :: mem :: size_of :: < flock > () - 32usize] ; ["Alignment of flock"] [:: core :: mem :: align_of :: < flock > () - 8usize] ; ["Offset of field: flock::l_type"] [:: core :: mem :: offset_of ! (flock , l_type) - 0usize] ; ["Offset of field: flock::l_whence"] [:: core :: mem :: offset_of ! (flock , l_whence) - 2usize] ; ["Offset of field: flock::l_start"] [:: core :: mem :: offset_of ! (flock , l_start) - 8usize] ; ["Offset of field: flock::l_len"] [:: core :: mem :: offset_of ! (flock , l_len) - 16usize] ; ["Offset of field: flock::l_pid"] [:: core :: mem :: offset_of ! (flock , l_pid) - 24usize] ; } ; unsafe extern "C" { pub fn fcntl (__fd : :: core :: ffi :: c_int , __cmd : :: core :: ffi :: c_int , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn open (__file : * const :: core :: ffi :: c_char , __oflag : :: core :: ffi :: c_int , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn openat (__fd : :: core :: ffi :: c_int , __file : * const :: core :: ffi :: c_char , __oflag : :: core :: ffi :: c_int , ...) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn creat (__file : * const :: core :: ffi :: c_char , __mode : mode_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn posix_fadvise (__fd : :: core :: ffi :: c_int , __offset : off_t , __len : off_t , __advise : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn posix_fallocate (__fd : :: core :: ffi :: c_int , __offset : off_t , __len : off_t) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct iovec { pub iov_base : * mut :: core :: ffi :: c_void , pub iov_len : usize , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of iovec"] [:: core :: mem :: size_of :: < iovec > () - 16usize] ; ["Alignment of iovec"] [:: core :: mem :: align_of :: < iovec > () - 8usize] ; ["Offset of field: iovec::iov_base"] [:: core :: mem :: offset_of ! (iovec , iov_base) - 0usize] ; ["Offset of field: iovec::iov_len"] [:: core :: mem :: offset_of ! (iovec , iov_len) - 8usize] ; } ; pub const __socket_type_SOCK_STREAM : __socket_type = 1 ; pub const __socket_type_SOCK_DGRAM : __socket_type = 2 ; pub const __socket_type_SOCK_RAW : __socket_type = 3 ; pub const __socket_type_SOCK_RDM : __socket_type = 4 ; pub const __socket_type_SOCK_SEQPACKET : __socket_type = 5 ; pub const __socket_type_SOCK_DCCP : __socket_type = 6 ; pub const __socket_type_SOCK_PACKET : __socket_type = 10 ; pub const __socket_type_SOCK_CLOEXEC : __socket_type = 524288 ; pub const __socket_type_SOCK_NONBLOCK : __socket_type = 2048 ; pub type __socket_type = :: core :: ffi :: c_uint ; pub type sa_family_t = :: core :: ffi :: c_ushort ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sockaddr { pub sa_family : sa_family_t , pub sa_data : [:: core :: ffi :: c_char ; 14usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sockaddr"] [:: core :: mem :: size_of :: < sockaddr > () - 16usize] ; ["Alignment of sockaddr"] [:: core :: mem :: align_of :: < sockaddr > () - 2usize] ; ["Offset of field: sockaddr::sa_family"] [:: core :: mem :: offset_of ! (sockaddr , sa_family) - 0usize] ; ["Offset of field: sockaddr::sa_data"] [:: core :: mem :: offset_of ! (sockaddr , sa_data) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sockaddr_storage { pub ss_family : sa_family_t , pub __ss_padding : [:: core :: ffi :: c_char ; 118usize] , pub __ss_align : :: core :: ffi :: c_ulong , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sockaddr_storage"] [:: core :: mem :: size_of :: < sockaddr_storage > () - 128usize] ; ["Alignment of sockaddr_storage"] [:: core :: mem :: align_of :: < sockaddr_storage > () - 8usize] ; ["Offset of field: sockaddr_storage::ss_family"] [:: core :: mem :: offset_of ! (sockaddr_storage , ss_family) - 0usize] ; ["Offset of field: sockaddr_storage::__ss_padding"] [:: core :: mem :: offset_of ! (sockaddr_storage , __ss_padding) - 2usize] ; ["Offset of field: sockaddr_storage::__ss_align"] [:: core :: mem :: offset_of ! (sockaddr_storage , __ss_align) - 120usize] ; } ; pub const MSG_OOB : _bindgen_ty_33 = 1 ; pub const MSG_PEEK : _bindgen_ty_33 = 2 ; pub const MSG_DONTROUTE : _bindgen_ty_33 = 4 ; pub const MSG_CTRUNC : _bindgen_ty_33 = 8 ; pub const MSG_PROXY : _bindgen_ty_33 = 16 ; pub const MSG_TRUNC : _bindgen_ty_33 = 32 ; pub const MSG_DONTWAIT : _bindgen_ty_33 = 64 ; pub const MSG_EOR : _bindgen_ty_33 = 128 ; pub const MSG_WAITALL : _bindgen_ty_33 = 256 ; pub const MSG_FIN : _bindgen_ty_33 = 512 ; pub const MSG_SYN : _bindgen_ty_33 = 1024 ; pub const MSG_CONFIRM : _bindgen_ty_33 = 2048 ; pub const MSG_RST : _bindgen_ty_33 = 4096 ; pub const MSG_ERRQUEUE : _bindgen_ty_33 = 8192 ; pub const MSG_NOSIGNAL : _bindgen_ty_33 = 16384 ; pub const MSG_MORE : _bindgen_ty_33 = 32768 ; pub const MSG_WAITFORONE : _bindgen_ty_33 = 65536 ; pub const MSG_BATCH : _bindgen_ty_33 = 262144 ; pub const MSG_ZEROCOPY : _bindgen_ty_33 = 67108864 ; pub const MSG_FASTOPEN : _bindgen_ty_33 = 536870912 ; pub const MSG_CMSG_CLOEXEC : _bindgen_ty_33 = 1073741824 ; pub type _bindgen_ty_33 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct msghdr { pub msg_name : * mut :: core :: ffi :: c_void , pub msg_namelen : socklen_t , pub msg_iov : * mut iovec , pub msg_iovlen : usize , pub msg_control : * mut :: core :: ffi :: c_void , pub msg_controllen : usize , pub msg_flags : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of msghdr"] [:: core :: mem :: size_of :: < msghdr > () - 56usize] ; ["Alignment of msghdr"] [:: core :: mem :: align_of :: < msghdr > () - 8usize] ; ["Offset of field: msghdr::msg_name"] [:: core :: mem :: offset_of ! (msghdr , msg_name) - 0usize] ; ["Offset of field: msghdr::msg_namelen"] [:: core :: mem :: offset_of ! (msghdr , msg_namelen) - 8usize] ; ["Offset of field: msghdr::msg_iov"] [:: core :: mem :: offset_of ! (msghdr , msg_iov) - 16usize] ; ["Offset of field: msghdr::msg_iovlen"] [:: core :: mem :: offset_of ! (msghdr , msg_iovlen) - 24usize] ; ["Offset of field: msghdr::msg_control"] [:: core :: mem :: offset_of ! (msghdr , msg_control) - 32usize] ; ["Offset of field: msghdr::msg_controllen"] [:: core :: mem :: offset_of ! (msghdr , msg_controllen) - 40usize] ; ["Offset of field: msghdr::msg_flags"] [:: core :: mem :: offset_of ! (msghdr , msg_flags) - 48usize] ; } ; # [repr (C)] # [derive (Debug)] pub struct cmsghdr { pub cmsg_len : usize , pub cmsg_level : :: core :: ffi :: c_int , pub cmsg_type : :: core :: ffi :: c_int , pub __cmsg_data : __IncompleteArrayField < :: core :: ffi :: c_uchar > , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of cmsghdr"] [:: core :: mem :: size_of :: < cmsghdr > () - 16usize] ; ["Alignment of cmsghdr"] [:: core :: mem :: align_of :: < cmsghdr > () - 8usize] ; ["Offset of field: cmsghdr::cmsg_len"] [:: core :: mem :: offset_of ! (cmsghdr , cmsg_len) - 0usize] ; ["Offset of field: cmsghdr::cmsg_level"] [:: core :: mem :: offset_of ! (cmsghdr , cmsg_level) - 8usize] ; ["Offset of field: cmsghdr::cmsg_type"] [:: core :: mem :: offset_of ! (cmsghdr , cmsg_type) - 12usize] ; ["Offset of field: cmsghdr::__cmsg_data"] [:: core :: mem :: offset_of ! (cmsghdr , __cmsg_data) - 16usize] ; } ; unsafe extern "C" { pub fn __cmsg_nxthdr (__mhdr : * mut msghdr , __cmsg : * mut cmsghdr) -> * mut cmsghdr ; } pub const SCM_RIGHTS : _bindgen_ty_34 = 1 ; pub type _bindgen_ty_34 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __kernel_fd_set { pub fds_bits : [:: core :: ffi :: c_ulong ; 16usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __kernel_fd_set"] [:: core :: mem :: size_of :: < __kernel_fd_set > () - 128usize] ; ["Alignment of __kernel_fd_set"] [:: core :: mem :: align_of :: < __kernel_fd_set > () - 8usize] ; ["Offset of field: __kernel_fd_set::fds_bits"] [:: core :: mem :: offset_of ! (__kernel_fd_set , fds_bits) - 0usize] ; } ; pub type __kernel_sighandler_t = :: core :: option :: Option < unsafe extern "C" fn (arg1 : :: core :: ffi :: c_int) > ; pub type __kernel_key_t = :: core :: ffi :: c_int ; pub type __kernel_mqd_t = :: core :: ffi :: c_int ; pub type __kernel_old_uid_t = :: core :: ffi :: c_ushort ; pub type __kernel_old_gid_t = :: core :: ffi :: c_ushort ; pub type __kernel_old_dev_t = :: core :: ffi :: c_ulong ; pub type __kernel_long_t = :: core :: ffi :: c_long ; pub type __kernel_ulong_t = :: core :: ffi :: c_ulong ; pub type __kernel_ino_t = __kernel_ulong_t ; pub type __kernel_mode_t = :: core :: ffi :: c_uint ; pub type __kernel_pid_t = :: core :: ffi :: c_int ; pub type __kernel_ipc_pid_t = :: core :: ffi :: c_int ; pub type __kernel_uid_t = :: core :: ffi :: c_uint ; pub type __kernel_gid_t = :: core :: ffi :: c_uint ; pub type __kernel_suseconds_t = __kernel_long_t ; pub type __kernel_daddr_t = :: core :: ffi :: c_int ; pub type __kernel_uid32_t = :: core :: ffi :: c_uint ; pub type __kernel_gid32_t = :: core :: ffi :: c_uint ; pub type __kernel_size_t = __kernel_ulong_t ; pub type __kernel_ssize_t = __kernel_long_t ; pub type __kernel_ptrdiff_t = __kernel_long_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __kernel_fsid_t { pub val : [:: core :: ffi :: c_int ; 2usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __kernel_fsid_t"] [:: core :: mem :: size_of :: < __kernel_fsid_t > () - 8usize] ; ["Alignment of __kernel_fsid_t"] [:: core :: mem :: align_of :: < __kernel_fsid_t > () - 4usize] ; ["Offset of field: __kernel_fsid_t::val"] [:: core :: mem :: offset_of ! (__kernel_fsid_t , val) - 0usize] ; } ; pub type __kernel_off_t = __kernel_long_t ; pub type __kernel_loff_t = :: core :: ffi :: c_longlong ; pub type __kernel_old_time_t = __kernel_long_t ; pub type __kernel_time_t = __kernel_long_t ; pub type __kernel_time64_t = :: core :: ffi :: c_longlong ; pub type __kernel_clock_t = __kernel_long_t ; pub type __kernel_timer_t = :: core :: ffi :: c_int ; pub type __kernel_clockid_t = :: core :: ffi :: c_int ; pub type __kernel_caddr_t = * mut :: core :: ffi :: c_char ; pub type __kernel_uid16_t = :: core :: ffi :: c_ushort ; pub type __kernel_gid16_t = :: core :: ffi :: c_ushort ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct linger { pub l_onoff : :: core :: ffi :: c_int , pub l_linger : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of linger"] [:: core :: mem :: size_of :: < linger > () - 8usize] ; ["Alignment of linger"] [:: core :: mem :: align_of :: < linger > () - 4usize] ; ["Offset of field: linger::l_onoff"] [:: core :: mem :: offset_of ! (linger , l_onoff) - 0usize] ; ["Offset of field: linger::l_linger"] [:: core :: mem :: offset_of ! (linger , l_linger) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct osockaddr { pub sa_family : :: core :: ffi :: c_ushort , pub sa_data : [:: core :: ffi :: c_uchar ; 14usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of osockaddr"] [:: core :: mem :: size_of :: < osockaddr > () - 16usize] ; ["Alignment of osockaddr"] [:: core :: mem :: align_of :: < osockaddr > () - 2usize] ; ["Offset of field: osockaddr::sa_family"] [:: core :: mem :: offset_of ! (osockaddr , sa_family) - 0usize] ; ["Offset of field: osockaddr::sa_data"] [:: core :: mem :: offset_of ! (osockaddr , sa_data) - 2usize] ; } ; pub const SHUT_RD : _bindgen_ty_35 = 0 ; pub const SHUT_WR : _bindgen_ty_35 = 1 ; pub const SHUT_RDWR : _bindgen_ty_35 = 2 ; pub type _bindgen_ty_35 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn socket (__domain : :: core :: ffi :: c_int , __type : :: core :: ffi :: c_int , __protocol : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn socketpair (__domain : :: core :: ffi :: c_int , __type : :: core :: ffi :: c_int , __protocol : :: core :: ffi :: c_int , __fds : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn bind (__fd : :: core :: ffi :: c_int , __addr : * const sockaddr , __len : socklen_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getsockname (__fd : :: core :: ffi :: c_int , __addr : * mut sockaddr , __len : * mut socklen_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn connect (__fd : :: core :: ffi :: c_int , __addr : * const sockaddr , __len : socklen_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn getpeername (__fd : :: core :: ffi :: c_int , __addr : * mut sockaddr , __len : * mut socklen_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn send (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __flags : :: core :: ffi :: c_int) -> isize ; } unsafe extern "C" { pub fn recv (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __n : usize , __flags : :: core :: ffi :: c_int) -> isize ; } unsafe extern "C" { pub fn sendto (__fd : :: core :: ffi :: c_int , __buf : * const :: core :: ffi :: c_void , __n : usize , __flags : :: core :: ffi :: c_int , __addr : * const sockaddr , __addr_len : socklen_t) -> isize ; } unsafe extern "C" { pub fn recvfrom (__fd : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_void , __n : usize , __flags : :: core :: ffi :: c_int , __addr : * mut sockaddr , __addr_len : * mut socklen_t) -> isize ; } unsafe extern "C" { pub fn sendmsg (__fd : :: core :: ffi :: c_int , __message : * const msghdr , __flags : :: core :: ffi :: c_int) -> isize ; } unsafe extern "C" { pub fn recvmsg (__fd : :: core :: ffi :: c_int , __message : * mut msghdr , __flags : :: core :: ffi :: c_int) -> isize ; } unsafe extern "C" { pub fn getsockopt (__fd : :: core :: ffi :: c_int , __level : :: core :: ffi :: c_int , __optname : :: core :: ffi :: c_int , __optval : * mut :: core :: ffi :: c_void , __optlen : * mut socklen_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn setsockopt (__fd : :: core :: ffi :: c_int , __level : :: core :: ffi :: c_int , __optname : :: core :: ffi :: c_int , __optval : * const :: core :: ffi :: c_void , __optlen : socklen_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn listen (__fd : :: core :: ffi :: c_int , __n : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn accept (__fd : :: core :: ffi :: c_int , __addr : * mut sockaddr , __addr_len : * mut socklen_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn shutdown (__fd : :: core :: ffi :: c_int , __how : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn sockatmark (__fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn isfdtype (__fd : :: core :: ffi :: c_int , __fdtype : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type in_addr_t = u32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct in_addr { pub s_addr : in_addr_t , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of in_addr"] [:: core :: mem :: size_of :: < in_addr > () - 4usize] ; ["Alignment of in_addr"] [:: core :: mem :: align_of :: < in_addr > () - 4usize] ; ["Offset of field: in_addr::s_addr"] [:: core :: mem :: offset_of ! (in_addr , s_addr) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ip_opts { pub ip_dst : in_addr , pub ip_opts : [:: core :: ffi :: c_char ; 40usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ip_opts"] [:: core :: mem :: size_of :: < ip_opts > () - 44usize] ; ["Alignment of ip_opts"] [:: core :: mem :: align_of :: < ip_opts > () - 4usize] ; ["Offset of field: ip_opts::ip_dst"] [:: core :: mem :: offset_of ! (ip_opts , ip_dst) - 0usize] ; ["Offset of field: ip_opts::ip_opts"] [:: core :: mem :: offset_of ! (ip_opts , ip_opts) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct in_pktinfo { pub ipi_ifindex : :: core :: ffi :: c_int , pub ipi_spec_dst : in_addr , pub ipi_addr : in_addr , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of in_pktinfo"] [:: core :: mem :: size_of :: < in_pktinfo > () - 12usize] ; ["Alignment of in_pktinfo"] [:: core :: mem :: align_of :: < in_pktinfo > () - 4usize] ; ["Offset of field: in_pktinfo::ipi_ifindex"] [:: core :: mem :: offset_of ! (in_pktinfo , ipi_ifindex) - 0usize] ; ["Offset of field: in_pktinfo::ipi_spec_dst"] [:: core :: mem :: offset_of ! (in_pktinfo , ipi_spec_dst) - 4usize] ; ["Offset of field: in_pktinfo::ipi_addr"] [:: core :: mem :: offset_of ! (in_pktinfo , ipi_addr) - 8usize] ; } ; pub const IPPROTO_IP : _bindgen_ty_36 = 0 ; pub const IPPROTO_ICMP : _bindgen_ty_36 = 1 ; pub const IPPROTO_IGMP : _bindgen_ty_36 = 2 ; pub const IPPROTO_IPIP : _bindgen_ty_36 = 4 ; pub const IPPROTO_TCP : _bindgen_ty_36 = 6 ; pub const IPPROTO_EGP : _bindgen_ty_36 = 8 ; pub const IPPROTO_PUP : _bindgen_ty_36 = 12 ; pub const IPPROTO_UDP : _bindgen_ty_36 = 17 ; pub const IPPROTO_IDP : _bindgen_ty_36 = 22 ; pub const IPPROTO_TP : _bindgen_ty_36 = 29 ; pub const IPPROTO_DCCP : _bindgen_ty_36 = 33 ; pub const IPPROTO_IPV6 : _bindgen_ty_36 = 41 ; pub const IPPROTO_RSVP : _bindgen_ty_36 = 46 ; pub const IPPROTO_GRE : _bindgen_ty_36 = 47 ; pub const IPPROTO_ESP : _bindgen_ty_36 = 50 ; pub const IPPROTO_AH : _bindgen_ty_36 = 51 ; pub const IPPROTO_MTP : _bindgen_ty_36 = 92 ; pub const IPPROTO_BEETPH : _bindgen_ty_36 = 94 ; pub const IPPROTO_ENCAP : _bindgen_ty_36 = 98 ; pub const IPPROTO_PIM : _bindgen_ty_36 = 103 ; pub const IPPROTO_COMP : _bindgen_ty_36 = 108 ; pub const IPPROTO_L2TP : _bindgen_ty_36 = 115 ; pub const IPPROTO_SCTP : _bindgen_ty_36 = 132 ; pub const IPPROTO_UDPLITE : _bindgen_ty_36 = 136 ; pub const IPPROTO_MPLS : _bindgen_ty_36 = 137 ; pub const IPPROTO_ETHERNET : _bindgen_ty_36 = 143 ; pub const IPPROTO_RAW : _bindgen_ty_36 = 255 ; pub const IPPROTO_MPTCP : _bindgen_ty_36 = 262 ; pub const IPPROTO_MAX : _bindgen_ty_36 = 263 ; pub type _bindgen_ty_36 = :: core :: ffi :: c_uint ; pub const IPPROTO_HOPOPTS : _bindgen_ty_37 = 0 ; pub const IPPROTO_ROUTING : _bindgen_ty_37 = 43 ; pub const IPPROTO_FRAGMENT : _bindgen_ty_37 = 44 ; pub const IPPROTO_ICMPV6 : _bindgen_ty_37 = 58 ; pub const IPPROTO_NONE : _bindgen_ty_37 = 59 ; pub const IPPROTO_DSTOPTS : _bindgen_ty_37 = 60 ; pub const IPPROTO_MH : _bindgen_ty_37 = 135 ; pub type _bindgen_ty_37 = :: core :: ffi :: c_uint ; pub type in_port_t = u16 ; pub const IPPORT_ECHO : _bindgen_ty_38 = 7 ; pub const IPPORT_DISCARD : _bindgen_ty_38 = 9 ; pub const IPPORT_SYSTAT : _bindgen_ty_38 = 11 ; pub const IPPORT_DAYTIME : _bindgen_ty_38 = 13 ; pub const IPPORT_NETSTAT : _bindgen_ty_38 = 15 ; pub const IPPORT_FTP : _bindgen_ty_38 = 21 ; pub const IPPORT_TELNET : _bindgen_ty_38 = 23 ; pub const IPPORT_SMTP : _bindgen_ty_38 = 25 ; pub const IPPORT_TIMESERVER : _bindgen_ty_38 = 37 ; pub const IPPORT_NAMESERVER : _bindgen_ty_38 = 42 ; pub const IPPORT_WHOIS : _bindgen_ty_38 = 43 ; pub const IPPORT_MTP : _bindgen_ty_38 = 57 ; pub const IPPORT_TFTP : _bindgen_ty_38 = 69 ; pub const IPPORT_RJE : _bindgen_ty_38 = 77 ; pub const IPPORT_FINGER : _bindgen_ty_38 = 79 ; pub const IPPORT_TTYLINK : _bindgen_ty_38 = 87 ; pub const IPPORT_SUPDUP : _bindgen_ty_38 = 95 ; pub const IPPORT_EXECSERVER : _bindgen_ty_38 = 512 ; pub const IPPORT_LOGINSERVER : _bindgen_ty_38 = 513 ; pub const IPPORT_CMDSERVER : _bindgen_ty_38 = 514 ; pub const IPPORT_EFSSERVER : _bindgen_ty_38 = 520 ; pub const IPPORT_BIFFUDP : _bindgen_ty_38 = 512 ; pub const IPPORT_WHOSERVER : _bindgen_ty_38 = 513 ; pub const IPPORT_ROUTESERVER : _bindgen_ty_38 = 520 ; pub const IPPORT_RESERVED : _bindgen_ty_38 = 1024 ; pub const IPPORT_USERRESERVED : _bindgen_ty_38 = 5000 ; pub type _bindgen_ty_38 = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub struct in6_addr { pub __in6_u : in6_addr__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union in6_addr__bindgen_ty_1 { pub __u6_addr8 : [u8 ; 16usize] , pub __u6_addr16 : [u16 ; 8usize] , pub __u6_addr32 : [u32 ; 4usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of in6_addr__bindgen_ty_1"] [:: core :: mem :: size_of :: < in6_addr__bindgen_ty_1 > () - 16usize] ; ["Alignment of in6_addr__bindgen_ty_1"] [:: core :: mem :: align_of :: < in6_addr__bindgen_ty_1 > () - 4usize] ; ["Offset of field: in6_addr__bindgen_ty_1::__u6_addr8"] [:: core :: mem :: offset_of ! (in6_addr__bindgen_ty_1 , __u6_addr8) - 0usize] ; ["Offset of field: in6_addr__bindgen_ty_1::__u6_addr16"] [:: core :: mem :: offset_of ! (in6_addr__bindgen_ty_1 , __u6_addr16) - 0usize] ; ["Offset of field: in6_addr__bindgen_ty_1::__u6_addr32"] [:: core :: mem :: offset_of ! (in6_addr__bindgen_ty_1 , __u6_addr32) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of in6_addr"] [:: core :: mem :: size_of :: < in6_addr > () - 16usize] ; ["Alignment of in6_addr"] [:: core :: mem :: align_of :: < in6_addr > () - 4usize] ; ["Offset of field: in6_addr::__in6_u"] [:: core :: mem :: offset_of ! (in6_addr , __in6_u) - 0usize] ; } ; unsafe extern "C" { pub static in6addr_any : in6_addr ; } unsafe extern "C" { pub static in6addr_loopback : in6_addr ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct sockaddr_in { pub sin_family : sa_family_t , pub sin_port : in_port_t , pub sin_addr : in_addr , pub sin_zero : [:: core :: ffi :: c_uchar ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sockaddr_in"] [:: core :: mem :: size_of :: < sockaddr_in > () - 16usize] ; ["Alignment of sockaddr_in"] [:: core :: mem :: align_of :: < sockaddr_in > () - 4usize] ; ["Offset of field: sockaddr_in::sin_family"] [:: core :: mem :: offset_of ! (sockaddr_in , sin_family) - 0usize] ; ["Offset of field: sockaddr_in::sin_port"] [:: core :: mem :: offset_of ! (sockaddr_in , sin_port) - 2usize] ; ["Offset of field: sockaddr_in::sin_addr"] [:: core :: mem :: offset_of ! (sockaddr_in , sin_addr) - 4usize] ; ["Offset of field: sockaddr_in::sin_zero"] [:: core :: mem :: offset_of ! (sockaddr_in , sin_zero) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct sockaddr_in6 { pub sin6_family : sa_family_t , pub sin6_port : in_port_t , pub sin6_flowinfo : u32 , pub sin6_addr : in6_addr , pub sin6_scope_id : u32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of sockaddr_in6"] [:: core :: mem :: size_of :: < sockaddr_in6 > () - 28usize] ; ["Alignment of sockaddr_in6"] [:: core :: mem :: align_of :: < sockaddr_in6 > () - 4usize] ; ["Offset of field: sockaddr_in6::sin6_family"] [:: core :: mem :: offset_of ! (sockaddr_in6 , sin6_family) - 0usize] ; ["Offset of field: sockaddr_in6::sin6_port"] [:: core :: mem :: offset_of ! (sockaddr_in6 , sin6_port) - 2usize] ; ["Offset of field: sockaddr_in6::sin6_flowinfo"] [:: core :: mem :: offset_of ! (sockaddr_in6 , sin6_flowinfo) - 4usize] ; ["Offset of field: sockaddr_in6::sin6_addr"] [:: core :: mem :: offset_of ! (sockaddr_in6 , sin6_addr) - 8usize] ; ["Offset of field: sockaddr_in6::sin6_scope_id"] [:: core :: mem :: offset_of ! (sockaddr_in6 , sin6_scope_id) - 24usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ip_mreq { pub imr_multiaddr : in_addr , pub imr_interface : in_addr , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ip_mreq"] [:: core :: mem :: size_of :: < ip_mreq > () - 8usize] ; ["Alignment of ip_mreq"] [:: core :: mem :: align_of :: < ip_mreq > () - 4usize] ; ["Offset of field: ip_mreq::imr_multiaddr"] [:: core :: mem :: offset_of ! (ip_mreq , imr_multiaddr) - 0usize] ; ["Offset of field: ip_mreq::imr_interface"] [:: core :: mem :: offset_of ! (ip_mreq , imr_interface) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ip_mreqn { pub imr_multiaddr : in_addr , pub imr_address : in_addr , pub imr_ifindex : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ip_mreqn"] [:: core :: mem :: size_of :: < ip_mreqn > () - 12usize] ; ["Alignment of ip_mreqn"] [:: core :: mem :: align_of :: < ip_mreqn > () - 4usize] ; ["Offset of field: ip_mreqn::imr_multiaddr"] [:: core :: mem :: offset_of ! (ip_mreqn , imr_multiaddr) - 0usize] ; ["Offset of field: ip_mreqn::imr_address"] [:: core :: mem :: offset_of ! (ip_mreqn , imr_address) - 4usize] ; ["Offset of field: ip_mreqn::imr_ifindex"] [:: core :: mem :: offset_of ! (ip_mreqn , imr_ifindex) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ip_mreq_source { pub imr_multiaddr : in_addr , pub imr_interface : in_addr , pub imr_sourceaddr : in_addr , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ip_mreq_source"] [:: core :: mem :: size_of :: < ip_mreq_source > () - 12usize] ; ["Alignment of ip_mreq_source"] [:: core :: mem :: align_of :: < ip_mreq_source > () - 4usize] ; ["Offset of field: ip_mreq_source::imr_multiaddr"] [:: core :: mem :: offset_of ! (ip_mreq_source , imr_multiaddr) - 0usize] ; ["Offset of field: ip_mreq_source::imr_interface"] [:: core :: mem :: offset_of ! (ip_mreq_source , imr_interface) - 4usize] ; ["Offset of field: ip_mreq_source::imr_sourceaddr"] [:: core :: mem :: offset_of ! (ip_mreq_source , imr_sourceaddr) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ipv6_mreq { pub ipv6mr_multiaddr : in6_addr , pub ipv6mr_interface : :: core :: ffi :: c_uint , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ipv6_mreq"] [:: core :: mem :: size_of :: < ipv6_mreq > () - 20usize] ; ["Alignment of ipv6_mreq"] [:: core :: mem :: align_of :: < ipv6_mreq > () - 4usize] ; ["Offset of field: ipv6_mreq::ipv6mr_multiaddr"] [:: core :: mem :: offset_of ! (ipv6_mreq , ipv6mr_multiaddr) - 0usize] ; ["Offset of field: ipv6_mreq::ipv6mr_interface"] [:: core :: mem :: offset_of ! (ipv6_mreq , ipv6mr_interface) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct group_req { pub gr_interface : u32 , pub gr_group : sockaddr_storage , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of group_req"] [:: core :: mem :: size_of :: < group_req > () - 136usize] ; ["Alignment of group_req"] [:: core :: mem :: align_of :: < group_req > () - 8usize] ; ["Offset of field: group_req::gr_interface"] [:: core :: mem :: offset_of ! (group_req , gr_interface) - 0usize] ; ["Offset of field: group_req::gr_group"] [:: core :: mem :: offset_of ! (group_req , gr_group) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct group_source_req { pub gsr_interface : u32 , pub gsr_group : sockaddr_storage , pub gsr_source : sockaddr_storage , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of group_source_req"] [:: core :: mem :: size_of :: < group_source_req > () - 264usize] ; ["Alignment of group_source_req"] [:: core :: mem :: align_of :: < group_source_req > () - 8usize] ; ["Offset of field: group_source_req::gsr_interface"] [:: core :: mem :: offset_of ! (group_source_req , gsr_interface) - 0usize] ; ["Offset of field: group_source_req::gsr_group"] [:: core :: mem :: offset_of ! (group_source_req , gsr_group) - 8usize] ; ["Offset of field: group_source_req::gsr_source"] [:: core :: mem :: offset_of ! (group_source_req , gsr_source) - 136usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ip_msfilter { pub imsf_multiaddr : in_addr , pub imsf_interface : in_addr , pub imsf_fmode : u32 , pub imsf_numsrc : u32 , pub imsf_slist : [in_addr ; 1usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ip_msfilter"] [:: core :: mem :: size_of :: < ip_msfilter > () - 20usize] ; ["Alignment of ip_msfilter"] [:: core :: mem :: align_of :: < ip_msfilter > () - 4usize] ; ["Offset of field: ip_msfilter::imsf_multiaddr"] [:: core :: mem :: offset_of ! (ip_msfilter , imsf_multiaddr) - 0usize] ; ["Offset of field: ip_msfilter::imsf_interface"] [:: core :: mem :: offset_of ! (ip_msfilter , imsf_interface) - 4usize] ; ["Offset of field: ip_msfilter::imsf_fmode"] [:: core :: mem :: offset_of ! (ip_msfilter , imsf_fmode) - 8usize] ; ["Offset of field: ip_msfilter::imsf_numsrc"] [:: core :: mem :: offset_of ! (ip_msfilter , imsf_numsrc) - 12usize] ; ["Offset of field: ip_msfilter::imsf_slist"] [:: core :: mem :: offset_of ! (ip_msfilter , imsf_slist) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct group_filter { pub gf_interface : u32 , pub gf_group : sockaddr_storage , pub gf_fmode : u32 , pub gf_numsrc : u32 , pub gf_slist : [sockaddr_storage ; 1usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of group_filter"] [:: core :: mem :: size_of :: < group_filter > () - 272usize] ; ["Alignment of group_filter"] [:: core :: mem :: align_of :: < group_filter > () - 8usize] ; ["Offset of field: group_filter::gf_interface"] [:: core :: mem :: offset_of ! (group_filter , gf_interface) - 0usize] ; ["Offset of field: group_filter::gf_group"] [:: core :: mem :: offset_of ! (group_filter , gf_group) - 8usize] ; ["Offset of field: group_filter::gf_fmode"] [:: core :: mem :: offset_of ! (group_filter , gf_fmode) - 136usize] ; ["Offset of field: group_filter::gf_numsrc"] [:: core :: mem :: offset_of ! (group_filter , gf_numsrc) - 140usize] ; ["Offset of field: group_filter::gf_slist"] [:: core :: mem :: offset_of ! (group_filter , gf_slist) - 144usize] ; } ; unsafe extern "C" { pub fn ntohl (__netlong : u32) -> u32 ; } unsafe extern "C" { pub fn ntohs (__netshort : u16) -> u16 ; } unsafe extern "C" { pub fn htonl (__hostlong : u32) -> u32 ; } unsafe extern "C" { pub fn htons (__hostshort : u16) -> u16 ; } unsafe extern "C" { pub fn bindresvport (__sockfd : :: core :: ffi :: c_int , __sock_in : * mut sockaddr_in) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn bindresvport6 (__sockfd : :: core :: ffi :: c_int , __sock_in : * mut sockaddr_in6) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn inet_addr (__cp : * const :: core :: ffi :: c_char) -> in_addr_t ; } unsafe extern "C" { pub fn inet_lnaof (__in : in_addr) -> in_addr_t ; } unsafe extern "C" { pub fn inet_makeaddr (__net : in_addr_t , __host : in_addr_t) -> in_addr ; } unsafe extern "C" { pub fn inet_netof (__in : in_addr) -> in_addr_t ; } unsafe extern "C" { pub fn inet_network (__cp : * const :: core :: ffi :: c_char) -> in_addr_t ; } unsafe extern "C" { pub fn inet_ntoa (__in : in_addr) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn inet_pton (__af : :: core :: ffi :: c_int , __cp : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn inet_ntop (__af : :: core :: ffi :: c_int , __cp : * const :: core :: ffi :: c_void , __buf : * mut :: core :: ffi :: c_char , __len : socklen_t) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn inet_aton (__cp : * const :: core :: ffi :: c_char , __inp : * mut in_addr) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn inet_neta (__net : in_addr_t , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn inet_net_ntop (__af : :: core :: ffi :: c_int , __cp : * const :: core :: ffi :: c_void , __bits : :: core :: ffi :: c_int , __buf : * mut :: core :: ffi :: c_char , __len : usize) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn inet_net_pton (__af : :: core :: ffi :: c_int , __cp : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_void , __len : usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn inet_nsap_addr (__cp : * const :: core :: ffi :: c_char , __buf : * mut :: core :: ffi :: c_uchar , __len : :: core :: ffi :: c_int) -> :: core :: ffi :: c_uint ; } unsafe extern "C" { pub fn inet_nsap_ntoa (__len : :: core :: ffi :: c_int , __cp : * const :: core :: ffi :: c_uchar , __buf : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } pub type SOCKADDR = sockaddr ; pub type SOCKADDR_S = sockaddr_storage ; pub type SOCKADDR_IN = sockaddr_in ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct hostent { _unused : [u8 ; 0] , } pub type HOSTENT = hostent ; unsafe extern "C" { pub fn wolfIO_TcpConnect (sockfd : * mut SOCKET_T , ip : * const :: core :: ffi :: c_char , port : :: core :: ffi :: c_ushort , to_sec : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfIO_TcpAccept (sockfd : SOCKET_T , peer_addr : * mut SOCKADDR , peer_len : * mut socklen_t) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfIO_TcpBind (sockfd : * mut SOCKET_T , port : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfIO_Send (sd : SOCKET_T , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , wrFlags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfIO_Recv (sd : SOCKET_T , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , rdFlags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_BioSend (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_BioReceive (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SslBioSend (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn SslBioReceive (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn EmbedReceive (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn EmbedSend (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type WolfSSLGenericIORecvCb = :: core :: option :: Option < unsafe extern "C" fn (buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; pub type CallbackIORecv = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; pub type CallbackIOSend = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetIORecv (ctx : * mut WOLFSSL_CTX , CBIORecv : CallbackIORecv) ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetIOSend (ctx : * mut WOLFSSL_CTX , CBIOSend : CallbackIOSend) ; } unsafe extern "C" { pub fn wolfSSL_SSLSetIORecv (ssl : * mut WOLFSSL , CBIORecv : CallbackIORecv) ; } unsafe extern "C" { pub fn wolfSSL_SSLSetIOSend (ssl : * mut WOLFSSL , CBIOSend : CallbackIOSend) ; } unsafe extern "C" { pub fn wolfSSL_SSLDisableRead (ssl : * mut WOLFSSL) ; } unsafe extern "C" { pub fn wolfSSL_SSLEnableRead (ssl : * mut WOLFSSL) ; } unsafe extern "C" { pub fn wolfSSL_SetIOReadCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_SetIOWriteCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetIOReadCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_GetIOWriteCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_SetIOReadFlags (ssl : * mut WOLFSSL , flags : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_SetIOWriteFlags (ssl : * mut WOLFSSL , flags : :: core :: ffi :: c_int) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_DSA { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_EC_KEY { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_EC_POINT { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_EC_GROUP { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_EC_BUILTIN_CURVE { _unused : [u8 ; 0] , } pub type WOLFSSL_EC_METHOD = WOLFSSL_EC_GROUP ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ECDSA_SIG { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_CIPHER { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_LOOKUP { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_LOOKUP_METHOD { _unused : [u8 ; 0] , } pub type WOLFSSL_X509_CRL = WOLFSSL_CRL ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_STORE { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_VERIFY_PARAM { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_BIO_METHOD { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_EXTENSION { _unused : [u8 ; 0] , } pub type OTHERNAME = WOLFSSL_ASN1_OTHERNAME ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_v3_ext_method { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_OBJ_NAME { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_dynlock_value { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_DH { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_BIT_STRING { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_AUTHORITY_KEYID { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_BASIC_CONSTRAINTS { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_CONF_CTX { _unused : [u8 ; 0] , } pub type WOLFSSL_X509_STORE_CTX_get_crl_cb = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut WOLFSSL_X509_STORE_CTX , arg2 : * mut * mut WOLFSSL_X509_CRL , arg3 : * mut WOLFSSL_X509) -> :: core :: ffi :: c_int > ; pub type WOLFSSL_X509_STORE_CTX_check_crl_cb = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut WOLFSSL_X509_STORE_CTX , arg2 : * mut WOLFSSL_X509_CRL) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_STRING { pub strData : [:: core :: ffi :: c_char ; 64usize] , pub length : :: core :: ffi :: c_int , pub type_ : :: core :: ffi :: c_int , pub nid : :: core :: ffi :: c_int , pub data : * mut :: core :: ffi :: c_char , pub flags : :: core :: ffi :: c_long , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_STRING"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_STRING > () - 104usize] ; ["Alignment of WOLFSSL_ASN1_STRING"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_STRING > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_STRING::strData"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_STRING , strData) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_STRING::length"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_STRING , length) - 64usize] ; ["Offset of field: WOLFSSL_ASN1_STRING::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_STRING , type_) - 68usize] ; ["Offset of field: WOLFSSL_ASN1_STRING::nid"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_STRING , nid) - 72usize] ; ["Offset of field: WOLFSSL_ASN1_STRING::data"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_STRING , data) - 80usize] ; ["Offset of field: WOLFSSL_ASN1_STRING::flags"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_STRING , flags) - 88usize] ; } ; impl WOLFSSL_ASN1_STRING { # [inline] pub fn isDynamic (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_isDynamic (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn isDynamic_raw (this : * const Self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u32) } } # [inline] pub unsafe fn set_isDynamic_raw (this : * mut Self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (isDynamic : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let isDynamic : u32 = unsafe { :: core :: mem :: transmute (isDynamic) } ; isDynamic as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_OTHERNAME { pub type_id : * mut WOLFSSL_ASN1_OBJECT , pub value : * mut WOLFSSL_ASN1_TYPE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_OTHERNAME"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_OTHERNAME > () - 16usize] ; ["Alignment of WOLFSSL_ASN1_OTHERNAME"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_OTHERNAME > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_OTHERNAME::type_id"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OTHERNAME , type_id) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_OTHERNAME::value"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OTHERNAME , value) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFSSL_GENERAL_NAME { pub type_ : :: core :: ffi :: c_int , pub d : WOLFSSL_GENERAL_NAME__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLFSSL_GENERAL_NAME__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_char , pub otherName : * mut WOLFSSL_ASN1_OTHERNAME , pub rfc822Name : * mut WOLFSSL_ASN1_STRING , pub dNSName : * mut WOLFSSL_ASN1_STRING , pub x400Address : * mut WOLFSSL_ASN1_TYPE , pub directoryName : * mut WOLFSSL_X509_NAME , pub uniformResourceIdentifier : * mut WOLFSSL_ASN1_STRING , pub iPAddress : * mut WOLFSSL_ASN1_STRING , pub registeredID : * mut WOLFSSL_ASN1_OBJECT , pub ip : * mut WOLFSSL_ASN1_STRING , pub dirn : * mut WOLFSSL_X509_NAME , pub ia5 : * mut WOLFSSL_ASN1_STRING , pub rid : * mut WOLFSSL_ASN1_OBJECT , pub other : * mut WOLFSSL_ASN1_TYPE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_GENERAL_NAME__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLFSSL_GENERAL_NAME__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLFSSL_GENERAL_NAME__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLFSSL_GENERAL_NAME__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , ptr) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::otherName"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , otherName) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::rfc822Name"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , rfc822Name) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::dNSName"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , dNSName) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::x400Address"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , x400Address) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::directoryName"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , directoryName) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::uniformResourceIdentifier"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , uniformResourceIdentifier) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::iPAddress"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , iPAddress) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::registeredID"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , registeredID) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::ip"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , ip) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::dirn"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , dirn) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::ia5"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , ia5) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::rid"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , rid) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME__bindgen_ty_1::other"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME__bindgen_ty_1 , other) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_GENERAL_NAME"] [:: core :: mem :: size_of :: < WOLFSSL_GENERAL_NAME > () - 16usize] ; ["Alignment of WOLFSSL_GENERAL_NAME"] [:: core :: mem :: align_of :: < WOLFSSL_GENERAL_NAME > () - 8usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME , type_) - 0usize] ; ["Offset of field: WOLFSSL_GENERAL_NAME::d"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_NAME , d) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_GENERAL_SUBTREE { pub base : * mut WOLFSSL_GENERAL_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_GENERAL_SUBTREE"] [:: core :: mem :: size_of :: < WOLFSSL_GENERAL_SUBTREE > () - 8usize] ; ["Alignment of WOLFSSL_GENERAL_SUBTREE"] [:: core :: mem :: align_of :: < WOLFSSL_GENERAL_SUBTREE > () - 8usize] ; ["Offset of field: WOLFSSL_GENERAL_SUBTREE::base"] [:: core :: mem :: offset_of ! (WOLFSSL_GENERAL_SUBTREE , base) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_NAME_CONSTRAINTS { pub permittedSubtrees : * mut WOLFSSL_STACK , pub excludedSubtrees : * mut WOLFSSL_STACK , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_NAME_CONSTRAINTS"] [:: core :: mem :: size_of :: < WOLFSSL_NAME_CONSTRAINTS > () - 16usize] ; ["Alignment of WOLFSSL_NAME_CONSTRAINTS"] [:: core :: mem :: align_of :: < WOLFSSL_NAME_CONSTRAINTS > () - 8usize] ; ["Offset of field: WOLFSSL_NAME_CONSTRAINTS::permittedSubtrees"] [:: core :: mem :: offset_of ! (WOLFSSL_NAME_CONSTRAINTS , permittedSubtrees) - 0usize] ; ["Offset of field: WOLFSSL_NAME_CONSTRAINTS::excludedSubtrees"] [:: core :: mem :: offset_of ! (WOLFSSL_NAME_CONSTRAINTS , excludedSubtrees) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFSSL_DIST_POINT_NAME { pub type_ : :: core :: ffi :: c_int , pub name : WOLFSSL_DIST_POINT_NAME__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLFSSL_DIST_POINT_NAME__bindgen_ty_1 { pub fullname : * mut WOLFSSL_STACK , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_DIST_POINT_NAME__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLFSSL_DIST_POINT_NAME__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLFSSL_DIST_POINT_NAME__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLFSSL_DIST_POINT_NAME__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLFSSL_DIST_POINT_NAME__bindgen_ty_1::fullname"] [:: core :: mem :: offset_of ! (WOLFSSL_DIST_POINT_NAME__bindgen_ty_1 , fullname) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_DIST_POINT_NAME"] [:: core :: mem :: size_of :: < WOLFSSL_DIST_POINT_NAME > () - 16usize] ; ["Alignment of WOLFSSL_DIST_POINT_NAME"] [:: core :: mem :: align_of :: < WOLFSSL_DIST_POINT_NAME > () - 8usize] ; ["Offset of field: WOLFSSL_DIST_POINT_NAME::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_DIST_POINT_NAME , type_) - 0usize] ; ["Offset of field: WOLFSSL_DIST_POINT_NAME::name"] [:: core :: mem :: offset_of ! (WOLFSSL_DIST_POINT_NAME , name) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_DIST_POINT { pub distpoint : * mut WOLFSSL_DIST_POINT_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_DIST_POINT"] [:: core :: mem :: size_of :: < WOLFSSL_DIST_POINT > () - 8usize] ; ["Alignment of WOLFSSL_DIST_POINT"] [:: core :: mem :: align_of :: < WOLFSSL_DIST_POINT > () - 8usize] ; ["Offset of field: WOLFSSL_DIST_POINT::distpoint"] [:: core :: mem :: offset_of ! (WOLFSSL_DIST_POINT , distpoint) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ACCESS_DESCRIPTION { pub method : * mut WOLFSSL_ASN1_OBJECT , pub location : * mut WOLFSSL_GENERAL_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ACCESS_DESCRIPTION"] [:: core :: mem :: size_of :: < WOLFSSL_ACCESS_DESCRIPTION > () - 16usize] ; ["Alignment of WOLFSSL_ACCESS_DESCRIPTION"] [:: core :: mem :: align_of :: < WOLFSSL_ACCESS_DESCRIPTION > () - 8usize] ; ["Offset of field: WOLFSSL_ACCESS_DESCRIPTION::method"] [:: core :: mem :: offset_of ! (WOLFSSL_ACCESS_DESCRIPTION , method) - 0usize] ; ["Offset of field: WOLFSSL_ACCESS_DESCRIPTION::location"] [:: core :: mem :: offset_of ! (WOLFSSL_ACCESS_DESCRIPTION , location) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509V3_CTX { pub x509 : * mut WOLFSSL_X509 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_X509V3_CTX"] [:: core :: mem :: size_of :: < WOLFSSL_X509V3_CTX > () - 8usize] ; ["Alignment of WOLFSSL_X509V3_CTX"] [:: core :: mem :: align_of :: < WOLFSSL_X509V3_CTX > () - 8usize] ; ["Offset of field: WOLFSSL_X509V3_CTX::x509"] [:: core :: mem :: offset_of ! (WOLFSSL_X509V3_CTX , x509) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_OBJECT { pub heap : * mut :: core :: ffi :: c_void , pub obj : * const :: core :: ffi :: c_uchar , pub sName : [:: core :: ffi :: c_char ; 40usize] , pub type_ : :: core :: ffi :: c_int , pub grp : :: core :: ffi :: c_int , pub nid : :: core :: ffi :: c_int , pub objSz : :: core :: ffi :: c_uint , pub dynamic : :: core :: ffi :: c_uchar , pub d : WOLFSSL_ASN1_OBJECT_d , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ASN1_OBJECT_d { pub dNSName : * mut WOLFSSL_ASN1_STRING , pub ia5_internal : WOLFSSL_ASN1_STRING , pub ia5 : * mut WOLFSSL_ASN1_STRING , pub iPAddress : * mut WOLFSSL_ASN1_STRING , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_OBJECT_d"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_OBJECT_d > () - 128usize] ; ["Alignment of WOLFSSL_ASN1_OBJECT_d"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_OBJECT_d > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT_d::dNSName"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT_d , dNSName) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT_d::ia5_internal"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT_d , ia5_internal) - 8usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT_d::ia5"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT_d , ia5) - 112usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT_d::iPAddress"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT_d , iPAddress) - 120usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_OBJECT"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_OBJECT > () - 208usize] ; ["Alignment of WOLFSSL_ASN1_OBJECT"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_OBJECT > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::heap"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , heap) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::obj"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , obj) - 8usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::sName"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , sName) - 16usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , type_) - 56usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::grp"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , grp) - 60usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::nid"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , nid) - 64usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::objSz"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , objSz) - 68usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::dynamic"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , dynamic) - 72usize] ; ["Offset of field: WOLFSSL_ASN1_OBJECT::d"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_OBJECT , d) - 80usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFSSL_ASN1_TYPE { pub type_ : :: core :: ffi :: c_int , pub value : WOLFSSL_ASN1_TYPE__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLFSSL_ASN1_TYPE__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_char , pub asn1_string : * mut WOLFSSL_ASN1_STRING , pub object : * mut WOLFSSL_ASN1_OBJECT , pub integer : * mut WOLFSSL_ASN1_INTEGER , pub bit_string : * mut WOLFSSL_ASN1_BIT_STRING , pub octet_string : * mut WOLFSSL_ASN1_STRING , pub printablestring : * mut WOLFSSL_ASN1_STRING , pub ia5string : * mut WOLFSSL_ASN1_STRING , pub utctime : * mut WOLFSSL_ASN1_TIME , pub generalizedtime : * mut WOLFSSL_ASN1_TIME , pub utf8string : * mut WOLFSSL_ASN1_STRING , pub set : * mut WOLFSSL_ASN1_STRING , pub sequence : * mut WOLFSSL_ASN1_STRING , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TYPE__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TYPE__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLFSSL_ASN1_TYPE__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TYPE__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , ptr) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::asn1_string"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , asn1_string) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::object"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , object) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::integer"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , integer) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::bit_string"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , bit_string) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::octet_string"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , octet_string) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::printablestring"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , printablestring) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::ia5string"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , ia5string) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::utctime"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , utctime) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::generalizedtime"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , generalizedtime) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::utf8string"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , utf8string) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::set"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , set) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE__bindgen_ty_1::sequence"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE__bindgen_ty_1 , sequence) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ASN1_TYPE"] [:: core :: mem :: size_of :: < WOLFSSL_ASN1_TYPE > () - 16usize] ; ["Alignment of WOLFSSL_ASN1_TYPE"] [:: core :: mem :: align_of :: < WOLFSSL_ASN1_TYPE > () - 8usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE , type_) - 0usize] ; ["Offset of field: WOLFSSL_ASN1_TYPE::value"] [:: core :: mem :: offset_of ! (WOLFSSL_ASN1_TYPE , value) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_ATTRIBUTE { pub object : * mut WOLFSSL_ASN1_OBJECT , pub value : * mut WOLFSSL_ASN1_TYPE , pub set : * mut WOLFSSL_STACK , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_X509_ATTRIBUTE"] [:: core :: mem :: size_of :: < WOLFSSL_X509_ATTRIBUTE > () - 24usize] ; ["Alignment of WOLFSSL_X509_ATTRIBUTE"] [:: core :: mem :: align_of :: < WOLFSSL_X509_ATTRIBUTE > () - 8usize] ; ["Offset of field: WOLFSSL_X509_ATTRIBUTE::object"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_ATTRIBUTE , object) - 0usize] ; ["Offset of field: WOLFSSL_X509_ATTRIBUTE::value"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_ATTRIBUTE , value) - 8usize] ; ["Offset of field: WOLFSSL_X509_ATTRIBUTE::set"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_ATTRIBUTE , set) - 16usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFSSL_EVP_PKEY { pub heap : * mut :: core :: ffi :: c_void , pub type_ : :: core :: ffi :: c_int , pub save_type : :: core :: ffi :: c_int , pub pkey_sz : :: core :: ffi :: c_int , pub ref_ : wolfSSL_Ref , pub pkey : WOLFSSL_EVP_PKEY__bindgen_ty_1 , pub pkey_curve : :: core :: ffi :: c_int , pub pkcs8HeaderSz : word16 , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : u8 , } # [repr (C)] # [derive (Copy , Clone)] pub union WOLFSSL_EVP_PKEY__bindgen_ty_1 { pub ptr : * mut :: core :: ffi :: c_char , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_EVP_PKEY__bindgen_ty_1"] [:: core :: mem :: size_of :: < WOLFSSL_EVP_PKEY__bindgen_ty_1 > () - 8usize] ; ["Alignment of WOLFSSL_EVP_PKEY__bindgen_ty_1"] [:: core :: mem :: align_of :: < WOLFSSL_EVP_PKEY__bindgen_ty_1 > () - 8usize] ; ["Offset of field: WOLFSSL_EVP_PKEY__bindgen_ty_1::ptr"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY__bindgen_ty_1 , ptr) - 0usize] ; } ; # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_EVP_PKEY"] [:: core :: mem :: size_of :: < WOLFSSL_EVP_PKEY > () - 40usize] ; ["Alignment of WOLFSSL_EVP_PKEY"] [:: core :: mem :: align_of :: < WOLFSSL_EVP_PKEY > () - 8usize] ; ["Offset of field: WOLFSSL_EVP_PKEY::heap"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY , heap) - 0usize] ; ["Offset of field: WOLFSSL_EVP_PKEY::type_"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY , type_) - 8usize] ; ["Offset of field: WOLFSSL_EVP_PKEY::save_type"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY , save_type) - 12usize] ; ["Offset of field: WOLFSSL_EVP_PKEY::pkey_sz"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY , pkey_sz) - 16usize] ; ["Offset of field: WOLFSSL_EVP_PKEY::ref_"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY , ref_) - 20usize] ; ["Offset of field: WOLFSSL_EVP_PKEY::pkey"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY , pkey) - 24usize] ; ["Offset of field: WOLFSSL_EVP_PKEY::pkey_curve"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY , pkey_curve) - 32usize] ; ["Offset of field: WOLFSSL_EVP_PKEY::pkcs8HeaderSz"] [:: core :: mem :: offset_of ! (WOLFSSL_EVP_PKEY , pkcs8HeaderSz) - 36usize] ; } ; impl WOLFSSL_EVP_PKEY { # [inline] pub fn ownDh (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u8) } } # [inline] pub fn set_ownDh (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn ownDh_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_ownDh_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn ownEcc (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u8) } } # [inline] pub fn set_ownEcc (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn ownEcc_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_ownEcc_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn ownDsa (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u8) } } # [inline] pub fn set_ownDsa (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn ownDsa_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_ownDsa_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn ownRsa (& self) -> byte { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u8) } } # [inline] pub fn set_ownRsa (& mut self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn ownRsa_raw (this : * const Self) -> byte { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u8) } } # [inline] pub unsafe fn set_ownRsa_raw (this : * mut Self , val : byte) { unsafe { let val : u8 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (ownDh : byte , ownEcc : byte , ownDsa : byte , ownRsa : byte) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let ownDh : u8 = unsafe { :: core :: mem :: transmute (ownDh) } ; ownDh as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let ownEcc : u8 = unsafe { :: core :: mem :: transmute (ownEcc) } ; ownEcc as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let ownDsa : u8 = unsafe { :: core :: mem :: transmute (ownDsa) } ; ownDsa as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let ownRsa : u8 = unsafe { :: core :: mem :: transmute (ownRsa) } ; ownRsa as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_BUFFER_INFO { pub buffer : * mut :: core :: ffi :: c_uchar , pub length : word32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_BUFFER_INFO"] [:: core :: mem :: size_of :: < WOLFSSL_BUFFER_INFO > () - 16usize] ; ["Alignment of WOLFSSL_BUFFER_INFO"] [:: core :: mem :: align_of :: < WOLFSSL_BUFFER_INFO > () - 8usize] ; ["Offset of field: WOLFSSL_BUFFER_INFO::buffer"] [:: core :: mem :: offset_of ! (WOLFSSL_BUFFER_INFO , buffer) - 0usize] ; ["Offset of field: WOLFSSL_BUFFER_INFO::length"] [:: core :: mem :: offset_of ! (WOLFSSL_BUFFER_INFO , length) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_BUF_MEM { pub data : * mut :: core :: ffi :: c_char , pub length : usize , pub max : usize , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_BUF_MEM"] [:: core :: mem :: size_of :: < WOLFSSL_BUF_MEM > () - 24usize] ; ["Alignment of WOLFSSL_BUF_MEM"] [:: core :: mem :: align_of :: < WOLFSSL_BUF_MEM > () - 8usize] ; ["Offset of field: WOLFSSL_BUF_MEM::data"] [:: core :: mem :: offset_of ! (WOLFSSL_BUF_MEM , data) - 0usize] ; ["Offset of field: WOLFSSL_BUF_MEM::length"] [:: core :: mem :: offset_of ! (WOLFSSL_BUF_MEM , length) - 8usize] ; ["Offset of field: WOLFSSL_BUF_MEM::max"] [:: core :: mem :: offset_of ! (WOLFSSL_BUF_MEM , max) - 16usize] ; } ; pub type VerifyCallback = :: core :: option :: Option < unsafe extern "C" fn (arg1 : :: core :: ffi :: c_int , arg2 : * mut WOLFSSL_X509_STORE_CTX) -> :: core :: ffi :: c_int > ; pub type WOLFSSL_X509_STORE_CTX_verify_cb = :: core :: option :: Option < unsafe extern "C" fn (arg1 : :: core :: ffi :: c_int , arg2 : * mut WOLFSSL_X509_STORE_CTX) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_X509_STORE_CTX { pub sesChain : * mut WOLFSSL_X509_CHAIN , pub domain : * mut :: core :: ffi :: c_char , pub userCtx : * mut :: core :: ffi :: c_void , pub error : :: core :: ffi :: c_int , pub error_depth : :: core :: ffi :: c_int , pub discardSessionCerts : :: core :: ffi :: c_int , pub totalCerts : :: core :: ffi :: c_int , pub certs : * mut WOLFSSL_BUFFER_INFO , pub verify_cb : WOLFSSL_X509_STORE_CTX_verify_cb , pub heap : * mut :: core :: ffi :: c_void , pub flags : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_X509_STORE_CTX"] [:: core :: mem :: size_of :: < WOLFSSL_X509_STORE_CTX > () - 72usize] ; ["Alignment of WOLFSSL_X509_STORE_CTX"] [:: core :: mem :: align_of :: < WOLFSSL_X509_STORE_CTX > () - 8usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::sesChain"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , sesChain) - 0usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::domain"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , domain) - 8usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::userCtx"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , userCtx) - 16usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::error"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , error) - 24usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::error_depth"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , error_depth) - 28usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::discardSessionCerts"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , discardSessionCerts) - 32usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::totalCerts"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , totalCerts) - 36usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::certs"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , certs) - 40usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::verify_cb"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , verify_cb) - 48usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::heap"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , heap) - 56usize] ; ["Offset of field: WOLFSSL_X509_STORE_CTX::flags"] [:: core :: mem :: offset_of ! (WOLFSSL_X509_STORE_CTX , flags) - 64usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ALERT { pub code : :: core :: ffi :: c_int , pub level : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ALERT"] [:: core :: mem :: size_of :: < WOLFSSL_ALERT > () - 8usize] ; ["Alignment of WOLFSSL_ALERT"] [:: core :: mem :: align_of :: < WOLFSSL_ALERT > () - 4usize] ; ["Offset of field: WOLFSSL_ALERT::code"] [:: core :: mem :: offset_of ! (WOLFSSL_ALERT , code) - 0usize] ; ["Offset of field: WOLFSSL_ALERT::level"] [:: core :: mem :: offset_of ! (WOLFSSL_ALERT , level) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFSSL_ALERT_HISTORY { pub last_rx : WOLFSSL_ALERT , pub last_tx : WOLFSSL_ALERT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFSSL_ALERT_HISTORY"] [:: core :: mem :: size_of :: < WOLFSSL_ALERT_HISTORY > () - 16usize] ; ["Alignment of WOLFSSL_ALERT_HISTORY"] [:: core :: mem :: align_of :: < WOLFSSL_ALERT_HISTORY > () - 4usize] ; ["Offset of field: WOLFSSL_ALERT_HISTORY::last_rx"] [:: core :: mem :: offset_of ! (WOLFSSL_ALERT_HISTORY , last_rx) - 0usize] ; ["Offset of field: WOLFSSL_ALERT_HISTORY::last_tx"] [:: core :: mem :: offset_of ! (WOLFSSL_ALERT_HISTORY , last_tx) - 8usize] ; } ; pub const AlertDescription_invalid_alert : AlertDescription = - 1 ; pub const AlertDescription_close_notify : AlertDescription = 0 ; pub const AlertDescription_unexpected_message : AlertDescription = 10 ; pub const AlertDescription_bad_record_mac : AlertDescription = 20 ; pub const AlertDescription_record_overflow : AlertDescription = 22 ; pub const AlertDescription_decompression_failure : AlertDescription = 30 ; pub const AlertDescription_handshake_failure : AlertDescription = 40 ; pub const AlertDescription_no_certificate : AlertDescription = 41 ; pub const AlertDescription_bad_certificate : AlertDescription = 42 ; pub const AlertDescription_unsupported_certificate : AlertDescription = 43 ; pub const AlertDescription_certificate_revoked : AlertDescription = 44 ; pub const AlertDescription_certificate_expired : AlertDescription = 45 ; pub const AlertDescription_certificate_unknown : AlertDescription = 46 ; pub const AlertDescription_illegal_parameter : AlertDescription = 47 ; pub const AlertDescription_unknown_ca : AlertDescription = 48 ; pub const AlertDescription_access_denied : AlertDescription = 49 ; pub const AlertDescription_decode_error : AlertDescription = 50 ; pub const AlertDescription_decrypt_error : AlertDescription = 51 ; pub const AlertDescription_protocol_version : AlertDescription = 70 ; pub const AlertDescription_insufficient_security : AlertDescription = 71 ; pub const AlertDescription_internal_error : AlertDescription = 80 ; pub const AlertDescription_inappropriate_fallback : AlertDescription = 86 ; pub const AlertDescription_user_canceled : AlertDescription = 90 ; pub const AlertDescription_no_renegotiation : AlertDescription = 100 ; pub const AlertDescription_missing_extension : AlertDescription = 109 ; pub const AlertDescription_unsupported_extension : AlertDescription = 110 ; pub const AlertDescription_unrecognized_name : AlertDescription = 112 ; pub const AlertDescription_bad_certificate_status_response : AlertDescription = 113 ; pub const AlertDescription_unknown_psk_identity : AlertDescription = 115 ; pub const AlertDescription_certificate_required : AlertDescription = 116 ; pub const AlertDescription_no_application_protocol : AlertDescription = 120 ; pub const AlertDescription_ech_required : AlertDescription = 121 ; pub type AlertDescription = :: core :: ffi :: c_int ; pub const AlertLevel_alert_none : AlertLevel = 0 ; pub const AlertLevel_alert_warning : AlertLevel = 1 ; pub const AlertLevel_alert_fatal : AlertLevel = 2 ; pub type AlertLevel = :: core :: ffi :: c_uint ; pub const SNICbReturn_warning_return : SNICbReturn = 1 ; pub const SNICbReturn_fatal_return : SNICbReturn = 2 ; pub const SNICbReturn_noack_return : SNICbReturn = 3 ; pub type SNICbReturn = :: core :: ffi :: c_uint ; pub type wolfSSL_method_func = :: core :: option :: Option < unsafe extern "C" fn (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD > ; unsafe extern "C" { pub fn wolfTLS_client_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLS_client_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLS_server_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLS_server_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfSSLv23_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfSSLv23_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfSSLv23_client_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfSSLv23_client_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfSSLv23_server_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfSSLv23_server_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_2_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_2_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_2_client_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_2_client_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_2_server_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_2_server_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_3_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_3_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_3_client_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_3_client_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_3_server_method_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfTLSv1_3_server_method () -> * mut WOLFSSL_METHOD ; } unsafe extern "C" { pub fn wolfSSL_use_old_poly (ssl : * mut WOLFSSL , value : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_certificate_file (ctx : * mut WOLFSSL_CTX , file : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_PrivateKey_file (ctx : * mut WOLFSSL_CTX , file : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_verify_depth (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_get_verify_depth (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_verify_depth (ctx : * mut WOLFSSL_CTX , depth : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_CTX_load_verify_locations_ex (ctx : * mut WOLFSSL_CTX , file : * const :: core :: ffi :: c_char , path : * const :: core :: ffi :: c_char , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_load_verify_locations (ctx : * mut WOLFSSL_CTX , file : * const :: core :: ffi :: c_char , path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_load_verify_locations_compat (ctx : * mut WOLFSSL_CTX , file : * const :: core :: ffi :: c_char , path : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_system_CA_dirs (num : * mut word32) -> * mut * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_CTX_load_system_CA_certs (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_certificate_chain_file (ctx : * mut WOLFSSL_CTX , file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_certificate_chain_file_format (ctx : * mut WOLFSSL_CTX , file : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_RSAPrivateKey_file (ctx : * mut WOLFSSL_CTX , file : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_certificate_file (ssl : * mut WOLFSSL , file : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_PrivateKey_file (ssl : * mut WOLFSSL , file : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_certificate_chain_file (ssl : * mut WOLFSSL , file : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_certificate_chain_file_format (ssl : * mut WOLFSSL , file : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_RSAPrivateKey_file (ssl : * mut WOLFSSL , file : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_new_ex (method : * mut WOLFSSL_METHOD , heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_CTX ; } unsafe extern "C" { pub fn wolfSSL_CTX_new (method : * mut WOLFSSL_METHOD) -> * mut WOLFSSL_CTX ; } unsafe extern "C" { pub fn wolfSSL_CTX_up_ref (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_new (ctx : * mut WOLFSSL_CTX) -> * mut WOLFSSL ; } unsafe extern "C" { pub fn wolfSSL_get_SSL_CTX (ssl : * const WOLFSSL) -> * mut WOLFSSL_CTX ; } unsafe extern "C" { pub fn wolfSSL_CTX_get0_param (ctx : * mut WOLFSSL_CTX) -> * mut WOLFSSL_X509_VERIFY_PARAM ; } unsafe extern "C" { pub fn wolfSSL_get0_param (ssl : * mut WOLFSSL) -> * mut WOLFSSL_X509_VERIFY_PARAM ; } unsafe extern "C" { pub fn wolfSSL_CTX_set1_param (ctx : * mut WOLFSSL_CTX , vpm : * mut WOLFSSL_X509_VERIFY_PARAM) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_is_server (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_write_dup (ssl : * mut WOLFSSL) -> * mut WOLFSSL ; } unsafe extern "C" { pub fn wolfSSL_set_fd (ssl : * mut WOLFSSL , fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_write_fd (ssl : * mut WOLFSSL , fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_read_fd (ssl : * mut WOLFSSL , fd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_cipher_list (priority : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_cipher_list_ex (ssl : * mut WOLFSSL , priority : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_ciphers (buf : * mut :: core :: ffi :: c_char , len : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_ciphers_iana (buf : * mut :: core :: ffi :: c_char , len : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_cipher_name (ssl : * mut WOLFSSL) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_cipher_name_from_suite (cipherSuite0 : :: core :: ffi :: c_uchar , cipherSuite : :: core :: ffi :: c_uchar) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_cipher_name_iana_from_suite (cipherSuite0 : :: core :: ffi :: c_uchar , cipherSuite : :: core :: ffi :: c_uchar) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_cipher_suite_from_name (name : * const :: core :: ffi :: c_char , cipherSuite0 : * mut :: core :: ffi :: c_uchar , cipherSuite : * mut :: core :: ffi :: c_uchar , flags : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_shared_ciphers (ssl : * mut WOLFSSL , buf : * mut :: core :: ffi :: c_char , len : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_curve_name (ssl : * mut WOLFSSL) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_fd (ssl : * const WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_wfd (ssl : * const WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_connect (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_write (ssl : * mut WOLFSSL , data : * const :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_write_ex (ssl : * mut WOLFSSL , data : * const :: core :: ffi :: c_void , sz : usize , wr : * mut usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_read (ssl : * mut WOLFSSL , data : * mut :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_read_ex (ssl : * mut WOLFSSL , data : * mut :: core :: ffi :: c_void , sz : usize , rd : * mut usize) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_peek (ssl : * mut WOLFSSL , data : * mut :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_accept (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_inject (ssl : * mut WOLFSSL , data : * const :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_mutual_auth (ctx : * mut WOLFSSL_CTX , req : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_mutual_auth (ssl : * mut WOLFSSL , req : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_groups (ctx : * mut WOLFSSL_CTX , groups : * mut :: core :: ffi :: c_int , count : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_groups (ssl : * mut WOLFSSL , groups : * mut :: core :: ffi :: c_int , count : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_send_hrr_cookie (ssl : * mut WOLFSSL , secret : * const :: core :: ffi :: c_uchar , secretSz : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_disable_hrr_cookie (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_no_ticket_TLSv13 (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_no_ticket_TLSv13 (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_no_dhe_psk (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_no_dhe_psk (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_only_dhe_psk (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_only_dhe_psk (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_update_keys (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_key_update_response (ssl : * mut WOLFSSL , required : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_allow_post_handshake_auth (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_allow_post_handshake_auth (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_request_certificate (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_preferred_group (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_connect_TLSv13 (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_accept_TLSv13 (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_free (ctx : * mut WOLFSSL_CTX) ; } unsafe extern "C" { pub fn wolfSSL_free (ssl : * mut WOLFSSL) ; } unsafe extern "C" { pub fn wolfSSL_shutdown (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SendUserCanceled (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_send (ssl : * mut WOLFSSL , data : * const :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int , flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_recv (ssl : * mut WOLFSSL , data : * mut :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int , flags : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_quiet_shutdown (ctx : * mut WOLFSSL_CTX , mode : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_set_quiet_shutdown (ssl : * mut WOLFSSL , mode : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_get_error (ssl : * mut WOLFSSL , ret : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_session (ssl : * mut WOLFSSL , session : * mut WOLFSSL_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SSL_SESSION_set_timeout (ses : * mut WOLFSSL_SESSION , t : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_SESSION_set_time (ses : * mut WOLFSSL_SESSION , t : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_get_session (ssl : * mut WOLFSSL) -> * mut WOLFSSL_SESSION ; } unsafe extern "C" { pub fn wolfSSL_flush_sessions (ctx : * mut WOLFSSL_CTX , tm : :: core :: ffi :: c_long) ; } unsafe extern "C" { pub fn wolfSSL_CTX_flush_sessions (ctx : * mut WOLFSSL_CTX , tm : :: core :: ffi :: c_long) ; } unsafe extern "C" { pub fn wolfSSL_SetServerID (ssl : * mut WOLFSSL , id : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , newSession : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_ex_data (ssl : * const WOLFSSL , idx : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_set_ex_data (ssl : * mut WOLFSSL , idx : :: core :: ffi :: c_int , data : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_verify (ctx : * mut WOLFSSL_CTX , mode : :: core :: ffi :: c_int , verify_callback : VerifyCallback) ; } unsafe extern "C" { pub fn wolfSSL_set_verify (ssl : * mut WOLFSSL , mode : :: core :: ffi :: c_int , verify_callback : VerifyCallback) ; } unsafe extern "C" { pub fn wolfSSL_set_verify_result (ssl : * mut WOLFSSL , v : :: core :: ffi :: c_long) ; } unsafe extern "C" { pub fn wolfSSL_SetCertCbCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetCertCbCtx (ctx : * mut WOLFSSL_CTX , userCtx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_pending (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_has_pending (ssl : * const WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_load_error_strings () ; } unsafe extern "C" { pub fn wolfSSL_library_init () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_session_cache_mode (ctx : * mut WOLFSSL_CTX , mode : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_save_session_cache (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_restore_session_cache (fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_memsave_session_cache (mem : * mut :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_memrestore_session_cache (mem : * const :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_session_cache_memsize () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_save_cert_cache (ctx : * mut WOLFSSL_CTX , fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_restore_cert_cache (ctx : * mut WOLFSSL_CTX , fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_memsave_cert_cache (ctx : * mut WOLFSSL_CTX , mem : * mut :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int , used : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_memrestore_cert_cache (ctx : * mut WOLFSSL_CTX , mem : * const :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_get_cert_cache_memsize (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_cipher_list (ctx : * mut WOLFSSL_CTX , list : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_cipher_list (ssl : * mut WOLFSSL , list : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_cipher_list_bytes (ctx : * mut WOLFSSL_CTX , list : * const byte , listSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_cipher_list_bytes (ssl : * mut WOLFSSL , list : * const byte , listSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_set_using_nonblock (ssl : * mut WOLFSSL , nonblock : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_dtls_get_using_nonblock (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_get_current_timeout (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls13_use_quick_timeout (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls13_set_send_more_acks (ssl : * mut WOLFSSL , value : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_DTLSv1_get_timeout (ssl : * mut WOLFSSL , timeleft : * mut WOLFSSL_TIMEVAL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_DTLSv1_set_initial_timeout_duration (ssl : * mut WOLFSSL , duration_ms : word32) ; } unsafe extern "C" { pub fn wolfSSL_DTLSv1_handle_timeout (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_set_timeout_init (ssl : * mut WOLFSSL , timeout : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_set_timeout_max (ssl : * mut WOLFSSL , timeout : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_got_timeout (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_retransmit (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_create_peer (port : :: core :: ffi :: c_int , ip : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_dtls_free_peer (addr : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_set_peer (ssl : * mut WOLFSSL , peer : * mut :: core :: ffi :: c_void , peerSz : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_set_pending_peer (ssl : * mut WOLFSSL , peer : * mut :: core :: ffi :: c_void , peerSz : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_get_peer (ssl : * mut WOLFSSL , peer : * mut :: core :: ffi :: c_void , peerSz : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_dtls_get0_peer (ssl : * mut WOLFSSL , peer : * mut * const :: core :: ffi :: c_void , peerSz : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_is_stateful (ssl : * mut WOLFSSL) -> byte ; } unsafe extern "C" { pub fn wolfSSL_dtls_get_drop_stats (ssl : * mut WOLFSSL , arg1 : * mut :: core :: ffi :: c_uint , arg2 : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_mcast_set_member_id (ctx : * mut WOLFSSL_CTX , id : :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_secret (ssl : * mut WOLFSSL , epoch : :: core :: ffi :: c_ushort , preMasterSecret : * const :: core :: ffi :: c_uchar , preMasterSz : :: core :: ffi :: c_uint , clientRandom : * const :: core :: ffi :: c_uchar , serverRandom : * const :: core :: ffi :: c_uchar , suite : * const :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_mcast_read (ssl : * mut WOLFSSL , id : * mut :: core :: ffi :: c_ushort , data : * mut :: core :: ffi :: c_void , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_mcast_peer_add (ssl : * mut WOLFSSL , peerId : :: core :: ffi :: c_ushort , sub : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_mcast_peer_known (ssl : * mut WOLFSSL , peerId : :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_mcast_get_max_peers () -> :: core :: ffi :: c_int ; } pub type CallbackMcastHighwater = :: core :: option :: Option < unsafe extern "C" fn (peerId : :: core :: ffi :: c_ushort , maxSeq : :: core :: ffi :: c_uint , curSeq : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_mcast_set_highwater_cb (ctx : * mut WOLFSSL_CTX , maxSeq : :: core :: ffi :: c_uint , first : :: core :: ffi :: c_uint , second : :: core :: ffi :: c_uint , cb : CallbackMcastHighwater) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_mcast_set_highwater_ctx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_ERR_GET_LIB (err : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_ERR_GET_REASON (err : :: core :: ffi :: c_ulong) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_ERR_error_string (errNumber : :: core :: ffi :: c_ulong , data : * mut :: core :: ffi :: c_char) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_ERR_error_string_n (e : :: core :: ffi :: c_ulong , buf : * mut :: core :: ffi :: c_char , len : :: core :: ffi :: c_ulong) ; } unsafe extern "C" { pub fn wolfSSL_ERR_reason_error_string (e : :: core :: ffi :: c_ulong) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_ERR_func_error_string (e : :: core :: ffi :: c_ulong) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_ERR_lib_error_string (e : :: core :: ffi :: c_ulong) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_X509_STORE_CTX_get_error (ctx : * mut WOLFSSL_X509_STORE_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_X509_STORE_CTX_get_error_depth (ctx : * mut WOLFSSL_X509_STORE_CTX) -> :: core :: ffi :: c_int ; } pub const WOLFSSL_OCSP_URL_OVERRIDE : _bindgen_ty_39 = 1 ; pub const WOLFSSL_OCSP_NO_NONCE : _bindgen_ty_39 = 2 ; pub const WOLFSSL_OCSP_CHECKALL : _bindgen_ty_39 = 4 ; pub const WOLFSSL_CRL_CHECKALL : _bindgen_ty_39 = 1 ; pub const WOLFSSL_CRL_CHECK : _bindgen_ty_39 = 2 ; pub type _bindgen_ty_39 = :: core :: ffi :: c_uint ; pub const WOLFSSL_OP_MICROSOFT_SESS_ID_BUG : _bindgen_ty_40 = 1 ; pub const WOLFSSL_OP_NETSCAPE_CHALLENGE_BUG : _bindgen_ty_40 = 2 ; pub const WOLFSSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG : _bindgen_ty_40 = 4 ; pub const WOLFSSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG : _bindgen_ty_40 = 8 ; pub const WOLFSSL_OP_MICROSOFT_BIG_SSLV3_BUFFER : _bindgen_ty_40 = 16 ; pub const WOLFSSL_OP_MSIE_SSLV2_RSA_PADDING : _bindgen_ty_40 = 32 ; pub const WOLFSSL_OP_SSLEAY_080_CLIENT_DH_BUG : _bindgen_ty_40 = 64 ; pub const WOLFSSL_OP_TLS_D5_BUG : _bindgen_ty_40 = 128 ; pub const WOLFSSL_OP_TLS_BLOCK_PADDING_BUG : _bindgen_ty_40 = 256 ; pub const WOLFSSL_OP_TLS_ROLLBACK_BUG : _bindgen_ty_40 = 512 ; pub const WOLFSSL_OP_NO_RENEGOTIATION : _bindgen_ty_40 = 1024 ; pub const WOLFSSL_OP_EPHEMERAL_RSA : _bindgen_ty_40 = 2048 ; pub const WOLFSSL_OP_NO_SSLv3 : _bindgen_ty_40 = 4096 ; pub const WOLFSSL_OP_NO_TLSv1 : _bindgen_ty_40 = 8192 ; pub const WOLFSSL_OP_PKCS1_CHECK_1 : _bindgen_ty_40 = 16384 ; pub const WOLFSSL_OP_PKCS1_CHECK_2 : _bindgen_ty_40 = 32768 ; pub const WOLFSSL_OP_NETSCAPE_CA_DN_BUG : _bindgen_ty_40 = 65536 ; pub const WOLFSSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG : _bindgen_ty_40 = 131072 ; pub const WOLFSSL_OP_SINGLE_DH_USE : _bindgen_ty_40 = 262144 ; pub const WOLFSSL_OP_NO_TICKET : _bindgen_ty_40 = 524288 ; pub const WOLFSSL_OP_DONT_INSERT_EMPTY_FRAGMENTS : _bindgen_ty_40 = 1048576 ; pub const WOLFSSL_OP_NO_QUERY_MTU : _bindgen_ty_40 = 2097152 ; pub const WOLFSSL_OP_COOKIE_EXCHANGE : _bindgen_ty_40 = 4194304 ; pub const WOLFSSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION : _bindgen_ty_40 = 8388608 ; pub const WOLFSSL_OP_SINGLE_ECDH_USE : _bindgen_ty_40 = 16777216 ; pub const WOLFSSL_OP_CIPHER_SERVER_PREFERENCE : _bindgen_ty_40 = 33554432 ; pub const WOLFSSL_OP_NO_TLSv1_1 : _bindgen_ty_40 = 67108864 ; pub const WOLFSSL_OP_NO_TLSv1_2 : _bindgen_ty_40 = 134217728 ; pub const WOLFSSL_OP_NO_COMPRESSION : _bindgen_ty_40 = 268435456 ; pub const WOLFSSL_OP_NO_TLSv1_3 : _bindgen_ty_40 = 536870912 ; pub const WOLFSSL_OP_NO_SSLv2 : _bindgen_ty_40 = 1073741824 ; pub const WOLFSSL_OP_ALL : _bindgen_ty_40 = 1049599 ; pub type _bindgen_ty_40 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wolfSSL_CTX_set_default_passwd_cb_userdata (ctx : * mut WOLFSSL_CTX , userdata : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_default_passwd_cb (ctx : * mut WOLFSSL_CTX , cb : wc_pem_password_cb) ; } unsafe extern "C" { pub fn wolfSSL_CTX_get_default_passwd_cb (ctx : * mut WOLFSSL_CTX) -> wc_pem_password_cb ; } unsafe extern "C" { pub fn wolfSSL_CTX_get_default_passwd_cb_userdata (ctx : * mut WOLFSSL_CTX) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_SSL_renegotiate_pending (s : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_total_renegotiations (s : * mut WOLFSSL) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_num_renegotiations (s : * mut WOLFSSL) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_clear_num_renegotiations (s : * mut WOLFSSL) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_get_alert_history (ssl : * mut WOLFSSL , h : * mut WOLFSSL_ALERT_HISTORY) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_shutdown (ssl : * const WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_rfd (ssl : * mut WOLFSSL , rfd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_wfd (ssl : * mut WOLFSSL , wfd : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_shutdown (ssl : * mut WOLFSSL , opt : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_set_session_id_context (ssl : * mut WOLFSSL , id : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_connect_state (ssl : * mut WOLFSSL) ; } unsafe extern "C" { pub fn wolfSSL_set_accept_state (ssl : * mut WOLFSSL) ; } unsafe extern "C" { pub fn wolfSSL_session_reused (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SESSION_up_ref (session : * mut WOLFSSL_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SESSION_dup (session : * mut WOLFSSL_SESSION) -> * mut WOLFSSL_SESSION ; } unsafe extern "C" { pub fn wolfSSL_SESSION_new () -> * mut WOLFSSL_SESSION ; } unsafe extern "C" { pub fn wolfSSL_SESSION_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_SESSION ; } unsafe extern "C" { pub fn wolfSSL_SESSION_free (session : * mut WOLFSSL_SESSION) ; } unsafe extern "C" { pub fn wolfSSL_CTX_add_session (ctx : * mut WOLFSSL_CTX , session : * mut WOLFSSL_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SSL_CTX_remove_session (ctx : * mut WOLFSSL_CTX , c : * mut WOLFSSL_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SESSION_set_cipher (session : * mut WOLFSSL_SESSION , cipher : * const WOLFSSL_CIPHER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_is_init_finished (ssl : * const WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_version (ssl : * const WOLFSSL) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_current_cipher_suite (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_current_cipher (ssl : * mut WOLFSSL) -> * mut WOLFSSL_CIPHER ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_description (cipher : * const WOLFSSL_CIPHER , in_ : * mut :: core :: ffi :: c_char , len : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_get_name (cipher : * const WOLFSSL_CIPHER) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_get_version (cipher : * const WOLFSSL_CIPHER) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_get_id (cipher : * const WOLFSSL_CIPHER) -> word32 ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_get_auth_nid (cipher : * const WOLFSSL_CIPHER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_get_cipher_nid (cipher : * const WOLFSSL_CIPHER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_get_digest_nid (cipher : * const WOLFSSL_CIPHER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_get_kx_nid (cipher : * const WOLFSSL_CIPHER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CIPHER_is_aead (cipher : * const WOLFSSL_CIPHER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_cipher_by_value (value : word16) -> * const WOLFSSL_CIPHER ; } unsafe extern "C" { pub fn wolfSSL_SESSION_CIPHER_get_name (session : * const WOLFSSL_SESSION) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_get_cipher (ssl : * mut WOLFSSL) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_sk_CIPHER_free (sk : * mut WOLFSSL_STACK) ; } unsafe extern "C" { pub fn wolfSSL_get1_session (ssl : * mut WOLFSSL) -> * mut WOLFSSL_SESSION ; } unsafe extern "C" { pub fn wolfSSL_SessionIsSetup (session : * mut WOLFSSL_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_X509_STORE_CTX_new () -> * mut WOLFSSL_X509_STORE_CTX ; } unsafe extern "C" { pub fn wolfSSL_X509_STORE_CTX_new_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_X509_STORE_CTX ; } unsafe extern "C" { pub fn wolfSSL_X509_STORE_CTX_free (ctx : * mut WOLFSSL_X509_STORE_CTX) ; } unsafe extern "C" { pub fn wolfSSL_set_options (s : * mut WOLFSSL , op : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_get_options (s : * const WOLFSSL) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_X509_NAME_oneline (name : * mut WOLFSSL_X509_NAME , in_ : * mut :: core :: ffi :: c_char , sz : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_ERR_print_errors_fp (fp : * mut FILE , err : :: core :: ffi :: c_int) ; } pub const WOLFSSL_ERROR_NONE : _bindgen_ty_41 = 0 ; pub const WOLFSSL_FAILURE : _bindgen_ty_41 = 0 ; pub const WOLFSSL_SUCCESS : _bindgen_ty_41 = 1 ; pub const WOLFSSL_SHUTDOWN_NOT_DONE : _bindgen_ty_41 = 2 ; pub const WOLFSSL_FILETYPE_ASN1 : _bindgen_ty_41 = 2 ; pub const WOLFSSL_FILETYPE_PEM : _bindgen_ty_41 = 1 ; pub const WOLFSSL_FILETYPE_DEFAULT : _bindgen_ty_41 = 2 ; pub const WOLFSSL_VERIFY_NONE : _bindgen_ty_41 = 0 ; pub const WOLFSSL_VERIFY_PEER : _bindgen_ty_41 = 1 ; pub const WOLFSSL_VERIFY_FAIL_IF_NO_PEER_CERT : _bindgen_ty_41 = 2 ; pub const WOLFSSL_VERIFY_CLIENT_ONCE : _bindgen_ty_41 = 4 ; pub const WOLFSSL_VERIFY_POST_HANDSHAKE : _bindgen_ty_41 = 8 ; pub const WOLFSSL_VERIFY_FAIL_EXCEPT_PSK : _bindgen_ty_41 = 16 ; pub const WOLFSSL_VERIFY_DEFAULT : _bindgen_ty_41 = 512 ; pub const WOLFSSL_SESS_CACHE_OFF : _bindgen_ty_41 = 0 ; pub const WOLFSSL_SESS_CACHE_CLIENT : _bindgen_ty_41 = 1 ; pub const WOLFSSL_SESS_CACHE_SERVER : _bindgen_ty_41 = 2 ; pub const WOLFSSL_SESS_CACHE_BOTH : _bindgen_ty_41 = 3 ; pub const WOLFSSL_SESS_CACHE_NO_AUTO_CLEAR : _bindgen_ty_41 = 8 ; pub const WOLFSSL_SESS_CACHE_NO_INTERNAL_LOOKUP : _bindgen_ty_41 = 256 ; pub const WOLFSSL_SESS_CACHE_NO_INTERNAL_STORE : _bindgen_ty_41 = 512 ; pub const WOLFSSL_SESS_CACHE_NO_INTERNAL : _bindgen_ty_41 = 768 ; pub const WOLFSSL_ERROR_SSL : _bindgen_ty_41 = 1 ; pub const WOLFSSL_ERROR_WANT_READ : _bindgen_ty_41 = 2 ; pub const WOLFSSL_ERROR_WANT_WRITE : _bindgen_ty_41 = 3 ; pub const WOLFSSL_ERROR_WANT_X509_LOOKUP : _bindgen_ty_41 = 4 ; pub const WOLFSSL_ERROR_SYSCALL : _bindgen_ty_41 = 5 ; pub const WOLFSSL_ERROR_ZERO_RETURN : _bindgen_ty_41 = 6 ; pub const WOLFSSL_ERROR_WANT_CONNECT : _bindgen_ty_41 = 7 ; pub const WOLFSSL_ERROR_WANT_ACCEPT : _bindgen_ty_41 = 8 ; pub const WOLFSSL_SENT_SHUTDOWN : _bindgen_ty_41 = 1 ; pub const WOLFSSL_RECEIVED_SHUTDOWN : _bindgen_ty_41 = 2 ; pub const WOLFSSL_MODE_ACCEPT_MOVING_WRITE_BUFFER : _bindgen_ty_41 = 4 ; pub const WOLFSSL_R_SSL_HANDSHAKE_FAILURE : _bindgen_ty_41 = 101 ; pub const WOLFSSL_R_TLSV1_ALERT_UNKNOWN_CA : _bindgen_ty_41 = 102 ; pub const WOLFSSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN : _bindgen_ty_41 = 103 ; pub const WOLFSSL_R_SSLV3_ALERT_BAD_CERTIFICATE : _bindgen_ty_41 = 104 ; pub const WOLF_PEM_BUFSIZE : _bindgen_ty_41 = 1024 ; pub type _bindgen_ty_41 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wolfSSL_ERR_put_error (lib : :: core :: ffi :: c_int , fun : :: core :: ffi :: c_int , err : :: core :: ffi :: c_int , file : * const :: core :: ffi :: c_char , line : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_ERR_get_error_line (file : * mut * const :: core :: ffi :: c_char , line : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn wolfSSL_ERR_get_error_line_data (file : * mut * const :: core :: ffi :: c_char , line : * mut :: core :: ffi :: c_int , data : * mut * const :: core :: ffi :: c_char , flags : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn wolfSSL_ERR_get_error () -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn wolfSSL_ERR_clear_error () ; } unsafe extern "C" { pub fn wolfSSL_RAND_status () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_RAND_pseudo_bytes (buf : * mut :: core :: ffi :: c_uchar , num : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_RAND_bytes (buf : * mut :: core :: ffi :: c_uchar , num : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_options (ctx : * mut WOLFSSL_CTX , opt : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_get_options (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_clear_options (ctx : * mut WOLFSSL_CTX , opt : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_check_private_key (ctx : * const WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_ERR_free_strings () ; } unsafe extern "C" { pub fn wolfSSL_ERR_remove_state (id : :: core :: ffi :: c_ulong) ; } unsafe extern "C" { pub fn wolfSSL_clear (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_state (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_cleanup_all_ex_data () ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_mode (ctx : * mut WOLFSSL_CTX , mode : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_clear_mode (ctx : * mut WOLFSSL_CTX , mode : :: core :: ffi :: c_long) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_get_mode (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_default_read_ahead (ctx : * mut WOLFSSL_CTX , m : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_SSL_get_mode (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_default_verify_paths (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_X509_get_default_cert_file_env () -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_X509_get_default_cert_file () -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_X509_get_default_cert_dir_env () -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_X509_get_default_cert_dir () -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_session_id_context (ctx : * mut WOLFSSL_CTX , sid_ctx : * const :: core :: ffi :: c_uchar , sid_ctx_len : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_peer_certificate (ssl : * mut WOLFSSL) -> * mut WOLFSSL_X509 ; } unsafe extern "C" { pub fn wolfSSL_want_read (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_want_write (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_sess_set_get_cb (ctx : * mut WOLFSSL_CTX , f : :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , arg1 : * const :: core :: ffi :: c_uchar , arg2 : :: core :: ffi :: c_int , arg3 : * mut :: core :: ffi :: c_int) -> * mut WOLFSSL_SESSION >) ; } unsafe extern "C" { pub fn wolfSSL_CTX_sess_set_new_cb (ctx : * mut WOLFSSL_CTX , f : :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , arg1 : * mut WOLFSSL_SESSION) -> :: core :: ffi :: c_int >) ; } unsafe extern "C" { pub fn wolfSSL_CTX_sess_set_remove_cb (ctx : * mut WOLFSSL_CTX , f : :: core :: option :: Option < unsafe extern "C" fn (ctx : * mut WOLFSSL_CTX , arg1 : * mut WOLFSSL_SESSION) >) ; } unsafe extern "C" { pub fn wolfSSL_i2d_SSL_SESSION (sess : * mut WOLFSSL_SESSION , p : * mut * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_d2i_SSL_SESSION (sess : * mut * mut WOLFSSL_SESSION , p : * mut * const :: core :: ffi :: c_uchar , i : :: core :: ffi :: c_long) -> * mut WOLFSSL_SESSION ; } unsafe extern "C" { pub fn wolfSSL_SESSION_has_ticket (session : * const WOLFSSL_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SESSION_get_ticket_lifetime_hint (sess : * const WOLFSSL_SESSION) -> :: core :: ffi :: c_ulong ; } unsafe extern "C" { pub fn wolfSSL_SESSION_get_timeout (session : * const WOLFSSL_SESSION) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_SESSION_get_time (session : * const WOLFSSL_SESSION) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_check_domain_name (ssl : * mut WOLFSSL , dn : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfssl_local_IsValidFQDN (name : * const :: core :: ffi :: c_char , nameSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_check_ip_address (ssl : * mut WOLFSSL , ipaddr : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Init () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_Cleanup () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_security_level (ssl : * const WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_security_level (ssl : * mut WOLFSSL , level : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn wolfSSL_lib_version () -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_OpenSSL_version () -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_lib_version_hex () -> word32 ; } unsafe extern "C" { pub fn wolfSSL_negotiate (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_compression (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_timeout (ssl : * mut WOLFSSL , to : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_timeout (ctx : * mut WOLFSSL_CTX , to : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_current_time_cb (ctx : * mut WOLFSSL_CTX , cb : :: core :: option :: Option < unsafe extern "C" fn (ssl : * const WOLFSSL , out_clock : * mut WOLFSSL_TIMEVAL) >) ; } unsafe extern "C" { pub fn wolfSSL_get_peer_chain (ssl : * mut WOLFSSL) -> * mut WOLFSSL_X509_CHAIN ; } unsafe extern "C" { pub fn wolfSSL_get_chain_count (chain : * mut WOLFSSL_X509_CHAIN) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_chain_length (chain : * mut WOLFSSL_X509_CHAIN , idx : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_chain_cert (chain : * mut WOLFSSL_X509_CHAIN , idx : :: core :: ffi :: c_int) -> * mut :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_get_chain_X509 (chain : * mut WOLFSSL_X509_CHAIN , idx : :: core :: ffi :: c_int) -> * mut WOLFSSL_X509 ; } unsafe extern "C" { pub fn wolfSSL_get_sessionID (s : * const WOLFSSL_SESSION) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_X509_get_serial_number (x509 : * mut WOLFSSL_X509 , in_ : * mut :: core :: ffi :: c_uchar , inOutSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_X509_get_subjectCN (x509 : * mut WOLFSSL_X509) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_X509_get_der (x509 : * mut WOLFSSL_X509 , outSz : * mut :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_X509_get_tbs (x509 : * mut WOLFSSL_X509 , outSz : * mut :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_X509_notBefore (x509 : * mut WOLFSSL_X509) -> * const byte ; } unsafe extern "C" { pub fn wolfSSL_X509_notAfter (x509 : * mut WOLFSSL_X509) -> * const byte ; } unsafe extern "C" { pub fn wolfSSL_X509_version (x509 : * mut WOLFSSL_X509) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_cmp_peer_cert_to_file (ssl : * mut WOLFSSL , fname : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_X509_get_next_altname (cert : * mut WOLFSSL_X509) -> * mut :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn wolfSSL_X509_add_altname_ex (x509 : * mut WOLFSSL_X509 , name : * const :: core :: ffi :: c_char , nameSz : word32 , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_X509_add_altname (x509 : * mut WOLFSSL_X509 , name : * const :: core :: ffi :: c_char , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_d2i_X509 (x509 : * mut * mut WOLFSSL_X509 , in_ : * mut * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) -> * mut WOLFSSL_X509 ; } unsafe extern "C" { pub fn wolfSSL_X509_d2i (x509 : * mut * mut WOLFSSL_X509 , in_ : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) -> * mut WOLFSSL_X509 ; } unsafe extern "C" { pub fn wolfSSL_X509_d2i_ex (x509 : * mut * mut WOLFSSL_X509 , in_ : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_X509 ; } unsafe extern "C" { pub fn wolfSSL_X509_REQ_d2i (x509 : * mut * mut WOLFSSL_X509 , in_ : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) -> * mut WOLFSSL_X509 ; } unsafe extern "C" { pub fn wolfSSL_d2i_X509_REQ_INFO (req : * mut * mut WOLFSSL_X509 , in_ : * mut * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) -> * mut WOLFSSL_X509 ; } unsafe extern "C" { pub fn wolfSSL_i2d_X509 (x509 : * mut WOLFSSL_X509 , out : * mut * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_d2i_X509_CRL (crl : * mut * mut WOLFSSL_X509_CRL , in_ : * const :: core :: ffi :: c_uchar , len : :: core :: ffi :: c_int) -> * mut WOLFSSL_X509_CRL ; } unsafe extern "C" { pub fn wolfSSL_d2i_X509_CRL_fp (file : * mut FILE , crl : * mut * mut WOLFSSL_X509_CRL) -> * mut WOLFSSL_X509_CRL ; } unsafe extern "C" { pub fn wolfSSL_connect_cert (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetTmpDH (ssl : * mut WOLFSSL , p : * const :: core :: ffi :: c_uchar , pSz : :: core :: ffi :: c_int , g : * const :: core :: ffi :: c_uchar , gSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetTmpDH_buffer (ssl : * mut WOLFSSL , b : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetEnableDhKeyTest (ssl : * mut WOLFSSL , enable : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetTmpDH_file (ssl : * mut WOLFSSL , f : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetTmpDH (ctx : * mut WOLFSSL_CTX , p : * const :: core :: ffi :: c_uchar , pSz : :: core :: ffi :: c_int , g : * const :: core :: ffi :: c_uchar , gSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetTmpDH_buffer (ctx : * mut WOLFSSL_CTX , b : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetTmpDH_file (ctx : * mut WOLFSSL_CTX , f : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetMinDhKey_Sz (ctx : * mut WOLFSSL_CTX , keySz_bits : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetMinDhKey_Sz (ssl : * mut WOLFSSL , keySz_bits : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetMaxDhKey_Sz (ctx : * mut WOLFSSL_CTX , keySz_bits : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetMaxDhKey_Sz (ssl : * mut WOLFSSL , keySz_bits : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetDhKey_Sz (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetMinRsaKey_Sz (ctx : * mut WOLFSSL_CTX , keySz : :: core :: ffi :: c_short) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetMinRsaKey_Sz (ssl : * mut WOLFSSL , keySz : :: core :: ffi :: c_short) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetMinEccKey_Sz (ctx : * mut WOLFSSL_CTX , keySz : :: core :: ffi :: c_short) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetMinEccKey_Sz (ssl : * mut WOLFSSL , keySz : :: core :: ffi :: c_short) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetTmpEC_DHE_Sz (ssl : * mut WOLFSSL , sz : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetTmpEC_DHE_Sz (ctx : * mut WOLFSSL_CTX , sz : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_keyblock_size (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_keys (ssl : * mut WOLFSSL , ms : * mut * mut :: core :: ffi :: c_uchar , msLen : * mut :: core :: ffi :: c_uint , sr : * mut * mut :: core :: ffi :: c_uchar , srLen : * mut :: core :: ffi :: c_uint , cr : * mut * mut :: core :: ffi :: c_uchar , crLen : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_make_eap_keys (ssl : * mut WOLFSSL , key : * mut :: core :: ffi :: c_void , len : :: core :: ffi :: c_uint , label : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn readv (__fd : :: core :: ffi :: c_int , __iovec : * const iovec , __count : :: core :: ffi :: c_int) -> isize ; } unsafe extern "C" { pub fn writev (__fd : :: core :: ffi :: c_int , __iovec : * const iovec , __count : :: core :: ffi :: c_int) -> isize ; } unsafe extern "C" { pub fn preadv (__fd : :: core :: ffi :: c_int , __iovec : * const iovec , __count : :: core :: ffi :: c_int , __offset : __off_t) -> isize ; } unsafe extern "C" { pub fn pwritev (__fd : :: core :: ffi :: c_int , __iovec : * const iovec , __count : :: core :: ffi :: c_int , __offset : __off_t) -> isize ; } unsafe extern "C" { pub fn wolfSSL_writev (ssl : * mut WOLFSSL , iov : * const iovec , iovcnt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_UnloadCAs (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_UnloadIntermediateCerts (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_load_verify_buffer_ex (ctx : * mut WOLFSSL_CTX , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int , userChain : :: core :: ffi :: c_int , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_load_verify_buffer (ctx : * mut WOLFSSL_CTX , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_load_verify_chain_buffer_format (ctx : * mut WOLFSSL_CTX , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_certificate_buffer (ctx : * mut WOLFSSL_CTX , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_PrivateKey_buffer (ctx : * mut WOLFSSL_CTX , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_PrivateKey_Id_ex (ctx : * mut WOLFSSL_CTX , id : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , devId : :: core :: ffi :: c_int , keySz : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_PrivateKey_Id (ctx : * mut WOLFSSL_CTX , id : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_PrivateKey_Label (ctx : * mut WOLFSSL_CTX , label : * const :: core :: ffi :: c_char , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_certificate_chain_buffer_format (ctx : * mut WOLFSSL_CTX , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_certificate_chain_buffer (ctx : * mut WOLFSSL_CTX , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_certificate_label (ctx : * mut WOLFSSL_CTX , label : * const :: core :: ffi :: c_char , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_use_certificate_id (ctx : * mut WOLFSSL_CTX , id : * const :: core :: ffi :: c_uchar , idLen : :: core :: ffi :: c_int , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_certificate_buffer (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_certificate_ASN1 (ssl : * mut WOLFSSL , der : * const :: core :: ffi :: c_uchar , derSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_PrivateKey_buffer (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_PrivateKey_Id_ex (ssl : * mut WOLFSSL , id : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , devId : :: core :: ffi :: c_int , keySz : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_PrivateKey_Id (ssl : * mut WOLFSSL , id : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_PrivateKey_Label (ssl : * mut WOLFSSL , label : * const :: core :: ffi :: c_char , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_certificate_chain_buffer_format (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_certificate_chain_buffer (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_UnloadCertsKeys (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_AltPrivateKey_Id_ex (ssl : * mut WOLFSSL , id : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , devId : :: core :: ffi :: c_int , keySz : :: core :: ffi :: c_long) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_AltPrivateKey_Id (ssl : * mut WOLFSSL , id : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_use_AltPrivateKey_Label (ssl : * mut WOLFSSL , label : * const :: core :: ffi :: c_char , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_group_messages (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_clear_group_messages (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_group_messages (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_clear_group_messages (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_DTLS_SetCookieSecret (ssl : * mut WOLFSSL , secret : * const byte , secretSz : word32) -> :: core :: ffi :: c_int ; } pub const WOLFSSL_SSLV3 : _bindgen_ty_42 = 0 ; pub const WOLFSSL_TLSV1 : _bindgen_ty_42 = 1 ; pub const WOLFSSL_TLSV1_1 : _bindgen_ty_42 = 2 ; pub const WOLFSSL_TLSV1_2 : _bindgen_ty_42 = 3 ; pub const WOLFSSL_TLSV1_3 : _bindgen_ty_42 = 4 ; pub const WOLFSSL_DTLSV1 : _bindgen_ty_42 = 5 ; pub const WOLFSSL_DTLSV1_2 : _bindgen_ty_42 = 6 ; pub const WOLFSSL_DTLSV1_3 : _bindgen_ty_42 = 7 ; pub const WOLFSSL_USER_CA : _bindgen_ty_42 = 1 ; pub const WOLFSSL_CHAIN_CA : _bindgen_ty_42 = 2 ; pub const WOLFSSL_TEMP_CA : _bindgen_ty_42 = 3 ; pub const WOLFSSL_USER_INTER : _bindgen_ty_42 = 4 ; pub type _bindgen_ty_42 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wolfSSL_GetRNG (ssl : * mut WOLFSSL) -> * mut WC_RNG ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetMinVersion (ctx : * mut WOLFSSL_CTX , version : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetMinVersion (ssl : * mut WOLFSSL , version : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetObjectSize () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_GetObjectSize () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_METHOD_GetObjectSize () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetOutputSize (ssl : * mut WOLFSSL , inSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetMaxOutputSize (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetVersion (ssl : * const WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetVersion (ssl : * mut WOLFSSL , version : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type CallbackCACache = :: core :: option :: Option < unsafe extern "C" fn (der : * mut :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_int , type_ : :: core :: ffi :: c_int) > ; pub type CbMissingCRL = :: core :: option :: Option < unsafe extern "C" fn (url : * const :: core :: ffi :: c_char) > ; pub type crlErrorCb = :: core :: option :: Option < unsafe extern "C" fn (ret : :: core :: ffi :: c_int , crl : * mut WOLFSSL_CRL , cm : * mut WOLFSSL_CERT_MANAGER , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; pub type CbOCSPIO = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void , arg2 : * const :: core :: ffi :: c_char , arg3 : :: core :: ffi :: c_int , arg4 : * mut :: core :: ffi :: c_uchar , arg5 : :: core :: ffi :: c_int , arg6 : * mut * mut :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_int > ; pub type CbOCSPRespFree = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut :: core :: ffi :: c_void , arg2 : * mut :: core :: ffi :: c_uchar) > ; pub type CallbackMacEncrypt = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , macOut : * mut :: core :: ffi :: c_uchar , macIn : * const :: core :: ffi :: c_uchar , macInSz : :: core :: ffi :: c_uint , macContent : :: core :: ffi :: c_int , macVerify : :: core :: ffi :: c_int , encOut : * mut :: core :: ffi :: c_uchar , encIn : * const :: core :: ffi :: c_uchar , encSz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetMacEncryptCb (ctx : * mut WOLFSSL_CTX , cb : CallbackMacEncrypt) ; } unsafe extern "C" { pub fn wolfSSL_SetMacEncryptCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetMacEncryptCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackDecryptVerify = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , decOut : * mut :: core :: ffi :: c_uchar , decIn : * const :: core :: ffi :: c_uchar , decSz : :: core :: ffi :: c_uint , content : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , padSz : * mut :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetDecryptVerifyCb (ctx : * mut WOLFSSL_CTX , cb : CallbackDecryptVerify) ; } unsafe extern "C" { pub fn wolfSSL_SetDecryptVerifyCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetDecryptVerifyCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackEncryptMac = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , macOut : * mut :: core :: ffi :: c_uchar , content : :: core :: ffi :: c_int , macVerify : :: core :: ffi :: c_int , encOut : * mut :: core :: ffi :: c_uchar , encIn : * const :: core :: ffi :: c_uchar , encSz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetEncryptMacCb (ctx : * mut WOLFSSL_CTX , cb : CallbackEncryptMac) ; } unsafe extern "C" { pub fn wolfSSL_SetEncryptMacCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetEncryptMacCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackVerifyDecrypt = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , decOut : * mut :: core :: ffi :: c_uchar , decIn : * const :: core :: ffi :: c_uchar , decSz : :: core :: ffi :: c_uint , content : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int , padSz : * mut :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetVerifyDecryptCb (ctx : * mut WOLFSSL_CTX , cb : CallbackVerifyDecrypt) ; } unsafe extern "C" { pub fn wolfSSL_SetVerifyDecryptCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetVerifyDecryptCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_GetMacSecret (ssl : * mut WOLFSSL , verify : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_GetDtlsMacSecret (ssl : * mut WOLFSSL , verify : :: core :: ffi :: c_int , epochOrder : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_GetClientWriteKey (ssl : * mut WOLFSSL) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_GetClientWriteIV (ssl : * mut WOLFSSL) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_GetServerWriteKey (ssl : * mut WOLFSSL) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_GetServerWriteIV (ssl : * mut WOLFSSL) -> * const :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_GetKeySize (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetIVSize (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetSide (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_IsTLSv1_1 (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetBulkCipher (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetCipherBlockSize (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetAeadMacSize (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetHmacSize (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetHmacType (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetPeerSequenceNumber (ssl : * mut WOLFSSL , seq : * mut word64) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetSequenceNumber (ssl : * mut WOLFSSL , seq : * mut word64) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_GetCipherType (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetTlsHmacInner (ssl : * mut WOLFSSL , inner : * mut byte , sz : word32 , content : :: core :: ffi :: c_int , verify : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const WOLFSSL_SERVER_END : _bindgen_ty_43 = 0 ; pub const WOLFSSL_CLIENT_END : _bindgen_ty_43 = 1 ; pub const WOLFSSL_NEITHER_END : _bindgen_ty_43 = 3 ; pub const WOLFSSL_BLOCK_TYPE : _bindgen_ty_43 = 2 ; pub const WOLFSSL_STREAM_TYPE : _bindgen_ty_43 = 3 ; pub const WOLFSSL_AEAD_TYPE : _bindgen_ty_43 = 4 ; pub const WOLFSSL_TLS_HMAC_INNER_SZ : _bindgen_ty_43 = 13 ; pub type _bindgen_ty_43 = :: core :: ffi :: c_uint ; pub const BulkCipherAlgorithm_wolfssl_cipher_null : BulkCipherAlgorithm = 0 ; pub const BulkCipherAlgorithm_wolfssl_rc4 : BulkCipherAlgorithm = 1 ; pub const BulkCipherAlgorithm_wolfssl_rc2 : BulkCipherAlgorithm = 2 ; pub const BulkCipherAlgorithm_wolfssl_des : BulkCipherAlgorithm = 3 ; pub const BulkCipherAlgorithm_wolfssl_triple_des : BulkCipherAlgorithm = 4 ; pub const BulkCipherAlgorithm_wolfssl_des40 : BulkCipherAlgorithm = 5 ; pub const BulkCipherAlgorithm_wolfssl_aes : BulkCipherAlgorithm = 6 ; pub const BulkCipherAlgorithm_wolfssl_aes_gcm : BulkCipherAlgorithm = 7 ; pub const BulkCipherAlgorithm_wolfssl_aes_ccm : BulkCipherAlgorithm = 8 ; pub const BulkCipherAlgorithm_wolfssl_chacha : BulkCipherAlgorithm = 9 ; pub const BulkCipherAlgorithm_wolfssl_camellia : BulkCipherAlgorithm = 10 ; pub const BulkCipherAlgorithm_wolfssl_sm4_cbc : BulkCipherAlgorithm = 11 ; pub const BulkCipherAlgorithm_wolfssl_sm4_gcm : BulkCipherAlgorithm = 12 ; pub const BulkCipherAlgorithm_wolfssl_sm4_ccm : BulkCipherAlgorithm = 13 ; pub const BulkCipherAlgorithm_wolfssl_aria_gcm : BulkCipherAlgorithm = 14 ; pub type BulkCipherAlgorithm = :: core :: ffi :: c_uint ; pub const KDF_MacAlgorithm_wolfssl_sha256 : KDF_MacAlgorithm = 4 ; pub const KDF_MacAlgorithm_wolfssl_sha384 : KDF_MacAlgorithm = 5 ; pub const KDF_MacAlgorithm_wolfssl_sha512 : KDF_MacAlgorithm = 6 ; pub const KDF_MacAlgorithm_wolfssl_sm3 : KDF_MacAlgorithm = 9 ; pub type KDF_MacAlgorithm = :: core :: ffi :: c_uint ; pub type CallbackEccKeyGen = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , key : * mut ecc_key , keySz : :: core :: ffi :: c_uint , ecc_curve : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetEccKeyGenCb (ctx : * mut WOLFSSL_CTX , cb : CallbackEccKeyGen) ; } unsafe extern "C" { pub fn wolfSSL_SetEccKeyGenCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetEccKeyGenCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackEccSign = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , inSz : :: core :: ffi :: c_uint , out : * mut :: core :: ffi :: c_uchar , outSz : * mut word32 , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetEccSignCb (ctx : * mut WOLFSSL_CTX , cb : CallbackEccSign) ; } unsafe extern "C" { pub fn wolfSSL_SetEccSignCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetEccSignCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetEccSignCtx (ctx : * mut WOLFSSL_CTX , userCtx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_CTX_GetEccSignCtx (ctx : * mut WOLFSSL_CTX) -> * mut :: core :: ffi :: c_void ; } pub type CallbackEccVerify = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , sig : * const :: core :: ffi :: c_uchar , sigSz : :: core :: ffi :: c_uint , hash : * const :: core :: ffi :: c_uchar , hashSz : :: core :: ffi :: c_uint , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , result : * mut :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetEccVerifyCb (ctx : * mut WOLFSSL_CTX , cb : CallbackEccVerify) ; } unsafe extern "C" { pub fn wolfSSL_SetEccVerifyCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetEccVerifyCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackEccSharedSecret = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , otherKey : * mut ecc_key , pubKeyDer : * mut :: core :: ffi :: c_uchar , pubKeySz : * mut word32 , out : * mut :: core :: ffi :: c_uchar , outlen : * mut word32 , side : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetEccSharedSecretCb (ctx : * mut WOLFSSL_CTX , cb : CallbackEccSharedSecret) ; } unsafe extern "C" { pub fn wolfSSL_SetEccSharedSecretCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetEccSharedSecretCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub const max_prf_MAX_PRF_HALF : max_prf = 260 ; pub const max_prf_MAX_PRF_LABSEED : max_prf = 128 ; pub const max_prf_MAX_PRF_DIG : max_prf = 224 ; pub type max_prf = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wc_PRF (result : * mut byte , resLen : word32 , secret : * const byte , secLen : word32 , seed : * const byte , seedLen : word32 , hash : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PRF_TLSv1 (digest : * mut byte , digLen : word32 , secret : * const byte , secLen : word32 , label : * const byte , labLen : word32 , seed : * const byte , seedLen : word32 , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_PRF_TLS (digest : * mut byte , digLen : word32 , secret : * const byte , secLen : word32 , label : * const byte , labLen : word32 , seed : * const byte , seedLen : word32 , useAtLeastSha256 : :: core :: ffi :: c_int , hash_type : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub const MAX_TLS13_HKDF_LABEL_SZ : _bindgen_ty_44 = 111 ; pub type _bindgen_ty_44 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wc_Tls13_HKDF_Extract_ex (prk : * mut byte , salt : * const byte , saltLen : word32 , ikm : * mut byte , ikmLen : word32 , digest : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Tls13_HKDF_Extract (prk : * mut byte , salt : * const byte , saltLen : word32 , ikm : * mut byte , ikmLen : word32 , digest : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Tls13_HKDF_Expand_Label_ex (okm : * mut byte , okmLen : word32 , prk : * const byte , prkLen : word32 , protocol : * const byte , protocolLen : word32 , label : * const byte , labelLen : word32 , info : * const byte , infoLen : word32 , digest : :: core :: ffi :: c_int , heap : * mut :: core :: ffi :: c_void , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wc_Tls13_HKDF_Expand_Label (okm : * mut byte , okmLen : word32 , prk : * const byte , prkLen : word32 , protocol : * const byte , protocolLen : word32 , label : * const byte , labelLen : word32 , info : * const byte , infoLen : word32 , digest : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type CallbackHKDFExtract = :: core :: option :: Option < unsafe extern "C" fn (prk : * mut byte , salt : * const byte , saltLen : word32 , ikm : * mut byte , ikmLen : word32 , digest : :: core :: ffi :: c_int , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetHKDFExtractCb (ctx : * mut WOLFSSL_CTX , cb : CallbackHKDFExtract) ; } unsafe extern "C" { pub fn wolfSSL_GetHKDFExtractCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } unsafe extern "C" { pub fn wolfSSL_SetHKDFExtractCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } pub type CallbackDhGenerateKeyPair = :: core :: option :: Option < unsafe extern "C" fn (key : * mut DhKey , rng : * mut WC_RNG , priv_ : * mut byte , privSz : * mut word32 , pub_ : * mut byte , pubSz : * mut word32) -> :: core :: ffi :: c_int > ; pub type CallbackDhAgree = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , key : * mut DhKey , priv_ : * const :: core :: ffi :: c_uchar , privSz : :: core :: ffi :: c_uint , otherPubKeyDer : * const :: core :: ffi :: c_uchar , otherPubKeySz : :: core :: ffi :: c_uint , out : * mut :: core :: ffi :: c_uchar , outlen : * mut word32 , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetDhGenerateKeyPair (ctx : * mut WOLFSSL_CTX , cb : CallbackDhGenerateKeyPair) ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetDhAgreeCb (ctx : * mut WOLFSSL_CTX , cb : CallbackDhAgree) ; } unsafe extern "C" { pub fn wolfSSL_SetDhAgreeCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetDhAgreeCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackRsaSign = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , inSz : :: core :: ffi :: c_uint , out : * mut :: core :: ffi :: c_uchar , outSz : * mut word32 , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetRsaSignCb (ctx : * mut WOLFSSL_CTX , cb : CallbackRsaSign) ; } unsafe extern "C" { pub fn wolfSSL_SetRsaSignCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetRsaSignCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackRsaVerify = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , sig : * mut :: core :: ffi :: c_uchar , sigSz : :: core :: ffi :: c_uint , out : * mut * mut :: core :: ffi :: c_uchar , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetRsaVerifyCb (ctx : * mut WOLFSSL_CTX , cb : CallbackRsaVerify) ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetRsaSignCheckCb (ctx : * mut WOLFSSL_CTX , cb : CallbackRsaVerify) ; } unsafe extern "C" { pub fn wolfSSL_SetRsaVerifyCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetRsaVerifyCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackRsaPssSign = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , inSz : :: core :: ffi :: c_uint , out : * mut :: core :: ffi :: c_uchar , outSz : * mut :: core :: ffi :: c_uint , hash : :: core :: ffi :: c_int , mgf : :: core :: ffi :: c_int , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetRsaPssSignCb (ctx : * mut WOLFSSL_CTX , cb : CallbackRsaPssSign) ; } unsafe extern "C" { pub fn wolfSSL_SetRsaPssSignCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetRsaPssSignCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackRsaPssVerify = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , sig : * mut :: core :: ffi :: c_uchar , sigSz : :: core :: ffi :: c_uint , out : * mut * mut :: core :: ffi :: c_uchar , hash : :: core :: ffi :: c_int , mgf : :: core :: ffi :: c_int , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetRsaPssVerifyCb (ctx : * mut WOLFSSL_CTX , cb : CallbackRsaPssVerify) ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetRsaPssSignCheckCb (ctx : * mut WOLFSSL_CTX , cb : CallbackRsaPssVerify) ; } unsafe extern "C" { pub fn wolfSSL_SetRsaPssVerifyCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetRsaPssVerifyCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackRsaEnc = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , inSz : :: core :: ffi :: c_uint , out : * mut :: core :: ffi :: c_uchar , outSz : * mut word32 , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetRsaEncCb (ctx : * mut WOLFSSL_CTX , cb : CallbackRsaEnc) ; } unsafe extern "C" { pub fn wolfSSL_SetRsaEncCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetRsaEncCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackRsaDec = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , in_ : * mut :: core :: ffi :: c_uchar , inSz : :: core :: ffi :: c_uint , out : * mut * mut :: core :: ffi :: c_uchar , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetRsaDecCb (ctx : * mut WOLFSSL_CTX , cb : CallbackRsaDec) ; } unsafe extern "C" { pub fn wolfSSL_SetRsaDecCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetRsaDecCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackGenMasterSecret = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetGenMasterSecretCb (ctx : * mut WOLFSSL_CTX , cb : CallbackGenMasterSecret) ; } unsafe extern "C" { pub fn wolfSSL_SetGenMasterSecretCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetGenMasterSecretCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackGenExtMasterSecret = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , hash : * mut byte , hashsz : word32 , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetGenExtMasterSecretCb (ctx : * mut WOLFSSL_CTX , cb : CallbackGenExtMasterSecret) ; } unsafe extern "C" { pub fn wolfSSL_SetGenExtMasterSecretCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetGenExtMasterSecretCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackGenPreMaster = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , premaster : * mut byte , preSz : word32 , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetGenPreMasterCb (ctx : * mut WOLFSSL_CTX , cb : CallbackGenPreMaster) ; } unsafe extern "C" { pub fn wolfSSL_SetGenPreMasterCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetGenPreMasterCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackGenSessionKey = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetGenSessionKeyCb (ctx : * mut WOLFSSL_CTX , cb : CallbackGenSessionKey) ; } unsafe extern "C" { pub fn wolfSSL_SetGenSessionKeyCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetGenSessionKeyCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackEncryptKeys = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetEncryptKeysCb (ctx : * mut WOLFSSL_CTX , cb : CallbackEncryptKeys) ; } unsafe extern "C" { pub fn wolfSSL_SetEncryptKeysCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetEncryptKeysCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackTlsFinished = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , side : * const byte , handshake_hash : * const byte , hashSz : word32 , hashes : * mut byte , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetTlsFinishedCb (ctx : * mut WOLFSSL_CTX , cb : CallbackTlsFinished) ; } unsafe extern "C" { pub fn wolfSSL_SetTlsFinishedCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetTlsFinishedCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackVerifyMac = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , message : * const byte , messageSz : word32 , macSz : word32 , content : word32 , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetVerifyMacCb (ctx : * mut WOLFSSL_CTX , cb : CallbackVerifyMac) ; } unsafe extern "C" { pub fn wolfSSL_SetVerifyMacCtx (ssl : * mut WOLFSSL , ctx : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_GetVerifyMacCtx (ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub type CallbackHKDFExpandLabel = :: core :: option :: Option < unsafe extern "C" fn (okm : * mut byte , okmLen : word32 , prk : * const byte , prkLen : word32 , protocol : * const byte , protocolLen : word32 , label : * const byte , labelLen : word32 , info : * const byte , infoLen : word32 , digest : :: core :: ffi :: c_int , side : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetHKDFExpandLabelCb (ctx : * mut WOLFSSL_CTX , cb : CallbackHKDFExpandLabel) ; } pub type CallbackProcessServerSigKex = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , p_sig_algo : byte , p_sig : * const byte , p_sig_len : word32 , p_rand : * const byte , p_rand_len : word32 , p_server_params : * const byte , p_server_params_len : word32) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetProcessServerSigKexCb (ctx : * mut WOLFSSL_CTX , cb : CallbackProcessServerSigKex) ; } pub type CallbackPerformTlsRecordProcessing = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , is_encrypt : :: core :: ffi :: c_int , out : * mut byte , in_ : * const byte , sz : word32 , iv : * const byte , ivSz : word32 , authTag : * mut byte , authTagSz : word32 , authIn : * const byte , authInSz : word32) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_SetPerformTlsRecordProcessingCb (ctx : * mut WOLFSSL_CTX , cb : CallbackPerformTlsRecordProcessing) ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetCACb (ctx : * mut WOLFSSL_CTX , cb : CallbackCACache) ; } unsafe extern "C" { pub fn wolfSSL_CTX_GetCertManager (ctx : * mut WOLFSSL_CTX) -> * mut WOLFSSL_CERT_MANAGER ; } unsafe extern "C" { pub fn wolfSSL_CertManagerNew_ex (heap : * mut :: core :: ffi :: c_void) -> * mut WOLFSSL_CERT_MANAGER ; } unsafe extern "C" { pub fn wolfSSL_CertManagerNew () -> * mut WOLFSSL_CERT_MANAGER ; } unsafe extern "C" { pub fn wolfSSL_CertManagerFree (cm : * mut WOLFSSL_CERT_MANAGER) ; } unsafe extern "C" { pub fn wolfSSL_CertManager_up_ref (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerLoadCA (cm : * mut WOLFSSL_CERT_MANAGER , f : * const :: core :: ffi :: c_char , d : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerLoadCABufferType (cm : * mut WOLFSSL_CERT_MANAGER , buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int , userChain : :: core :: ffi :: c_int , flags : word32 , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerLoadCABuffer_ex (cm : * mut WOLFSSL_CERT_MANAGER , buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int , userChain : :: core :: ffi :: c_int , flags : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerLoadCABuffer (cm : * mut WOLFSSL_CERT_MANAGER , buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerUnloadCAs (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerUnloadTypeCerts (cm : * mut WOLFSSL_CERT_MANAGER , type_ : byte) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerUnloadIntermediateCerts (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerVerify (cm : * mut WOLFSSL_CERT_MANAGER , f : * const :: core :: ffi :: c_char , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerVerifyBuffer (cm : * mut WOLFSSL_CERT_MANAGER , buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , format : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerCheckCRL (cm : * mut WOLFSSL_CERT_MANAGER , der : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerEnableCRL (cm : * mut WOLFSSL_CERT_MANAGER , options : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerDisableCRL (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerSetVerify (cm : * mut WOLFSSL_CERT_MANAGER , verify_callback : VerifyCallback) ; } unsafe extern "C" { pub fn wolfSSL_CertManagerLoadCRL (cm : * mut WOLFSSL_CERT_MANAGER , path : * const :: core :: ffi :: c_char , type_ : :: core :: ffi :: c_int , monitor : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerLoadCRLFile (cm : * mut WOLFSSL_CERT_MANAGER , file : * const :: core :: ffi :: c_char , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerLoadCRLBuffer (cm : * mut WOLFSSL_CERT_MANAGER , buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerSetCRL_Cb (cm : * mut WOLFSSL_CERT_MANAGER , cb : CbMissingCRL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerSetCRL_ErrorCb (cm : * mut WOLFSSL_CERT_MANAGER , cb : crlErrorCb , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerFreeCRL (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerCheckOCSP (cm : * mut WOLFSSL_CERT_MANAGER , der : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerEnableOCSP (cm : * mut WOLFSSL_CERT_MANAGER , options : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerDisableOCSP (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerSetOCSPOverrideURL (cm : * mut WOLFSSL_CERT_MANAGER , url : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerSetOCSP_Cb (cm : * mut WOLFSSL_CERT_MANAGER , ioCb : CbOCSPIO , respFreeCb : CbOCSPRespFree , ioCbCtx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerEnableOCSPStapling (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerDisableOCSPStapling (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerEnableOCSPMustStaple (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CertManagerDisableOCSPMustStaple (cm : * mut WOLFSSL_CERT_MANAGER) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_EnableCRL (ssl : * mut WOLFSSL , options : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_DisableCRL (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_LoadCRL (ssl : * mut WOLFSSL , path : * const :: core :: ffi :: c_char , type_ : :: core :: ffi :: c_int , monitor : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_LoadCRLFile (ssl : * mut WOLFSSL , file : * const :: core :: ffi :: c_char , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_LoadCRLBuffer (ssl : * mut WOLFSSL , buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetCRL_Cb (ssl : * mut WOLFSSL , cb : CbMissingCRL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetCRL_ErrorCb (ssl : * mut WOLFSSL , cb : crlErrorCb , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_EnableOCSP (ssl : * mut WOLFSSL , options : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_DisableOCSP (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetOCSP_OverrideURL (ssl : * mut WOLFSSL , url : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetOCSP_Cb (ssl : * mut WOLFSSL , ioCb : CbOCSPIO , respFreeCb : CbOCSPRespFree , ioCbCtx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_EnableOCSPStapling (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_DisableOCSPStapling (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_EnableCRL (ctx : * mut WOLFSSL_CTX , options : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_DisableCRL (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_LoadCRL (ctx : * mut WOLFSSL_CTX , path : * const :: core :: ffi :: c_char , type_ : :: core :: ffi :: c_int , monitor : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_LoadCRLFile (ctx : * mut WOLFSSL_CTX , path : * const :: core :: ffi :: c_char , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_LoadCRLBuffer (ctx : * mut WOLFSSL_CTX , buff : * const :: core :: ffi :: c_uchar , sz : :: core :: ffi :: c_long , type_ : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetCRL_Cb (ctx : * mut WOLFSSL_CTX , cb : CbMissingCRL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetCRL_ErrorCb (ctx : * mut WOLFSSL_CTX , cb : crlErrorCb , cbCtx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_EnableOCSP (ctx : * mut WOLFSSL_CTX , options : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_DisableOCSP (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetOCSP_OverrideURL (ctx : * mut WOLFSSL_CTX , url : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetOCSP_Cb (ctx : * mut WOLFSSL_CTX , ioCb : CbOCSPIO , respFreeCb : CbOCSPRespFree , ioCbCtx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_EnableOCSPStapling (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_DisableOCSPStapling (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_EnableOCSPMustStaple (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_DisableOCSPMustStaple (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_KeepArrays (ssl : * mut WOLFSSL) ; } unsafe extern "C" { pub fn wolfSSL_FreeArrays (ssl : * mut WOLFSSL) ; } unsafe extern "C" { pub fn wolfSSL_KeepHandshakeResources (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_FreeHandshakeResources (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_UseClientSuites (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_UseClientSuites (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SetDevId (ssl : * mut WOLFSSL , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_SetDevId (ctx : * mut WOLFSSL_CTX , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_GetDevId (ctx : * mut WOLFSSL_CTX , ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_GetHeap (ctx : * mut WOLFSSL_CTX , ssl : * mut WOLFSSL) -> * mut :: core :: ffi :: c_void ; } pub const WOLFSSL_SNI_HOST_NAME : _bindgen_ty_45 = 0 ; pub type _bindgen_ty_45 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wolfSSL_UseSNI (ssl : * mut WOLFSSL , type_ : :: core :: ffi :: c_uchar , data : * const :: core :: ffi :: c_void , size : :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_UseSNI (ctx : * mut WOLFSSL_CTX , type_ : :: core :: ffi :: c_uchar , data : * const :: core :: ffi :: c_void , size : :: core :: ffi :: c_ushort) -> :: core :: ffi :: c_int ; } pub const WOLFSSL_SNI_CONTINUE_ON_MISMATCH : _bindgen_ty_46 = 1 ; pub const WOLFSSL_SNI_ANSWER_ON_MISMATCH : _bindgen_ty_46 = 2 ; pub const WOLFSSL_SNI_ABORT_ON_ABSENCE : _bindgen_ty_46 = 4 ; pub type _bindgen_ty_46 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wolfSSL_SNI_SetOptions (ssl : * mut WOLFSSL , type_ : :: core :: ffi :: c_uchar , options : :: core :: ffi :: c_uchar) ; } unsafe extern "C" { pub fn wolfSSL_CTX_SNI_SetOptions (ctx : * mut WOLFSSL_CTX , type_ : :: core :: ffi :: c_uchar , options : :: core :: ffi :: c_uchar) ; } unsafe extern "C" { pub fn wolfSSL_SNI_GetFromBuffer (clientHello : * const :: core :: ffi :: c_uchar , helloSz : :: core :: ffi :: c_uint , type_ : :: core :: ffi :: c_uchar , sni : * mut :: core :: ffi :: c_uchar , inOutSz : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } pub const WOLFSSL_SNI_NO_MATCH : _bindgen_ty_47 = 0 ; pub const WOLFSSL_SNI_FAKE_MATCH : _bindgen_ty_47 = 1 ; pub const WOLFSSL_SNI_REAL_MATCH : _bindgen_ty_47 = 2 ; pub const WOLFSSL_SNI_FORCE_KEEP : _bindgen_ty_47 = 3 ; pub type _bindgen_ty_47 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wolfSSL_SNI_Status (ssl : * mut WOLFSSL , type_ : :: core :: ffi :: c_uchar) -> :: core :: ffi :: c_uchar ; } unsafe extern "C" { pub fn wolfSSL_SNI_GetRequest (ssl : * mut WOLFSSL , type_ : :: core :: ffi :: c_uchar , data : * mut * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_ushort ; } pub const WOLFSSL_CSR_OCSP : _bindgen_ty_48 = 1 ; pub type _bindgen_ty_48 = :: core :: ffi :: c_uint ; pub const WOLFSSL_CSR_OCSP_USE_NONCE : _bindgen_ty_49 = 1 ; pub type _bindgen_ty_49 = :: core :: ffi :: c_uint ; pub const WOLFSSL_CSR2_OCSP : _bindgen_ty_50 = 1 ; pub const WOLFSSL_CSR2_OCSP_MULTI : _bindgen_ty_50 = 2 ; pub type _bindgen_ty_50 = :: core :: ffi :: c_uint ; pub const WOLFSSL_CSR2_OCSP_USE_NONCE : _bindgen_ty_51 = 1 ; pub type _bindgen_ty_51 = :: core :: ffi :: c_uint ; pub const WOLFSSL_NAMED_GROUP_INVALID : _bindgen_ty_52 = 0 ; pub const WOLFSSL_ECC_SECP160K1 : _bindgen_ty_52 = 15 ; pub const WOLFSSL_ECC_SECP160R1 : _bindgen_ty_52 = 16 ; pub const WOLFSSL_ECC_SECP160R2 : _bindgen_ty_52 = 17 ; pub const WOLFSSL_ECC_SECP192K1 : _bindgen_ty_52 = 18 ; pub const WOLFSSL_ECC_SECP192R1 : _bindgen_ty_52 = 19 ; pub const WOLFSSL_ECC_SECP224K1 : _bindgen_ty_52 = 20 ; pub const WOLFSSL_ECC_SECP224R1 : _bindgen_ty_52 = 21 ; pub const WOLFSSL_ECC_SECP256K1 : _bindgen_ty_52 = 22 ; pub const WOLFSSL_ECC_SECP256R1 : _bindgen_ty_52 = 23 ; pub const WOLFSSL_ECC_SECP384R1 : _bindgen_ty_52 = 24 ; pub const WOLFSSL_ECC_SECP521R1 : _bindgen_ty_52 = 25 ; pub const WOLFSSL_ECC_BRAINPOOLP256R1 : _bindgen_ty_52 = 26 ; pub const WOLFSSL_ECC_BRAINPOOLP384R1 : _bindgen_ty_52 = 27 ; pub const WOLFSSL_ECC_BRAINPOOLP512R1 : _bindgen_ty_52 = 28 ; pub const WOLFSSL_ECC_X25519 : _bindgen_ty_52 = 29 ; pub const WOLFSSL_ECC_X448 : _bindgen_ty_52 = 30 ; pub const WOLFSSL_ECC_BRAINPOOLP256R1TLS13 : _bindgen_ty_52 = 31 ; pub const WOLFSSL_ECC_BRAINPOOLP384R1TLS13 : _bindgen_ty_52 = 32 ; pub const WOLFSSL_ECC_BRAINPOOLP512R1TLS13 : _bindgen_ty_52 = 33 ; pub const WOLFSSL_ECC_SM2P256V1 : _bindgen_ty_52 = 41 ; pub const WOLFSSL_ECC_MAX : _bindgen_ty_52 = 41 ; pub const WOLFSSL_ECC_MAX_AVAIL : _bindgen_ty_52 = 46 ; pub const WOLFSSL_FFDHE_START : _bindgen_ty_52 = 256 ; pub const WOLFSSL_FFDHE_2048 : _bindgen_ty_52 = 256 ; pub const WOLFSSL_FFDHE_3072 : _bindgen_ty_52 = 257 ; pub const WOLFSSL_FFDHE_4096 : _bindgen_ty_52 = 258 ; pub const WOLFSSL_FFDHE_6144 : _bindgen_ty_52 = 259 ; pub const WOLFSSL_FFDHE_8192 : _bindgen_ty_52 = 260 ; pub const WOLFSSL_FFDHE_END : _bindgen_ty_52 = 511 ; pub const WOLFSSL_KYBER_LEVEL1 : _bindgen_ty_52 = 570 ; pub const WOLFSSL_KYBER_LEVEL3 : _bindgen_ty_52 = 572 ; pub const WOLFSSL_KYBER_LEVEL5 : _bindgen_ty_52 = 573 ; pub const WOLFSSL_P256_KYBER_LEVEL1 : _bindgen_ty_52 = 12090 ; pub const WOLFSSL_P384_KYBER_LEVEL3 : _bindgen_ty_52 = 12092 ; pub const WOLFSSL_P521_KYBER_LEVEL5 : _bindgen_ty_52 = 12093 ; pub const WOLFSSL_X25519_KYBER_LEVEL1 : _bindgen_ty_52 = 12089 ; pub const WOLFSSL_X448_KYBER_LEVEL3 : _bindgen_ty_52 = 12176 ; pub const WOLFSSL_X25519_KYBER_LEVEL3 : _bindgen_ty_52 = 25497 ; pub const WOLFSSL_P256_KYBER_LEVEL3 : _bindgen_ty_52 = 25498 ; pub const WOLFSSL_ML_KEM_512 : _bindgen_ty_52 = 512 ; pub const WOLFSSL_ML_KEM_768 : _bindgen_ty_52 = 513 ; pub const WOLFSSL_ML_KEM_1024 : _bindgen_ty_52 = 514 ; pub const WOLFSSL_SECP256R1MLKEM768 : _bindgen_ty_52 = 4587 ; pub const WOLFSSL_X25519MLKEM768 : _bindgen_ty_52 = 4588 ; pub const WOLFSSL_SECP384R1MLKEM1024 : _bindgen_ty_52 = 4589 ; pub const WOLFSSL_SECP256R1MLKEM512 : _bindgen_ty_52 = 12107 ; pub const WOLFSSL_SECP384R1MLKEM768 : _bindgen_ty_52 = 12108 ; pub const WOLFSSL_SECP521R1MLKEM1024 : _bindgen_ty_52 = 12109 ; pub const WOLFSSL_X25519MLKEM512 : _bindgen_ty_52 = 12214 ; pub const WOLFSSL_X448MLKEM768 : _bindgen_ty_52 = 12215 ; pub type _bindgen_ty_52 = :: core :: ffi :: c_uint ; pub const WOLFSSL_EC_PF_UNCOMPRESSED : _bindgen_ty_53 = 0 ; pub type _bindgen_ty_53 = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn wolfSSL_UseSupportedCurve (ssl : * mut WOLFSSL , name : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_UseSupportedCurve (ctx : * mut WOLFSSL_CTX , name : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_UseKeyShare (ssl : * mut WOLFSSL , group : word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_NoKeyShares (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_UseSecureRenegotiation (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_UseSecureRenegotiation (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_SSL_get_secure_renegotiation_support (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_long ; } unsafe extern "C" { pub fn wolfSSL_DisableExtendedMasterSecret (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_DisableExtendedMasterSecret (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } pub type HandShakeDoneCb = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , arg1 : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_SetHsDoneCb (ssl : * mut WOLFSSL , cb : HandShakeDoneCb , user_ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_PrintSessionStats () -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_get_session_stats (active : * mut :: core :: ffi :: c_uint , total : * mut :: core :: ffi :: c_uint , peak : * mut :: core :: ffi :: c_uint , maxSessions : * mut :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_MakeTlsMasterSecret (ms : * mut :: core :: ffi :: c_uchar , msLen : word32 , pms : * const :: core :: ffi :: c_uchar , pmsLen : word32 , cr : * const :: core :: ffi :: c_uchar , sr : * const :: core :: ffi :: c_uchar , tls1_2 : :: core :: ffi :: c_int , hash_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_MakeTlsExtendedMasterSecret (ms : * mut :: core :: ffi :: c_uchar , msLen : word32 , pms : * const :: core :: ffi :: c_uchar , pmsLen : word32 , sHash : * const :: core :: ffi :: c_uchar , sHashLen : word32 , tls1_2 : :: core :: ffi :: c_int , hash_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_DeriveTlsKeys (key_data : * mut :: core :: ffi :: c_uchar , keyLen : word32 , ms : * const :: core :: ffi :: c_uchar , msLen : word32 , sr : * const :: core :: ffi :: c_uchar , cr : * const :: core :: ffi :: c_uchar , tls1_2 : :: core :: ffi :: c_int , hash_type : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_version (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } pub type CallbackSniRecv = :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , ret : * mut :: core :: ffi :: c_int , exArg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfSSL_CTX_set_servername_callback (ctx : * mut WOLFSSL_CTX , cb : CallbackSniRecv) ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_servername_arg (ctx : * mut WOLFSSL_CTX , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } pub type Rem_Sess_Cb = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut WOLFSSL_CTX , arg2 : * mut WOLFSSL_SESSION) > ; unsafe extern "C" { pub fn wolfSSL_get0_alpn_selected (ssl : * const WOLFSSL , data : * mut * const :: core :: ffi :: c_uchar , len : * mut :: core :: ffi :: c_uint) ; } unsafe extern "C" { pub fn wolfSSL_select_next_proto (out : * mut * mut :: core :: ffi :: c_uchar , outlen : * mut :: core :: ffi :: c_uchar , in_ : * const :: core :: ffi :: c_uchar , inlen : :: core :: ffi :: c_uint , client : * const :: core :: ffi :: c_uchar , client_len : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_set_alpn_select_cb (ssl : * mut WOLFSSL , cb : :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , out : * mut * const :: core :: ffi :: c_uchar , outlen : * mut :: core :: ffi :: c_uchar , in_ : * const :: core :: ffi :: c_uchar , inlen : :: core :: ffi :: c_uint , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > , arg : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_alpn_select_cb (ctx : * mut WOLFSSL_CTX , cb : :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , out : * mut * const :: core :: ffi :: c_uchar , outlen : * mut :: core :: ffi :: c_uchar , in_ : * const :: core :: ffi :: c_uchar , inlen : :: core :: ffi :: c_uint , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > , arg : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_next_protos_advertised_cb (s : * mut WOLFSSL_CTX , cb : :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , out : * mut * const :: core :: ffi :: c_uchar , outlen : * mut :: core :: ffi :: c_uint , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > , arg : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_CTX_set_next_proto_select_cb (s : * mut WOLFSSL_CTX , cb : :: core :: option :: Option < unsafe extern "C" fn (ssl : * mut WOLFSSL , out : * mut * mut :: core :: ffi :: c_uchar , outlen : * mut :: core :: ffi :: c_uchar , in_ : * const :: core :: ffi :: c_uchar , inlen : :: core :: ffi :: c_uint , arg : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > , arg : * mut :: core :: ffi :: c_void) ; } unsafe extern "C" { pub fn wolfSSL_get0_next_proto_negotiated (s : * const WOLFSSL , data : * mut * const :: core :: ffi :: c_uchar , len : * mut :: core :: ffi :: c_uint) ; } unsafe extern "C" { pub fn wolfSSL_X509_check_host (x : * mut WOLFSSL_X509 , chk : * const :: core :: ffi :: c_char , chklen : usize , flags : :: core :: ffi :: c_uint , peername : * mut * mut :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_X509_check_ip_asc (x : * mut WOLFSSL_X509 , ipasc : * const :: core :: ffi :: c_char , flags : :: core :: ffi :: c_uint) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_IsPrivatePkSet (ssl : * mut WOLFSSL) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_IsPrivatePkSet (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_CTX_AllowEncryptThenMac (ctx : * mut WOLFSSL_CTX , set : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfSSL_AllowEncryptThenMac (s : * mut WOLFSSL , set : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } pub type wordptr = usize ; pub type TPM_ALGORITHM_ID = UINT32 ; pub type TPM_MODIFIER_INDICATOR = UINT32 ; pub type TPM_AUTHORIZATION_SIZE = UINT32 ; pub type TPM_PARAMETER_SIZE = UINT32 ; pub type TPM_KEY_SIZE = UINT16 ; pub type TPM_KEY_BITS = UINT16 ; pub type TPM_GENERATED = UINT32 ; pub const TPM_ALG_ID_T_TPM_ALG_ERROR : TPM_ALG_ID_T = 0 ; pub const TPM_ALG_ID_T_TPM_ALG_FIRST : TPM_ALG_ID_T = 1 ; pub const TPM_ALG_ID_T_TPM_ALG_RSA : TPM_ALG_ID_T = 1 ; pub const TPM_ALG_ID_T_TPM_ALG_SHA : TPM_ALG_ID_T = 4 ; pub const TPM_ALG_ID_T_TPM_ALG_SHA1 : TPM_ALG_ID_T = 4 ; pub const TPM_ALG_ID_T_TPM_ALG_HMAC : TPM_ALG_ID_T = 5 ; pub const TPM_ALG_ID_T_TPM_ALG_AES : TPM_ALG_ID_T = 6 ; pub const TPM_ALG_ID_T_TPM_ALG_MGF1 : TPM_ALG_ID_T = 7 ; pub const TPM_ALG_ID_T_TPM_ALG_KEYEDHASH : TPM_ALG_ID_T = 8 ; pub const TPM_ALG_ID_T_TPM_ALG_XOR : TPM_ALG_ID_T = 10 ; pub const TPM_ALG_ID_T_TPM_ALG_SHA256 : TPM_ALG_ID_T = 11 ; pub const TPM_ALG_ID_T_TPM_ALG_SHA384 : TPM_ALG_ID_T = 12 ; pub const TPM_ALG_ID_T_TPM_ALG_SHA512 : TPM_ALG_ID_T = 13 ; pub const TPM_ALG_ID_T_TPM_ALG_NULL : TPM_ALG_ID_T = 16 ; pub const TPM_ALG_ID_T_TPM_ALG_SM3_256 : TPM_ALG_ID_T = 18 ; pub const TPM_ALG_ID_T_TPM_ALG_SM4 : TPM_ALG_ID_T = 19 ; pub const TPM_ALG_ID_T_TPM_ALG_RSASSA : TPM_ALG_ID_T = 20 ; pub const TPM_ALG_ID_T_TPM_ALG_RSAES : TPM_ALG_ID_T = 21 ; pub const TPM_ALG_ID_T_TPM_ALG_RSAPSS : TPM_ALG_ID_T = 22 ; pub const TPM_ALG_ID_T_TPM_ALG_OAEP : TPM_ALG_ID_T = 23 ; pub const TPM_ALG_ID_T_TPM_ALG_ECDSA : TPM_ALG_ID_T = 24 ; pub const TPM_ALG_ID_T_TPM_ALG_ECDH : TPM_ALG_ID_T = 25 ; pub const TPM_ALG_ID_T_TPM_ALG_ECDAA : TPM_ALG_ID_T = 26 ; pub const TPM_ALG_ID_T_TPM_ALG_SM2 : TPM_ALG_ID_T = 27 ; pub const TPM_ALG_ID_T_TPM_ALG_ECSCHNORR : TPM_ALG_ID_T = 28 ; pub const TPM_ALG_ID_T_TPM_ALG_ECMQV : TPM_ALG_ID_T = 29 ; pub const TPM_ALG_ID_T_TPM_ALG_HKDF : TPM_ALG_ID_T = 31 ; pub const TPM_ALG_ID_T_TPM_ALG_KDF1_SP800_56A : TPM_ALG_ID_T = 32 ; pub const TPM_ALG_ID_T_TPM_ALG_KDF2 : TPM_ALG_ID_T = 33 ; pub const TPM_ALG_ID_T_TPM_ALG_KDF1_SP800_108 : TPM_ALG_ID_T = 34 ; pub const TPM_ALG_ID_T_TPM_ALG_ECC : TPM_ALG_ID_T = 35 ; pub const TPM_ALG_ID_T_TPM_ALG_SYMCIPHER : TPM_ALG_ID_T = 37 ; pub const TPM_ALG_ID_T_TPM_ALG_CAMELLIA : TPM_ALG_ID_T = 38 ; pub const TPM_ALG_ID_T_TPM_ALG_SHA3_256 : TPM_ALG_ID_T = 39 ; pub const TPM_ALG_ID_T_TPM_ALG_SHA3_384 : TPM_ALG_ID_T = 40 ; pub const TPM_ALG_ID_T_TPM_ALG_SHA3_512 : TPM_ALG_ID_T = 41 ; pub const TPM_ALG_ID_T_TPM_ALG_SHAKE128 : TPM_ALG_ID_T = 42 ; pub const TPM_ALG_ID_T_TPM_ALG_SHAKE256 : TPM_ALG_ID_T = 43 ; pub const TPM_ALG_ID_T_TPM_ALG_CTR : TPM_ALG_ID_T = 64 ; pub const TPM_ALG_ID_T_TPM_ALG_OFB : TPM_ALG_ID_T = 65 ; pub const TPM_ALG_ID_T_TPM_ALG_CBC : TPM_ALG_ID_T = 66 ; pub const TPM_ALG_ID_T_TPM_ALG_CFB : TPM_ALG_ID_T = 67 ; pub const TPM_ALG_ID_T_TPM_ALG_ECB : TPM_ALG_ID_T = 68 ; pub type TPM_ALG_ID_T = :: core :: ffi :: c_uint ; pub type TPM_ALG_ID = UINT16 ; pub const TPM_ECC_CURVE_T_TPM_ECC_NONE : TPM_ECC_CURVE_T = 0 ; pub const TPM_ECC_CURVE_T_TPM_ECC_NIST_P192 : TPM_ECC_CURVE_T = 1 ; pub const TPM_ECC_CURVE_T_TPM_ECC_NIST_P224 : TPM_ECC_CURVE_T = 2 ; pub const TPM_ECC_CURVE_T_TPM_ECC_NIST_P256 : TPM_ECC_CURVE_T = 3 ; pub const TPM_ECC_CURVE_T_TPM_ECC_NIST_P384 : TPM_ECC_CURVE_T = 4 ; pub const TPM_ECC_CURVE_T_TPM_ECC_NIST_P521 : TPM_ECC_CURVE_T = 5 ; pub const TPM_ECC_CURVE_T_TPM_ECC_BN_P256 : TPM_ECC_CURVE_T = 16 ; pub const TPM_ECC_CURVE_T_TPM_ECC_BN_P638 : TPM_ECC_CURVE_T = 17 ; pub const TPM_ECC_CURVE_T_TPM_ECC_SM2_P256 : TPM_ECC_CURVE_T = 32 ; pub const TPM_ECC_CURVE_T_TPM_ECC_BP_P256_R1 : TPM_ECC_CURVE_T = 48 ; pub const TPM_ECC_CURVE_T_TPM_ECC_BP_P384_R1 : TPM_ECC_CURVE_T = 49 ; pub const TPM_ECC_CURVE_T_TPM_ECC_BP_P512_R1 : TPM_ECC_CURVE_T = 50 ; pub type TPM_ECC_CURVE_T = :: core :: ffi :: c_uint ; pub type TPM_ECC_CURVE = UINT16 ; pub const TPM_CC_T_TPM_CC_FIRST : TPM_CC_T = 287 ; pub const TPM_CC_T_TPM_CC_NV_UndefineSpaceSpecial : TPM_CC_T = 287 ; pub const TPM_CC_T_TPM_CC_EvictControl : TPM_CC_T = 288 ; pub const TPM_CC_T_TPM_CC_HierarchyControl : TPM_CC_T = 289 ; pub const TPM_CC_T_TPM_CC_NV_UndefineSpace : TPM_CC_T = 290 ; pub const TPM_CC_T_TPM_CC_ChangeEPS : TPM_CC_T = 292 ; pub const TPM_CC_T_TPM_CC_ChangePPS : TPM_CC_T = 293 ; pub const TPM_CC_T_TPM_CC_Clear : TPM_CC_T = 294 ; pub const TPM_CC_T_TPM_CC_ClearControl : TPM_CC_T = 295 ; pub const TPM_CC_T_TPM_CC_ClockSet : TPM_CC_T = 296 ; pub const TPM_CC_T_TPM_CC_HierarchyChangeAuth : TPM_CC_T = 297 ; pub const TPM_CC_T_TPM_CC_NV_DefineSpace : TPM_CC_T = 298 ; pub const TPM_CC_T_TPM_CC_PCR_Allocate : TPM_CC_T = 299 ; pub const TPM_CC_T_TPM_CC_PCR_SetAuthPolicy : TPM_CC_T = 300 ; pub const TPM_CC_T_TPM_CC_PP_Commands : TPM_CC_T = 301 ; pub const TPM_CC_T_TPM_CC_SetPrimaryPolicy : TPM_CC_T = 302 ; pub const TPM_CC_T_TPM_CC_FieldUpgradeStart : TPM_CC_T = 303 ; pub const TPM_CC_T_TPM_CC_ClockRateAdjust : TPM_CC_T = 304 ; pub const TPM_CC_T_TPM_CC_CreatePrimary : TPM_CC_T = 305 ; pub const TPM_CC_T_TPM_CC_NV_GlobalWriteLock : TPM_CC_T = 306 ; pub const TPM_CC_T_TPM_CC_GetCommandAuditDigest : TPM_CC_T = 307 ; pub const TPM_CC_T_TPM_CC_NV_Increment : TPM_CC_T = 308 ; pub const TPM_CC_T_TPM_CC_NV_SetBits : TPM_CC_T = 309 ; pub const TPM_CC_T_TPM_CC_NV_Extend : TPM_CC_T = 310 ; pub const TPM_CC_T_TPM_CC_NV_Write : TPM_CC_T = 311 ; pub const TPM_CC_T_TPM_CC_NV_WriteLock : TPM_CC_T = 312 ; pub const TPM_CC_T_TPM_CC_DictionaryAttackLockReset : TPM_CC_T = 313 ; pub const TPM_CC_T_TPM_CC_DictionaryAttackParameters : TPM_CC_T = 314 ; pub const TPM_CC_T_TPM_CC_NV_ChangeAuth : TPM_CC_T = 315 ; pub const TPM_CC_T_TPM_CC_PCR_Event : TPM_CC_T = 316 ; pub const TPM_CC_T_TPM_CC_PCR_Reset : TPM_CC_T = 317 ; pub const TPM_CC_T_TPM_CC_SequenceComplete : TPM_CC_T = 318 ; pub const TPM_CC_T_TPM_CC_SetAlgorithmSet : TPM_CC_T = 319 ; pub const TPM_CC_T_TPM_CC_SetCommandCodeAuditStatus : TPM_CC_T = 320 ; pub const TPM_CC_T_TPM_CC_FieldUpgradeData : TPM_CC_T = 321 ; pub const TPM_CC_T_TPM_CC_IncrementalSelfTest : TPM_CC_T = 322 ; pub const TPM_CC_T_TPM_CC_SelfTest : TPM_CC_T = 323 ; pub const TPM_CC_T_TPM_CC_Startup : TPM_CC_T = 324 ; pub const TPM_CC_T_TPM_CC_Shutdown : TPM_CC_T = 325 ; pub const TPM_CC_T_TPM_CC_StirRandom : TPM_CC_T = 326 ; pub const TPM_CC_T_TPM_CC_ActivateCredential : TPM_CC_T = 327 ; pub const TPM_CC_T_TPM_CC_Certify : TPM_CC_T = 328 ; pub const TPM_CC_T_TPM_CC_PolicyNV : TPM_CC_T = 329 ; pub const TPM_CC_T_TPM_CC_CertifyCreation : TPM_CC_T = 330 ; pub const TPM_CC_T_TPM_CC_Duplicate : TPM_CC_T = 331 ; pub const TPM_CC_T_TPM_CC_GetTime : TPM_CC_T = 332 ; pub const TPM_CC_T_TPM_CC_GetSessionAuditDigest : TPM_CC_T = 333 ; pub const TPM_CC_T_TPM_CC_NV_Read : TPM_CC_T = 334 ; pub const TPM_CC_T_TPM_CC_NV_ReadLock : TPM_CC_T = 335 ; pub const TPM_CC_T_TPM_CC_ObjectChangeAuth : TPM_CC_T = 336 ; pub const TPM_CC_T_TPM_CC_PolicySecret : TPM_CC_T = 337 ; pub const TPM_CC_T_TPM_CC_Rewrap : TPM_CC_T = 338 ; pub const TPM_CC_T_TPM_CC_Create : TPM_CC_T = 339 ; pub const TPM_CC_T_TPM_CC_ECDH_ZGen : TPM_CC_T = 340 ; pub const TPM_CC_T_TPM_CC_HMAC : TPM_CC_T = 341 ; pub const TPM_CC_T_TPM_CC_Import : TPM_CC_T = 342 ; pub const TPM_CC_T_TPM_CC_Load : TPM_CC_T = 343 ; pub const TPM_CC_T_TPM_CC_Quote : TPM_CC_T = 344 ; pub const TPM_CC_T_TPM_CC_RSA_Decrypt : TPM_CC_T = 345 ; pub const TPM_CC_T_TPM_CC_HMAC_Start : TPM_CC_T = 347 ; pub const TPM_CC_T_TPM_CC_SequenceUpdate : TPM_CC_T = 348 ; pub const TPM_CC_T_TPM_CC_Sign : TPM_CC_T = 349 ; pub const TPM_CC_T_TPM_CC_Unseal : TPM_CC_T = 350 ; pub const TPM_CC_T_TPM_CC_PolicySigned : TPM_CC_T = 352 ; pub const TPM_CC_T_TPM_CC_ContextLoad : TPM_CC_T = 353 ; pub const TPM_CC_T_TPM_CC_ContextSave : TPM_CC_T = 354 ; pub const TPM_CC_T_TPM_CC_ECDH_KeyGen : TPM_CC_T = 355 ; pub const TPM_CC_T_TPM_CC_EncryptDecrypt : TPM_CC_T = 356 ; pub const TPM_CC_T_TPM_CC_FlushContext : TPM_CC_T = 357 ; pub const TPM_CC_T_TPM_CC_LoadExternal : TPM_CC_T = 359 ; pub const TPM_CC_T_TPM_CC_MakeCredential : TPM_CC_T = 360 ; pub const TPM_CC_T_TPM_CC_NV_ReadPublic : TPM_CC_T = 361 ; pub const TPM_CC_T_TPM_CC_PolicyAuthorize : TPM_CC_T = 362 ; pub const TPM_CC_T_TPM_CC_PolicyAuthValue : TPM_CC_T = 363 ; pub const TPM_CC_T_TPM_CC_PolicyCommandCode : TPM_CC_T = 364 ; pub const TPM_CC_T_TPM_CC_PolicyCounterTimer : TPM_CC_T = 365 ; pub const TPM_CC_T_TPM_CC_PolicyCpHash : TPM_CC_T = 366 ; pub const TPM_CC_T_TPM_CC_PolicyLocality : TPM_CC_T = 367 ; pub const TPM_CC_T_TPM_CC_PolicyNameHash : TPM_CC_T = 368 ; pub const TPM_CC_T_TPM_CC_PolicyOR : TPM_CC_T = 369 ; pub const TPM_CC_T_TPM_CC_PolicyTicket : TPM_CC_T = 370 ; pub const TPM_CC_T_TPM_CC_ReadPublic : TPM_CC_T = 371 ; pub const TPM_CC_T_TPM_CC_RSA_Encrypt : TPM_CC_T = 372 ; pub const TPM_CC_T_TPM_CC_StartAuthSession : TPM_CC_T = 374 ; pub const TPM_CC_T_TPM_CC_VerifySignature : TPM_CC_T = 375 ; pub const TPM_CC_T_TPM_CC_ECC_Parameters : TPM_CC_T = 376 ; pub const TPM_CC_T_TPM_CC_FirmwareRead : TPM_CC_T = 377 ; pub const TPM_CC_T_TPM_CC_GetCapability : TPM_CC_T = 378 ; pub const TPM_CC_T_TPM_CC_GetRandom : TPM_CC_T = 379 ; pub const TPM_CC_T_TPM_CC_GetTestResult : TPM_CC_T = 380 ; pub const TPM_CC_T_TPM_CC_Hash : TPM_CC_T = 381 ; pub const TPM_CC_T_TPM_CC_PCR_Read : TPM_CC_T = 382 ; pub const TPM_CC_T_TPM_CC_PolicyPCR : TPM_CC_T = 383 ; pub const TPM_CC_T_TPM_CC_PolicyRestart : TPM_CC_T = 384 ; pub const TPM_CC_T_TPM_CC_ReadClock : TPM_CC_T = 385 ; pub const TPM_CC_T_TPM_CC_PCR_Extend : TPM_CC_T = 386 ; pub const TPM_CC_T_TPM_CC_PCR_SetAuthValue : TPM_CC_T = 387 ; pub const TPM_CC_T_TPM_CC_NV_Certify : TPM_CC_T = 388 ; pub const TPM_CC_T_TPM_CC_EventSequenceComplete : TPM_CC_T = 389 ; pub const TPM_CC_T_TPM_CC_HashSequenceStart : TPM_CC_T = 390 ; pub const TPM_CC_T_TPM_CC_PolicyPhysicalPresence : TPM_CC_T = 391 ; pub const TPM_CC_T_TPM_CC_PolicyDuplicationSelect : TPM_CC_T = 392 ; pub const TPM_CC_T_TPM_CC_PolicyGetDigest : TPM_CC_T = 393 ; pub const TPM_CC_T_TPM_CC_TestParms : TPM_CC_T = 394 ; pub const TPM_CC_T_TPM_CC_Commit : TPM_CC_T = 395 ; pub const TPM_CC_T_TPM_CC_PolicyPassword : TPM_CC_T = 396 ; pub const TPM_CC_T_TPM_CC_ZGen_2Phase : TPM_CC_T = 397 ; pub const TPM_CC_T_TPM_CC_EC_Ephemeral : TPM_CC_T = 398 ; pub const TPM_CC_T_TPM_CC_PolicyNvWritten : TPM_CC_T = 399 ; pub const TPM_CC_T_TPM_CC_PolicyTemplate : TPM_CC_T = 400 ; pub const TPM_CC_T_TPM_CC_CreateLoaded : TPM_CC_T = 401 ; pub const TPM_CC_T_TPM_CC_PolicyAuthorizeNV : TPM_CC_T = 402 ; pub const TPM_CC_T_TPM_CC_EncryptDecrypt2 : TPM_CC_T = 403 ; pub const TPM_CC_T_TPM_CC_LAST : TPM_CC_T = 403 ; pub const TPM_CC_T_CC_VEND : TPM_CC_T = 536870912 ; pub const TPM_CC_T_TPM_CC_Vendor_TCG_Test : TPM_CC_T = 536870912 ; pub const TPM_CC_T_TPM_CC_SetMode : TPM_CC_T = 536871687 ; pub const TPM_CC_T_TPM_CC_SetCommandSet : TPM_CC_T = 536871689 ; pub const TPM_CC_T_TPM_CC_GetRandom2 : TPM_CC_T = 536871694 ; pub const TPM_CC_T_TPM_CC_NTC2_PreConfig : TPM_CC_T = 536871441 ; pub const TPM_CC_T_TPM_CC_NTC2_GetConfig : TPM_CC_T = 536871443 ; pub const TPM_CC_T_TPM_CC_Nations_IdentityKeySet : TPM_CC_T = 536872712 ; pub const TPM_CC_T_TPM_CC_FieldUpgradeStartVendor_ST33 : TPM_CC_T = 536871692 ; pub const TPM_CC_T_TPM_CC_FieldUpgradeAbandonVendor_ST33 : TPM_CC_T = 536871694 ; pub const TPM_CC_T_TPM_CC_FieldUpgradeDataVendor_ST33 : TPM_CC_T = 536871693 ; pub const TPM_CC_T_TPM_CC_FieldUpgradeFinalizeVendor_ST33 : TPM_CC_T = 536871695 ; pub type TPM_CC_T = :: core :: ffi :: c_uint ; pub type TPM_CC = UINT32 ; pub const TPM_RC_T_TPM_RC_SUCCESS : TPM_RC_T = 0 ; pub const TPM_RC_T_TPM_RC_BAD_TAG : TPM_RC_T = 30 ; pub const TPM_RC_T_RC_VER1 : TPM_RC_T = 256 ; pub const TPM_RC_T_TPM_RC_INITIALIZE : TPM_RC_T = 256 ; pub const TPM_RC_T_TPM_RC_FAILURE : TPM_RC_T = 257 ; pub const TPM_RC_T_TPM_RC_SEQUENCE : TPM_RC_T = 259 ; pub const TPM_RC_T_TPM_RC_PRIVATE : TPM_RC_T = 267 ; pub const TPM_RC_T_TPM_RC_HMAC : TPM_RC_T = 281 ; pub const TPM_RC_T_TPM_RC_DISABLED : TPM_RC_T = 288 ; pub const TPM_RC_T_TPM_RC_EXCLUSIVE : TPM_RC_T = 289 ; pub const TPM_RC_T_TPM_RC_AUTH_TYPE : TPM_RC_T = 292 ; pub const TPM_RC_T_TPM_RC_AUTH_MISSING : TPM_RC_T = 293 ; pub const TPM_RC_T_TPM_RC_POLICY : TPM_RC_T = 294 ; pub const TPM_RC_T_TPM_RC_PCR : TPM_RC_T = 295 ; pub const TPM_RC_T_TPM_RC_PCR_CHANGED : TPM_RC_T = 296 ; pub const TPM_RC_T_TPM_RC_UPGRADE : TPM_RC_T = 301 ; pub const TPM_RC_T_TPM_RC_TOO_MANY_CONTEXTS : TPM_RC_T = 302 ; pub const TPM_RC_T_TPM_RC_AUTH_UNAVAILABLE : TPM_RC_T = 303 ; pub const TPM_RC_T_TPM_RC_REBOOT : TPM_RC_T = 304 ; pub const TPM_RC_T_TPM_RC_UNBALANCED : TPM_RC_T = 305 ; pub const TPM_RC_T_TPM_RC_COMMAND_SIZE : TPM_RC_T = 322 ; pub const TPM_RC_T_TPM_RC_COMMAND_CODE : TPM_RC_T = 323 ; pub const TPM_RC_T_TPM_RC_AUTHSIZE : TPM_RC_T = 324 ; pub const TPM_RC_T_TPM_RC_AUTH_CONTEXT : TPM_RC_T = 325 ; pub const TPM_RC_T_TPM_RC_NV_RANGE : TPM_RC_T = 326 ; pub const TPM_RC_T_TPM_RC_NV_SIZE : TPM_RC_T = 327 ; pub const TPM_RC_T_TPM_RC_NV_LOCKED : TPM_RC_T = 328 ; pub const TPM_RC_T_TPM_RC_NV_AUTHORIZATION : TPM_RC_T = 329 ; pub const TPM_RC_T_TPM_RC_NV_UNINITIALIZED : TPM_RC_T = 330 ; pub const TPM_RC_T_TPM_RC_NV_SPACE : TPM_RC_T = 331 ; pub const TPM_RC_T_TPM_RC_NV_DEFINED : TPM_RC_T = 332 ; pub const TPM_RC_T_TPM_RC_BAD_CONTEXT : TPM_RC_T = 336 ; pub const TPM_RC_T_TPM_RC_CPHASH : TPM_RC_T = 337 ; pub const TPM_RC_T_TPM_RC_PARENT : TPM_RC_T = 338 ; pub const TPM_RC_T_TPM_RC_NEEDS_TEST : TPM_RC_T = 339 ; pub const TPM_RC_T_TPM_RC_NO_RESULT : TPM_RC_T = 340 ; pub const TPM_RC_T_TPM_RC_SENSITIVE : TPM_RC_T = 341 ; pub const TPM_RC_T_RC_MAX_FM0 : TPM_RC_T = 383 ; pub const TPM_RC_T_RC_FMT1 : TPM_RC_T = 128 ; pub const TPM_RC_T_TPM_RC_ASYMMETRIC : TPM_RC_T = 129 ; pub const TPM_RC_T_TPM_RC_ATTRIBUTES : TPM_RC_T = 130 ; pub const TPM_RC_T_TPM_RC_HASH : TPM_RC_T = 131 ; pub const TPM_RC_T_TPM_RC_VALUE : TPM_RC_T = 132 ; pub const TPM_RC_T_TPM_RC_HIERARCHY : TPM_RC_T = 133 ; pub const TPM_RC_T_TPM_RC_KEY_SIZE : TPM_RC_T = 135 ; pub const TPM_RC_T_TPM_RC_MGF : TPM_RC_T = 136 ; pub const TPM_RC_T_TPM_RC_MODE : TPM_RC_T = 137 ; pub const TPM_RC_T_TPM_RC_TYPE : TPM_RC_T = 138 ; pub const TPM_RC_T_TPM_RC_HANDLE : TPM_RC_T = 139 ; pub const TPM_RC_T_TPM_RC_KDF : TPM_RC_T = 140 ; pub const TPM_RC_T_TPM_RC_RANGE : TPM_RC_T = 141 ; pub const TPM_RC_T_TPM_RC_AUTH_FAIL : TPM_RC_T = 142 ; pub const TPM_RC_T_TPM_RC_NONCE : TPM_RC_T = 143 ; pub const TPM_RC_T_TPM_RC_PP : TPM_RC_T = 144 ; pub const TPM_RC_T_TPM_RC_SCHEME : TPM_RC_T = 146 ; pub const TPM_RC_T_TPM_RC_SIZE : TPM_RC_T = 149 ; pub const TPM_RC_T_TPM_RC_SYMMETRIC : TPM_RC_T = 150 ; pub const TPM_RC_T_TPM_RC_TAG : TPM_RC_T = 151 ; pub const TPM_RC_T_TPM_RC_SELECTOR : TPM_RC_T = 152 ; pub const TPM_RC_T_TPM_RC_INSUFFICIENT : TPM_RC_T = 154 ; pub const TPM_RC_T_TPM_RC_SIGNATURE : TPM_RC_T = 155 ; pub const TPM_RC_T_TPM_RC_KEY : TPM_RC_T = 156 ; pub const TPM_RC_T_TPM_RC_POLICY_FAIL : TPM_RC_T = 157 ; pub const TPM_RC_T_TPM_RC_INTEGRITY : TPM_RC_T = 159 ; pub const TPM_RC_T_TPM_RC_TICKET : TPM_RC_T = 160 ; pub const TPM_RC_T_TPM_RC_RESERVED_BITS : TPM_RC_T = 161 ; pub const TPM_RC_T_TPM_RC_BAD_AUTH : TPM_RC_T = 162 ; pub const TPM_RC_T_TPM_RC_EXPIRED : TPM_RC_T = 163 ; pub const TPM_RC_T_TPM_RC_POLICY_CC : TPM_RC_T = 164 ; pub const TPM_RC_T_TPM_RC_BINDING : TPM_RC_T = 165 ; pub const TPM_RC_T_TPM_RC_CURVE : TPM_RC_T = 166 ; pub const TPM_RC_T_TPM_RC_ECC_POINT : TPM_RC_T = 167 ; pub const TPM_RC_T_TPM_RC_PARMS : TPM_RC_T = 170 ; pub const TPM_RC_T_RC_MAX_FMT1 : TPM_RC_T = 191 ; pub const TPM_RC_T_RC_WARN : TPM_RC_T = 2304 ; pub const TPM_RC_T_TPM_RC_CONTEXT_GAP : TPM_RC_T = 2305 ; pub const TPM_RC_T_TPM_RC_OBJECT_MEMORY : TPM_RC_T = 2306 ; pub const TPM_RC_T_TPM_RC_SESSION_MEMORY : TPM_RC_T = 2307 ; pub const TPM_RC_T_TPM_RC_MEMORY : TPM_RC_T = 2308 ; pub const TPM_RC_T_TPM_RC_SESSION_HANDLES : TPM_RC_T = 2309 ; pub const TPM_RC_T_TPM_RC_OBJECT_HANDLES : TPM_RC_T = 2310 ; pub const TPM_RC_T_TPM_RC_LOCALITY : TPM_RC_T = 2311 ; pub const TPM_RC_T_TPM_RC_YIELDED : TPM_RC_T = 2312 ; pub const TPM_RC_T_TPM_RC_CANCELED : TPM_RC_T = 2313 ; pub const TPM_RC_T_TPM_RC_TESTING : TPM_RC_T = 2314 ; pub const TPM_RC_T_TPM_RC_REFERENCE_H0 : TPM_RC_T = 2320 ; pub const TPM_RC_T_TPM_RC_REFERENCE_H1 : TPM_RC_T = 2321 ; pub const TPM_RC_T_TPM_RC_REFERENCE_H2 : TPM_RC_T = 2322 ; pub const TPM_RC_T_TPM_RC_REFERENCE_H3 : TPM_RC_T = 2323 ; pub const TPM_RC_T_TPM_RC_REFERENCE_H4 : TPM_RC_T = 2324 ; pub const TPM_RC_T_TPM_RC_REFERENCE_H5 : TPM_RC_T = 2325 ; pub const TPM_RC_T_TPM_RC_REFERENCE_H6 : TPM_RC_T = 2326 ; pub const TPM_RC_T_TPM_RC_REFERENCE_S0 : TPM_RC_T = 2328 ; pub const TPM_RC_T_TPM_RC_REFERENCE_S1 : TPM_RC_T = 2329 ; pub const TPM_RC_T_TPM_RC_REFERENCE_S2 : TPM_RC_T = 2330 ; pub const TPM_RC_T_TPM_RC_REFERENCE_S3 : TPM_RC_T = 2331 ; pub const TPM_RC_T_TPM_RC_REFERENCE_S4 : TPM_RC_T = 2332 ; pub const TPM_RC_T_TPM_RC_REFERENCE_S5 : TPM_RC_T = 2333 ; pub const TPM_RC_T_TPM_RC_REFERENCE_S6 : TPM_RC_T = 2334 ; pub const TPM_RC_T_TPM_RC_NV_RATE : TPM_RC_T = 2336 ; pub const TPM_RC_T_TPM_RC_LOCKOUT : TPM_RC_T = 2337 ; pub const TPM_RC_T_TPM_RC_RETRY : TPM_RC_T = 2338 ; pub const TPM_RC_T_TPM_RC_NV_UNAVAILABLE : TPM_RC_T = 2339 ; pub const TPM_RC_T_RC_MAX_WARN : TPM_RC_T = 2367 ; pub const TPM_RC_T_TPM_RC_NOT_USED : TPM_RC_T = 2431 ; pub const TPM_RC_T_TPM_RC_H : TPM_RC_T = 0 ; pub const TPM_RC_T_TPM_RC_P : TPM_RC_T = 64 ; pub const TPM_RC_T_TPM_RC_S : TPM_RC_T = 2048 ; pub const TPM_RC_T_TPM_RC_1 : TPM_RC_T = 256 ; pub const TPM_RC_T_TPM_RC_2 : TPM_RC_T = 512 ; pub const TPM_RC_T_TPM_RC_3 : TPM_RC_T = 768 ; pub const TPM_RC_T_TPM_RC_4 : TPM_RC_T = 1024 ; pub const TPM_RC_T_TPM_RC_5 : TPM_RC_T = 1280 ; pub const TPM_RC_T_TPM_RC_6 : TPM_RC_T = 1536 ; pub const TPM_RC_T_TPM_RC_7 : TPM_RC_T = 1792 ; pub const TPM_RC_T_TPM_RC_8 : TPM_RC_T = 2048 ; pub const TPM_RC_T_TPM_RC_9 : TPM_RC_T = 2304 ; pub const TPM_RC_T_TPM_RC_A : TPM_RC_T = 2560 ; pub const TPM_RC_T_TPM_RC_B : TPM_RC_T = 2816 ; pub const TPM_RC_T_TPM_RC_C : TPM_RC_T = 3072 ; pub const TPM_RC_T_TPM_RC_D : TPM_RC_T = 3328 ; pub const TPM_RC_T_TPM_RC_E : TPM_RC_T = 3584 ; pub const TPM_RC_T_TPM_RC_F : TPM_RC_T = 3840 ; pub const TPM_RC_T_TPM_RC_N_MASK : TPM_RC_T = 3840 ; pub const TPM_RC_T_TPM_RC_TIMEOUT : TPM_RC_T = - 100 ; pub type TPM_RC_T = :: core :: ffi :: c_int ; pub type TPM_RC = INT32 ; pub const TPM_CLOCK_ADJUST_T_TPM_CLOCK_COARSE_SLOWER : TPM_CLOCK_ADJUST_T = - 3 ; pub const TPM_CLOCK_ADJUST_T_TPM_CLOCK_MEDIUM_SLOWER : TPM_CLOCK_ADJUST_T = - 2 ; pub const TPM_CLOCK_ADJUST_T_TPM_CLOCK_FINE_SLOWER : TPM_CLOCK_ADJUST_T = - 1 ; pub const TPM_CLOCK_ADJUST_T_TPM_CLOCK_NO_CHANGE : TPM_CLOCK_ADJUST_T = 0 ; pub const TPM_CLOCK_ADJUST_T_TPM_CLOCK_FINE_FASTER : TPM_CLOCK_ADJUST_T = 1 ; pub const TPM_CLOCK_ADJUST_T_TPM_CLOCK_MEDIUM_FASTER : TPM_CLOCK_ADJUST_T = 2 ; pub const TPM_CLOCK_ADJUST_T_TPM_CLOCK_COARSE_FASTER : TPM_CLOCK_ADJUST_T = 3 ; pub type TPM_CLOCK_ADJUST_T = :: core :: ffi :: c_int ; pub type TPM_CLOCK_ADJUST = UINT8 ; pub const TPM_EO_T_TPM_EO_EQ : TPM_EO_T = 0 ; pub const TPM_EO_T_TPM_EO_NEQ : TPM_EO_T = 1 ; pub const TPM_EO_T_TPM_EO_SIGNED_GT : TPM_EO_T = 2 ; pub const TPM_EO_T_TPM_EO_UNSIGNED_GT : TPM_EO_T = 3 ; pub const TPM_EO_T_TPM_EO_SIGNED_LT : TPM_EO_T = 4 ; pub const TPM_EO_T_TPM_EO_UNSIGNED_LT : TPM_EO_T = 5 ; pub const TPM_EO_T_TPM_EO_SIGNED_GE : TPM_EO_T = 6 ; pub const TPM_EO_T_TPM_EO_UNSIGNED_GE : TPM_EO_T = 7 ; pub const TPM_EO_T_TPM_EO_SIGNED_LE : TPM_EO_T = 8 ; pub const TPM_EO_T_TPM_EO_UNSIGNED_LE : TPM_EO_T = 9 ; pub const TPM_EO_T_TPM_EO_BITSET : TPM_EO_T = 10 ; pub const TPM_EO_T_TPM_EO_BITCLEAR : TPM_EO_T = 11 ; pub type TPM_EO_T = :: core :: ffi :: c_uint ; pub type TPM_EO = UINT16 ; pub const TPM_ST_T_TPM_ST_RSP_COMMAND : TPM_ST_T = 196 ; pub const TPM_ST_T_TPM_ST_NULL : TPM_ST_T = 32768 ; pub const TPM_ST_T_TPM_ST_NO_SESSIONS : TPM_ST_T = 32769 ; pub const TPM_ST_T_TPM_ST_SESSIONS : TPM_ST_T = 32770 ; pub const TPM_ST_T_TPM_ST_ATTEST_NV : TPM_ST_T = 32788 ; pub const TPM_ST_T_TPM_ST_ATTEST_COMMAND_AUDIT : TPM_ST_T = 32789 ; pub const TPM_ST_T_TPM_ST_ATTEST_SESSION_AUDIT : TPM_ST_T = 32790 ; pub const TPM_ST_T_TPM_ST_ATTEST_CERTIFY : TPM_ST_T = 32791 ; pub const TPM_ST_T_TPM_ST_ATTEST_QUOTE : TPM_ST_T = 32792 ; pub const TPM_ST_T_TPM_ST_ATTEST_TIME : TPM_ST_T = 32793 ; pub const TPM_ST_T_TPM_ST_ATTEST_CREATION : TPM_ST_T = 32794 ; pub const TPM_ST_T_TPM_ST_ATTEST_NV_DIGEST : TPM_ST_T = 32796 ; pub const TPM_ST_T_TPM_ST_CREATION : TPM_ST_T = 32801 ; pub const TPM_ST_T_TPM_ST_VERIFIED : TPM_ST_T = 32802 ; pub const TPM_ST_T_TPM_ST_AUTH_SECRET : TPM_ST_T = 32803 ; pub const TPM_ST_T_TPM_ST_HASHCHECK : TPM_ST_T = 32804 ; pub const TPM_ST_T_TPM_ST_AUTH_SIGNED : TPM_ST_T = 32805 ; pub const TPM_ST_T_TPM_ST_FU_MANIFEST : TPM_ST_T = 32809 ; pub type TPM_ST_T = :: core :: ffi :: c_uint ; pub type TPM_ST = UINT16 ; pub const TPM_SE_T_TPM_SE_HMAC : TPM_SE_T = 0 ; pub const TPM_SE_T_TPM_SE_POLICY : TPM_SE_T = 1 ; pub const TPM_SE_T_TPM_SE_TRIAL : TPM_SE_T = 3 ; pub type TPM_SE_T = :: core :: ffi :: c_uint ; pub type TPM_SE = UINT8 ; pub const TPM_SU_T_TPM_SU_CLEAR : TPM_SU_T = 0 ; pub const TPM_SU_T_TPM_SU_STATE : TPM_SU_T = 1 ; pub type TPM_SU_T = :: core :: ffi :: c_uint ; pub type TPM_SU = UINT16 ; pub const TPM_CAP_T_TPM_CAP_FIRST : TPM_CAP_T = 0 ; pub const TPM_CAP_T_TPM_CAP_ALGS : TPM_CAP_T = 0 ; pub const TPM_CAP_T_TPM_CAP_HANDLES : TPM_CAP_T = 1 ; pub const TPM_CAP_T_TPM_CAP_COMMANDS : TPM_CAP_T = 2 ; pub const TPM_CAP_T_TPM_CAP_PP_COMMANDS : TPM_CAP_T = 3 ; pub const TPM_CAP_T_TPM_CAP_AUDIT_COMMANDS : TPM_CAP_T = 4 ; pub const TPM_CAP_T_TPM_CAP_PCRS : TPM_CAP_T = 5 ; pub const TPM_CAP_T_TPM_CAP_TPM_PROPERTIES : TPM_CAP_T = 6 ; pub const TPM_CAP_T_TPM_CAP_PCR_PROPERTIES : TPM_CAP_T = 7 ; pub const TPM_CAP_T_TPM_CAP_ECC_CURVES : TPM_CAP_T = 8 ; pub const TPM_CAP_T_TPM_CAP_AUTH_POLICIES : TPM_CAP_T = 9 ; pub const TPM_CAP_T_TPM_CAP_ACT : TPM_CAP_T = 10 ; pub const TPM_CAP_T_TPM_CAP_PUB_KEYS : TPM_CAP_T = 11 ; pub const TPM_CAP_T_TPM_CAP_SPDM_SESSION_INFO : TPM_CAP_T = 12 ; pub const TPM_CAP_T_TPM_CAP_LAST : TPM_CAP_T = 12 ; pub const TPM_CAP_T_TPM_CAP_VENDOR_PROPERTY : TPM_CAP_T = 256 ; pub type TPM_CAP_T = :: core :: ffi :: c_uint ; pub type TPM_CAP = UINT32 ; pub const TPM_PT_T_TPM_PT_NONE : TPM_PT_T = 0 ; pub const TPM_PT_T_PT_GROUP : TPM_PT_T = 256 ; pub const TPM_PT_T_PT_FIXED : TPM_PT_T = 256 ; pub const TPM_PT_T_TPM_PT_FAMILY_INDICATOR : TPM_PT_T = 256 ; pub const TPM_PT_T_TPM_PT_LEVEL : TPM_PT_T = 257 ; pub const TPM_PT_T_TPM_PT_REVISION : TPM_PT_T = 258 ; pub const TPM_PT_T_TPM_PT_DAY_OF_YEAR : TPM_PT_T = 259 ; pub const TPM_PT_T_TPM_PT_YEAR : TPM_PT_T = 260 ; pub const TPM_PT_T_TPM_PT_MANUFACTURER : TPM_PT_T = 261 ; pub const TPM_PT_T_TPM_PT_VENDOR_STRING_1 : TPM_PT_T = 262 ; pub const TPM_PT_T_TPM_PT_VENDOR_STRING_2 : TPM_PT_T = 263 ; pub const TPM_PT_T_TPM_PT_VENDOR_STRING_3 : TPM_PT_T = 264 ; pub const TPM_PT_T_TPM_PT_VENDOR_STRING_4 : TPM_PT_T = 265 ; pub const TPM_PT_T_TPM_PT_VENDOR_TPM_TYPE : TPM_PT_T = 266 ; pub const TPM_PT_T_TPM_PT_FIRMWARE_VERSION_1 : TPM_PT_T = 267 ; pub const TPM_PT_T_TPM_PT_FIRMWARE_VERSION_2 : TPM_PT_T = 268 ; pub const TPM_PT_T_TPM_PT_INPUT_BUFFER : TPM_PT_T = 269 ; pub const TPM_PT_T_TPM_PT_HR_TRANSIENT_MIN : TPM_PT_T = 270 ; pub const TPM_PT_T_TPM_PT_HR_PERSISTENT_MIN : TPM_PT_T = 271 ; pub const TPM_PT_T_TPM_PT_HR_LOADED_MIN : TPM_PT_T = 272 ; pub const TPM_PT_T_TPM_PT_ACTIVE_SESSIONS_MAX : TPM_PT_T = 273 ; pub const TPM_PT_T_TPM_PT_PCR_COUNT : TPM_PT_T = 274 ; pub const TPM_PT_T_TPM_PT_PCR_SELECT_MIN : TPM_PT_T = 275 ; pub const TPM_PT_T_TPM_PT_CONTEXT_GAP_MAX : TPM_PT_T = 276 ; pub const TPM_PT_T_TPM_PT_NV_COUNTERS_MAX : TPM_PT_T = 278 ; pub const TPM_PT_T_TPM_PT_NV_INDEX_MAX : TPM_PT_T = 279 ; pub const TPM_PT_T_TPM_PT_MEMORY : TPM_PT_T = 280 ; pub const TPM_PT_T_TPM_PT_CLOCK_UPDATE : TPM_PT_T = 281 ; pub const TPM_PT_T_TPM_PT_CONTEXT_HASH : TPM_PT_T = 282 ; pub const TPM_PT_T_TPM_PT_CONTEXT_SYM : TPM_PT_T = 283 ; pub const TPM_PT_T_TPM_PT_CONTEXT_SYM_SIZE : TPM_PT_T = 284 ; pub const TPM_PT_T_TPM_PT_ORDERLY_COUNT : TPM_PT_T = 285 ; pub const TPM_PT_T_TPM_PT_MAX_COMMAND_SIZE : TPM_PT_T = 286 ; pub const TPM_PT_T_TPM_PT_MAX_RESPONSE_SIZE : TPM_PT_T = 287 ; pub const TPM_PT_T_TPM_PT_MAX_DIGEST : TPM_PT_T = 288 ; pub const TPM_PT_T_TPM_PT_MAX_OBJECT_CONTEXT : TPM_PT_T = 289 ; pub const TPM_PT_T_TPM_PT_MAX_SESSION_CONTEXT : TPM_PT_T = 290 ; pub const TPM_PT_T_TPM_PT_PS_FAMILY_INDICATOR : TPM_PT_T = 291 ; pub const TPM_PT_T_TPM_PT_PS_LEVEL : TPM_PT_T = 292 ; pub const TPM_PT_T_TPM_PT_PS_REVISION : TPM_PT_T = 293 ; pub const TPM_PT_T_TPM_PT_PS_DAY_OF_YEAR : TPM_PT_T = 294 ; pub const TPM_PT_T_TPM_PT_PS_YEAR : TPM_PT_T = 295 ; pub const TPM_PT_T_TPM_PT_SPLIT_MAX : TPM_PT_T = 296 ; pub const TPM_PT_T_TPM_PT_TOTAL_COMMANDS : TPM_PT_T = 297 ; pub const TPM_PT_T_TPM_PT_LIBRARY_COMMANDS : TPM_PT_T = 298 ; pub const TPM_PT_T_TPM_PT_VENDOR_COMMANDS : TPM_PT_T = 299 ; pub const TPM_PT_T_TPM_PT_NV_BUFFER_MAX : TPM_PT_T = 300 ; pub const TPM_PT_T_TPM_PT_MODES : TPM_PT_T = 301 ; pub const TPM_PT_T_TPM_PT_MAX_CAP_BUFFER : TPM_PT_T = 302 ; pub const TPM_PT_T_PT_VAR : TPM_PT_T = 512 ; pub const TPM_PT_T_TPM_PT_PERMANENT : TPM_PT_T = 512 ; pub const TPM_PT_T_TPM_PT_STARTUP_CLEAR : TPM_PT_T = 513 ; pub const TPM_PT_T_TPM_PT_HR_NV_INDEX : TPM_PT_T = 514 ; pub const TPM_PT_T_TPM_PT_HR_LOADED : TPM_PT_T = 515 ; pub const TPM_PT_T_TPM_PT_HR_LOADED_AVAIL : TPM_PT_T = 516 ; pub const TPM_PT_T_TPM_PT_HR_ACTIVE : TPM_PT_T = 517 ; pub const TPM_PT_T_TPM_PT_HR_ACTIVE_AVAIL : TPM_PT_T = 518 ; pub const TPM_PT_T_TPM_PT_HR_TRANSIENT_AVAIL : TPM_PT_T = 519 ; pub const TPM_PT_T_TPM_PT_HR_PERSISTENT : TPM_PT_T = 520 ; pub const TPM_PT_T_TPM_PT_HR_PERSISTENT_AVAIL : TPM_PT_T = 521 ; pub const TPM_PT_T_TPM_PT_NV_COUNTERS : TPM_PT_T = 522 ; pub const TPM_PT_T_TPM_PT_NV_COUNTERS_AVAIL : TPM_PT_T = 523 ; pub const TPM_PT_T_TPM_PT_ALGORITHM_SET : TPM_PT_T = 524 ; pub const TPM_PT_T_TPM_PT_LOADED_CURVES : TPM_PT_T = 525 ; pub const TPM_PT_T_TPM_PT_LOCKOUT_COUNTER : TPM_PT_T = 526 ; pub const TPM_PT_T_TPM_PT_MAX_AUTH_FAIL : TPM_PT_T = 527 ; pub const TPM_PT_T_TPM_PT_LOCKOUT_INTERVAL : TPM_PT_T = 528 ; pub const TPM_PT_T_TPM_PT_LOCKOUT_RECOVERY : TPM_PT_T = 529 ; pub const TPM_PT_T_TPM_PT_NV_WRITE_RECOVERY : TPM_PT_T = 530 ; pub const TPM_PT_T_TPM_PT_AUDIT_COUNTER_0 : TPM_PT_T = 531 ; pub const TPM_PT_T_TPM_PT_AUDIT_COUNTER_1 : TPM_PT_T = 532 ; pub type TPM_PT_T = :: core :: ffi :: c_uint ; pub type TPM_PT = UINT32 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_FIRST : TPM_PT_PCR_T = 0 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_SAVE : TPM_PT_PCR_T = 0 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_EXTEND_L0 : TPM_PT_PCR_T = 1 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_RESET_L0 : TPM_PT_PCR_T = 2 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_EXTEND_L1 : TPM_PT_PCR_T = 3 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_RESET_L1 : TPM_PT_PCR_T = 4 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_EXTEND_L2 : TPM_PT_PCR_T = 5 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_RESET_L2 : TPM_PT_PCR_T = 6 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_EXTEND_L3 : TPM_PT_PCR_T = 7 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_RESET_L3 : TPM_PT_PCR_T = 8 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_EXTEND_L4 : TPM_PT_PCR_T = 9 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_RESET_L4 : TPM_PT_PCR_T = 10 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_NO_INCREMENT : TPM_PT_PCR_T = 17 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_DRTM_RESET : TPM_PT_PCR_T = 18 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_POLICY : TPM_PT_PCR_T = 19 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_AUTH : TPM_PT_PCR_T = 20 ; pub const TPM_PT_PCR_T_TPM_PT_PCR_LAST : TPM_PT_PCR_T = 20 ; pub type TPM_PT_PCR_T = :: core :: ffi :: c_uint ; pub type TPM_PT_PCR = UINT32 ; pub const TPM_PS_T_TPM_PS_MAIN : TPM_PS_T = 0 ; pub const TPM_PS_T_TPM_PS_PC : TPM_PS_T = 1 ; pub const TPM_PS_T_TPM_PS_PDA : TPM_PS_T = 2 ; pub const TPM_PS_T_TPM_PS_CELL_PHONE : TPM_PS_T = 3 ; pub const TPM_PS_T_TPM_PS_SERVER : TPM_PS_T = 4 ; pub const TPM_PS_T_TPM_PS_PERIPHERAL : TPM_PS_T = 5 ; pub const TPM_PS_T_TPM_PS_TSS : TPM_PS_T = 6 ; pub const TPM_PS_T_TPM_PS_STORAGE : TPM_PS_T = 7 ; pub const TPM_PS_T_TPM_PS_AUTHENTICATION : TPM_PS_T = 8 ; pub const TPM_PS_T_TPM_PS_EMBEDDED : TPM_PS_T = 9 ; pub const TPM_PS_T_TPM_PS_HARDCOPY : TPM_PS_T = 10 ; pub const TPM_PS_T_TPM_PS_INFRASTRUCTURE : TPM_PS_T = 11 ; pub const TPM_PS_T_TPM_PS_VIRTUALIZATION : TPM_PS_T = 12 ; pub const TPM_PS_T_TPM_PS_TNC : TPM_PS_T = 13 ; pub const TPM_PS_T_TPM_PS_MULTI_TENANT : TPM_PS_T = 14 ; pub const TPM_PS_T_TPM_PS_TC : TPM_PS_T = 15 ; pub type TPM_PS_T = :: core :: ffi :: c_uint ; pub type TPM_PS = UINT32 ; pub type TPM_HANDLE = UINT32 ; pub const TPM_HT_T_TPM_HT_PCR : TPM_HT_T = 0 ; pub const TPM_HT_T_TPM_HT_NV_INDEX : TPM_HT_T = 1 ; pub const TPM_HT_T_TPM_HT_HMAC_SESSION : TPM_HT_T = 2 ; pub const TPM_HT_T_TPM_HT_LOADED_SESSION : TPM_HT_T = 2 ; pub const TPM_HT_T_TPM_HT_POLICY_SESSION : TPM_HT_T = 3 ; pub const TPM_HT_T_TPM_HT_ACTIVE_SESSION : TPM_HT_T = 3 ; pub const TPM_HT_T_TPM_HT_PERMANENT : TPM_HT_T = 64 ; pub const TPM_HT_T_TPM_HT_TRANSIENT : TPM_HT_T = 128 ; pub const TPM_HT_T_TPM_HT_PERSISTENT : TPM_HT_T = 129 ; pub type TPM_HT_T = :: core :: ffi :: c_uint ; pub type TPM_HT = UINT8 ; pub const TPM_RH_T_TPM_RH_FIRST : TPM_RH_T = 1073741824 ; pub const TPM_RH_T_TPM_RH_SRK : TPM_RH_T = 1073741824 ; pub const TPM_RH_T_TPM_RH_OWNER : TPM_RH_T = 1073741825 ; pub const TPM_RH_T_TPM_RH_REVOKE : TPM_RH_T = 1073741826 ; pub const TPM_RH_T_TPM_RH_TRANSPORT : TPM_RH_T = 1073741827 ; pub const TPM_RH_T_TPM_RH_OPERATOR : TPM_RH_T = 1073741828 ; pub const TPM_RH_T_TPM_RH_ADMIN : TPM_RH_T = 1073741829 ; pub const TPM_RH_T_TPM_RH_EK : TPM_RH_T = 1073741830 ; pub const TPM_RH_T_TPM_RH_NULL : TPM_RH_T = 1073741831 ; pub const TPM_RH_T_TPM_RH_UNASSIGNED : TPM_RH_T = 1073741832 ; pub const TPM_RH_T_TPM_RS_PW : TPM_RH_T = 1073741833 ; pub const TPM_RH_T_TPM_RH_LOCKOUT : TPM_RH_T = 1073741834 ; pub const TPM_RH_T_TPM_RH_ENDORSEMENT : TPM_RH_T = 1073741835 ; pub const TPM_RH_T_TPM_RH_PLATFORM : TPM_RH_T = 1073741836 ; pub const TPM_RH_T_TPM_RH_PLATFORM_NV : TPM_RH_T = 1073741837 ; pub const TPM_RH_T_TPM_RH_AUTH_00 : TPM_RH_T = 1073741840 ; pub const TPM_RH_T_TPM_RH_AUTH_FF : TPM_RH_T = 1073742095 ; pub const TPM_RH_T_TPM_RH_LAST : TPM_RH_T = 1073742095 ; pub type TPM_RH_T = :: core :: ffi :: c_uint ; pub type TPM_RH = UINT32 ; pub type TPM_HC = UINT32 ; pub type TPMA_ALGORITHM = UINT32 ; pub const TPMA_ALGORITHM_mask_TPMA_ALGORITHM_asymmetric : TPMA_ALGORITHM_mask = 1 ; pub const TPMA_ALGORITHM_mask_TPMA_ALGORITHM_symmetric : TPMA_ALGORITHM_mask = 2 ; pub const TPMA_ALGORITHM_mask_TPMA_ALGORITHM_hash : TPMA_ALGORITHM_mask = 4 ; pub const TPMA_ALGORITHM_mask_TPMA_ALGORITHM_object : TPMA_ALGORITHM_mask = 8 ; pub const TPMA_ALGORITHM_mask_TPMA_ALGORITHM_signing : TPMA_ALGORITHM_mask = 256 ; pub const TPMA_ALGORITHM_mask_TPMA_ALGORITHM_encrypting : TPMA_ALGORITHM_mask = 512 ; pub const TPMA_ALGORITHM_mask_TPMA_ALGORITHM_method : TPMA_ALGORITHM_mask = 1024 ; pub type TPMA_ALGORITHM_mask = :: core :: ffi :: c_uint ; pub type TPMA_OBJECT = UINT32 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_fixedTPM : TPMA_OBJECT_mask = 2 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_stClear : TPMA_OBJECT_mask = 4 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_fixedParent : TPMA_OBJECT_mask = 16 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_sensitiveDataOrigin : TPMA_OBJECT_mask = 32 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_userWithAuth : TPMA_OBJECT_mask = 64 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_adminWithPolicy : TPMA_OBJECT_mask = 128 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_noDA : TPMA_OBJECT_mask = 1024 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_encryptedDuplication : TPMA_OBJECT_mask = 2048 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_restricted : TPMA_OBJECT_mask = 65536 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_decrypt : TPMA_OBJECT_mask = 131072 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_sign : TPMA_OBJECT_mask = 262144 ; pub const TPMA_OBJECT_mask_TPMA_OBJECT_derivedDataOrigin : TPMA_OBJECT_mask = 512 ; pub type TPMA_OBJECT_mask = :: core :: ffi :: c_uint ; pub type TPMA_SESSION = BYTE ; pub const TPMA_SESSION_mask_TPMA_SESSION_continueSession : TPMA_SESSION_mask = 1 ; pub const TPMA_SESSION_mask_TPMA_SESSION_auditExclusive : TPMA_SESSION_mask = 2 ; pub const TPMA_SESSION_mask_TPMA_SESSION_auditReset : TPMA_SESSION_mask = 4 ; pub const TPMA_SESSION_mask_TPMA_SESSION_decrypt : TPMA_SESSION_mask = 32 ; pub const TPMA_SESSION_mask_TPMA_SESSION_encrypt : TPMA_SESSION_mask = 64 ; pub const TPMA_SESSION_mask_TPMA_SESSION_audit : TPMA_SESSION_mask = 128 ; pub type TPMA_SESSION_mask = :: core :: ffi :: c_uint ; pub type TPMA_LOCALITY = BYTE ; pub const TPMA_LOCALITY_mask_TPM_LOC_ZERO : TPMA_LOCALITY_mask = 1 ; pub const TPMA_LOCALITY_mask_TPM_LOC_ONE : TPMA_LOCALITY_mask = 2 ; pub const TPMA_LOCALITY_mask_TPM_LOC_TWO : TPMA_LOCALITY_mask = 4 ; pub const TPMA_LOCALITY_mask_TPM_LOC_THREE : TPMA_LOCALITY_mask = 8 ; pub const TPMA_LOCALITY_mask_TPM_LOC_FOUR : TPMA_LOCALITY_mask = 16 ; pub type TPMA_LOCALITY_mask = :: core :: ffi :: c_uint ; pub type TPMA_PERMANENT = UINT32 ; pub const TPMA_PERMANENT_mask_TPMA_PERMANENT_ownerAuthSet : TPMA_PERMANENT_mask = 1 ; pub const TPMA_PERMANENT_mask_TPMA_PERMANENT_endorsementAuthSet : TPMA_PERMANENT_mask = 2 ; pub const TPMA_PERMANENT_mask_TPMA_PERMANENT_lockoutAuthSet : TPMA_PERMANENT_mask = 4 ; pub const TPMA_PERMANENT_mask_TPMA_PERMANENT_disableClear : TPMA_PERMANENT_mask = 256 ; pub const TPMA_PERMANENT_mask_TPMA_PERMANENT_inLockout : TPMA_PERMANENT_mask = 512 ; pub const TPMA_PERMANENT_mask_TPMA_PERMANENT_tpmGeneratedEPS : TPMA_PERMANENT_mask = 1024 ; pub type TPMA_PERMANENT_mask = :: core :: ffi :: c_uint ; pub type TPMA_STARTUP_CLEAR = UINT32 ; pub type TPMA_MEMORY = UINT32 ; pub const TPMA_MEMORY_mask_TPMA_MEMORY_sharedRAM : TPMA_MEMORY_mask = 1 ; pub const TPMA_MEMORY_mask_TPMA_MEMORY_sharedNV : TPMA_MEMORY_mask = 2 ; pub const TPMA_MEMORY_mask_TPMA_MEMORY_objectCopiedToRam : TPMA_MEMORY_mask = 4 ; pub type TPMA_MEMORY_mask = :: core :: ffi :: c_uint ; pub type TPMA_CC = UINT32 ; pub const TPMA_CC_mask_TPMA_CC_commandIndex : TPMA_CC_mask = 65535 ; pub const TPMA_CC_mask_TPMA_CC_nv : TPMA_CC_mask = 4194304 ; pub const TPMA_CC_mask_TPMA_CC_extensive : TPMA_CC_mask = 8388608 ; pub const TPMA_CC_mask_TPMA_CC_flushed : TPMA_CC_mask = 16777216 ; pub const TPMA_CC_mask_TPMA_CC_cHandles : TPMA_CC_mask = 234881024 ; pub const TPMA_CC_mask_TPMA_CC_rHandle : TPMA_CC_mask = 268435456 ; pub const TPMA_CC_mask_TPMA_CC_V : TPMA_CC_mask = 536870912 ; pub type TPMA_CC_mask = :: core :: ffi :: c_uint ; pub type TPMA_MODES = UINT32 ; pub const TPMA_MODES_mask_TPMA_MODES_FIPS_140_2 : TPMA_MODES_mask = 1 ; pub const TPMA_MODES_mask_TPMA_MODES_FIPS_140_3 : TPMA_MODES_mask = 2 ; pub type TPMA_MODES_mask = :: core :: ffi :: c_uint ; pub type TPMI_YES_NO = BYTE ; pub type TPMI_DH_OBJECT = TPM_HANDLE ; pub type TPMI_DH_PARENT = TPM_HANDLE ; pub type TPMI_DH_PERSISTENT = TPM_HANDLE ; pub type TPMI_DH_ENTITY = TPM_HANDLE ; pub type TPMI_DH_PCR = TPM_HANDLE ; pub type TPMI_SH_AUTH_SESSION = TPM_HANDLE ; pub type TPMI_SH_HMAC = TPM_HANDLE ; pub type TPMI_SH_POLICY = TPM_HANDLE ; pub type TPMI_DH_CONTEXT = TPM_HANDLE ; pub type TPMI_RH_HIERARCHY = TPM_HANDLE ; pub type TPMI_RH_ENABLES = TPM_HANDLE ; pub type TPMI_RH_HIERARCHY_AUTH = TPM_HANDLE ; pub type TPMI_RH_PLATFORM = TPM_HANDLE ; pub type TPMI_RH_OWNER = TPM_HANDLE ; pub type TPMI_RH_ENDORSEMENT = TPM_HANDLE ; pub type TPMI_RH_PROVISION = TPM_HANDLE ; pub type TPMI_RH_CLEAR = TPM_HANDLE ; pub type TPMI_RH_NV_AUTH = TPM_HANDLE ; pub type TPMI_RH_LOCKOUT = TPM_HANDLE ; pub type TPMI_RH_NV_INDEX = TPM_HANDLE ; pub type TPMI_ALG_HASH = TPM_ALG_ID ; pub type TPMI_ALG_ASYM = TPM_ALG_ID ; pub type TPMI_ALG_SYM = TPM_ALG_ID ; pub type TPMI_ALG_SYM_OBJECT = TPM_ALG_ID ; pub type TPMI_ALG_SYM_MODE = TPM_ALG_ID ; pub type TPMI_ALG_KDF = TPM_ALG_ID ; pub type TPMI_ALG_SIG_SCHEME = TPM_ALG_ID ; pub type TPMI_ECC_KEY_EXCHANGE = TPM_ALG_ID ; pub type TPMI_ST_COMMAND_TAG = TPM_ST ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_ALGORITHM_DESCRIPTION { pub alg : TPM_ALG_ID , pub attributes : TPMA_ALGORITHM , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ALGORITHM_DESCRIPTION"] [:: core :: mem :: size_of :: < TPMS_ALGORITHM_DESCRIPTION > () - 8usize] ; ["Alignment of TPMS_ALGORITHM_DESCRIPTION"] [:: core :: mem :: align_of :: < TPMS_ALGORITHM_DESCRIPTION > () - 4usize] ; ["Offset of field: TPMS_ALGORITHM_DESCRIPTION::alg"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DESCRIPTION , alg) - 0usize] ; ["Offset of field: TPMS_ALGORITHM_DESCRIPTION::attributes"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DESCRIPTION , attributes) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_HA { pub sha512 : [BYTE ; 64usize] , pub sha384 : [BYTE ; 48usize] , pub sha256 : [BYTE ; 32usize] , pub sha224 : [BYTE ; 28usize] , pub sha : [BYTE ; 20usize] , pub md5 : [BYTE ; 16usize] , pub H : [BYTE ; 64usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_HA"] [:: core :: mem :: size_of :: < TPMU_HA > () - 64usize] ; ["Alignment of TPMU_HA"] [:: core :: mem :: align_of :: < TPMU_HA > () - 1usize] ; ["Offset of field: TPMU_HA::sha512"] [:: core :: mem :: offset_of ! (TPMU_HA , sha512) - 0usize] ; ["Offset of field: TPMU_HA::sha384"] [:: core :: mem :: offset_of ! (TPMU_HA , sha384) - 0usize] ; ["Offset of field: TPMU_HA::sha256"] [:: core :: mem :: offset_of ! (TPMU_HA , sha256) - 0usize] ; ["Offset of field: TPMU_HA::sha224"] [:: core :: mem :: offset_of ! (TPMU_HA , sha224) - 0usize] ; ["Offset of field: TPMU_HA::sha"] [:: core :: mem :: offset_of ! (TPMU_HA , sha) - 0usize] ; ["Offset of field: TPMU_HA::md5"] [:: core :: mem :: offset_of ! (TPMU_HA , md5) - 0usize] ; ["Offset of field: TPMU_HA::H"] [:: core :: mem :: offset_of ! (TPMU_HA , H) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_HA { pub hashAlg : TPMI_ALG_HASH , pub digest : TPMU_HA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_HA"] [:: core :: mem :: size_of :: < TPMT_HA > () - 66usize] ; ["Alignment of TPMT_HA"] [:: core :: mem :: align_of :: < TPMT_HA > () - 2usize] ; ["Offset of field: TPMT_HA::hashAlg"] [:: core :: mem :: offset_of ! (TPMT_HA , hashAlg) - 0usize] ; ["Offset of field: TPMT_HA::digest"] [:: core :: mem :: offset_of ! (TPMT_HA , digest) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_DIGEST { pub size : UINT16 , pub buffer : [BYTE ; 64usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_DIGEST"] [:: core :: mem :: size_of :: < TPM2B_DIGEST > () - 66usize] ; ["Alignment of TPM2B_DIGEST"] [:: core :: mem :: align_of :: < TPM2B_DIGEST > () - 2usize] ; ["Offset of field: TPM2B_DIGEST::size"] [:: core :: mem :: offset_of ! (TPM2B_DIGEST , size) - 0usize] ; ["Offset of field: TPM2B_DIGEST::buffer"] [:: core :: mem :: offset_of ! (TPM2B_DIGEST , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_DATA { pub size : UINT16 , pub buffer : [BYTE ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_DATA"] [:: core :: mem :: size_of :: < TPM2B_DATA > () - 68usize] ; ["Alignment of TPM2B_DATA"] [:: core :: mem :: align_of :: < TPM2B_DATA > () - 2usize] ; ["Offset of field: TPM2B_DATA::size"] [:: core :: mem :: offset_of ! (TPM2B_DATA , size) - 0usize] ; ["Offset of field: TPM2B_DATA::buffer"] [:: core :: mem :: offset_of ! (TPM2B_DATA , buffer) - 2usize] ; } ; pub type TPM2B_NONCE = TPM2B_DIGEST ; pub type TPM2B_AUTH = TPM2B_DIGEST ; pub type TPM2B_OPERAND = TPM2B_DIGEST ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_EVENT { pub size : UINT16 , pub buffer : [BYTE ; 1024usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_EVENT"] [:: core :: mem :: size_of :: < TPM2B_EVENT > () - 1026usize] ; ["Alignment of TPM2B_EVENT"] [:: core :: mem :: align_of :: < TPM2B_EVENT > () - 2usize] ; ["Offset of field: TPM2B_EVENT::size"] [:: core :: mem :: offset_of ! (TPM2B_EVENT , size) - 0usize] ; ["Offset of field: TPM2B_EVENT::buffer"] [:: core :: mem :: offset_of ! (TPM2B_EVENT , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_MAX_BUFFER { pub size : UINT16 , pub buffer : [BYTE ; 1024usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_MAX_BUFFER"] [:: core :: mem :: size_of :: < TPM2B_MAX_BUFFER > () - 1026usize] ; ["Alignment of TPM2B_MAX_BUFFER"] [:: core :: mem :: align_of :: < TPM2B_MAX_BUFFER > () - 2usize] ; ["Offset of field: TPM2B_MAX_BUFFER::size"] [:: core :: mem :: offset_of ! (TPM2B_MAX_BUFFER , size) - 0usize] ; ["Offset of field: TPM2B_MAX_BUFFER::buffer"] [:: core :: mem :: offset_of ! (TPM2B_MAX_BUFFER , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_MAX_NV_BUFFER { pub size : UINT16 , pub buffer : [BYTE ; 768usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_MAX_NV_BUFFER"] [:: core :: mem :: size_of :: < TPM2B_MAX_NV_BUFFER > () - 770usize] ; ["Alignment of TPM2B_MAX_NV_BUFFER"] [:: core :: mem :: align_of :: < TPM2B_MAX_NV_BUFFER > () - 2usize] ; ["Offset of field: TPM2B_MAX_NV_BUFFER::size"] [:: core :: mem :: offset_of ! (TPM2B_MAX_NV_BUFFER , size) - 0usize] ; ["Offset of field: TPM2B_MAX_NV_BUFFER::buffer"] [:: core :: mem :: offset_of ! (TPM2B_MAX_NV_BUFFER , buffer) - 2usize] ; } ; pub type TPM2B_TIMEOUT = TPM2B_DIGEST ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_IV { pub size : UINT16 , pub buffer : [BYTE ; 20usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_IV"] [:: core :: mem :: size_of :: < TPM2B_IV > () - 22usize] ; ["Alignment of TPM2B_IV"] [:: core :: mem :: align_of :: < TPM2B_IV > () - 2usize] ; ["Offset of field: TPM2B_IV::size"] [:: core :: mem :: offset_of ! (TPM2B_IV , size) - 0usize] ; ["Offset of field: TPM2B_IV::buffer"] [:: core :: mem :: offset_of ! (TPM2B_IV , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_NAME { pub digest : TPMT_HA , pub handle : TPM_HANDLE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_NAME"] [:: core :: mem :: size_of :: < TPMU_NAME > () - 68usize] ; ["Alignment of TPMU_NAME"] [:: core :: mem :: align_of :: < TPMU_NAME > () - 4usize] ; ["Offset of field: TPMU_NAME::digest"] [:: core :: mem :: offset_of ! (TPMU_NAME , digest) - 0usize] ; ["Offset of field: TPMU_NAME::handle"] [:: core :: mem :: offset_of ! (TPMU_NAME , handle) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_NAME { pub size : UINT16 , pub name : [BYTE ; 68usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_NAME"] [:: core :: mem :: size_of :: < TPM2B_NAME > () - 70usize] ; ["Alignment of TPM2B_NAME"] [:: core :: mem :: align_of :: < TPM2B_NAME > () - 2usize] ; ["Offset of field: TPM2B_NAME::size"] [:: core :: mem :: offset_of ! (TPM2B_NAME , size) - 0usize] ; ["Offset of field: TPM2B_NAME::name"] [:: core :: mem :: offset_of ! (TPM2B_NAME , name) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_PCR_SELECT { pub sizeofSelect : BYTE , pub pcrSelect : [BYTE ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_PCR_SELECT"] [:: core :: mem :: size_of :: < TPMS_PCR_SELECT > () - 4usize] ; ["Alignment of TPMS_PCR_SELECT"] [:: core :: mem :: align_of :: < TPMS_PCR_SELECT > () - 1usize] ; ["Offset of field: TPMS_PCR_SELECT::sizeofSelect"] [:: core :: mem :: offset_of ! (TPMS_PCR_SELECT , sizeofSelect) - 0usize] ; ["Offset of field: TPMS_PCR_SELECT::pcrSelect"] [:: core :: mem :: offset_of ! (TPMS_PCR_SELECT , pcrSelect) - 1usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_PCR_SELECTION { pub hash : TPMI_ALG_HASH , pub sizeofSelect : BYTE , pub pcrSelect : [BYTE ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_PCR_SELECTION"] [:: core :: mem :: size_of :: < TPMS_PCR_SELECTION > () - 6usize] ; ["Alignment of TPMS_PCR_SELECTION"] [:: core :: mem :: align_of :: < TPMS_PCR_SELECTION > () - 2usize] ; ["Offset of field: TPMS_PCR_SELECTION::hash"] [:: core :: mem :: offset_of ! (TPMS_PCR_SELECTION , hash) - 0usize] ; ["Offset of field: TPMS_PCR_SELECTION::sizeofSelect"] [:: core :: mem :: offset_of ! (TPMS_PCR_SELECTION , sizeofSelect) - 2usize] ; ["Offset of field: TPMS_PCR_SELECTION::pcrSelect"] [:: core :: mem :: offset_of ! (TPMS_PCR_SELECTION , pcrSelect) - 3usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMT_TK_CREATION { pub tag : TPM_ST , pub hierarchy : TPMI_RH_HIERARCHY , pub digest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_TK_CREATION"] [:: core :: mem :: size_of :: < TPMT_TK_CREATION > () - 76usize] ; ["Alignment of TPMT_TK_CREATION"] [:: core :: mem :: align_of :: < TPMT_TK_CREATION > () - 4usize] ; ["Offset of field: TPMT_TK_CREATION::tag"] [:: core :: mem :: offset_of ! (TPMT_TK_CREATION , tag) - 0usize] ; ["Offset of field: TPMT_TK_CREATION::hierarchy"] [:: core :: mem :: offset_of ! (TPMT_TK_CREATION , hierarchy) - 4usize] ; ["Offset of field: TPMT_TK_CREATION::digest"] [:: core :: mem :: offset_of ! (TPMT_TK_CREATION , digest) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMT_TK_VERIFIED { pub tag : TPM_ST , pub hierarchy : TPMI_RH_HIERARCHY , pub digest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_TK_VERIFIED"] [:: core :: mem :: size_of :: < TPMT_TK_VERIFIED > () - 76usize] ; ["Alignment of TPMT_TK_VERIFIED"] [:: core :: mem :: align_of :: < TPMT_TK_VERIFIED > () - 4usize] ; ["Offset of field: TPMT_TK_VERIFIED::tag"] [:: core :: mem :: offset_of ! (TPMT_TK_VERIFIED , tag) - 0usize] ; ["Offset of field: TPMT_TK_VERIFIED::hierarchy"] [:: core :: mem :: offset_of ! (TPMT_TK_VERIFIED , hierarchy) - 4usize] ; ["Offset of field: TPMT_TK_VERIFIED::digest"] [:: core :: mem :: offset_of ! (TPMT_TK_VERIFIED , digest) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMT_TK_AUTH { pub tag : TPM_ST , pub hierarchy : TPMI_RH_HIERARCHY , pub digest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_TK_AUTH"] [:: core :: mem :: size_of :: < TPMT_TK_AUTH > () - 76usize] ; ["Alignment of TPMT_TK_AUTH"] [:: core :: mem :: align_of :: < TPMT_TK_AUTH > () - 4usize] ; ["Offset of field: TPMT_TK_AUTH::tag"] [:: core :: mem :: offset_of ! (TPMT_TK_AUTH , tag) - 0usize] ; ["Offset of field: TPMT_TK_AUTH::hierarchy"] [:: core :: mem :: offset_of ! (TPMT_TK_AUTH , hierarchy) - 4usize] ; ["Offset of field: TPMT_TK_AUTH::digest"] [:: core :: mem :: offset_of ! (TPMT_TK_AUTH , digest) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMT_TK_HASHCHECK { pub tag : TPM_ST , pub hierarchy : TPMI_RH_HIERARCHY , pub digest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_TK_HASHCHECK"] [:: core :: mem :: size_of :: < TPMT_TK_HASHCHECK > () - 76usize] ; ["Alignment of TPMT_TK_HASHCHECK"] [:: core :: mem :: align_of :: < TPMT_TK_HASHCHECK > () - 4usize] ; ["Offset of field: TPMT_TK_HASHCHECK::tag"] [:: core :: mem :: offset_of ! (TPMT_TK_HASHCHECK , tag) - 0usize] ; ["Offset of field: TPMT_TK_HASHCHECK::hierarchy"] [:: core :: mem :: offset_of ! (TPMT_TK_HASHCHECK , hierarchy) - 4usize] ; ["Offset of field: TPMT_TK_HASHCHECK::digest"] [:: core :: mem :: offset_of ! (TPMT_TK_HASHCHECK , digest) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_ALG_PROPERTY { pub alg : TPM_ALG_ID , pub algProperties : TPMA_ALGORITHM , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ALG_PROPERTY"] [:: core :: mem :: size_of :: < TPMS_ALG_PROPERTY > () - 8usize] ; ["Alignment of TPMS_ALG_PROPERTY"] [:: core :: mem :: align_of :: < TPMS_ALG_PROPERTY > () - 4usize] ; ["Offset of field: TPMS_ALG_PROPERTY::alg"] [:: core :: mem :: offset_of ! (TPMS_ALG_PROPERTY , alg) - 0usize] ; ["Offset of field: TPMS_ALG_PROPERTY::algProperties"] [:: core :: mem :: offset_of ! (TPMS_ALG_PROPERTY , algProperties) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_TAGGED_PROPERTY { pub property : TPM_PT , pub value : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_TAGGED_PROPERTY"] [:: core :: mem :: size_of :: < TPMS_TAGGED_PROPERTY > () - 8usize] ; ["Alignment of TPMS_TAGGED_PROPERTY"] [:: core :: mem :: align_of :: < TPMS_TAGGED_PROPERTY > () - 4usize] ; ["Offset of field: TPMS_TAGGED_PROPERTY::property"] [:: core :: mem :: offset_of ! (TPMS_TAGGED_PROPERTY , property) - 0usize] ; ["Offset of field: TPMS_TAGGED_PROPERTY::value"] [:: core :: mem :: offset_of ! (TPMS_TAGGED_PROPERTY , value) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_TAGGED_PCR_SELECT { pub tag : TPM_PT_PCR , pub sizeofSelect : BYTE , pub pcrSelect : [BYTE ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_TAGGED_PCR_SELECT"] [:: core :: mem :: size_of :: < TPMS_TAGGED_PCR_SELECT > () - 8usize] ; ["Alignment of TPMS_TAGGED_PCR_SELECT"] [:: core :: mem :: align_of :: < TPMS_TAGGED_PCR_SELECT > () - 4usize] ; ["Offset of field: TPMS_TAGGED_PCR_SELECT::tag"] [:: core :: mem :: offset_of ! (TPMS_TAGGED_PCR_SELECT , tag) - 0usize] ; ["Offset of field: TPMS_TAGGED_PCR_SELECT::sizeofSelect"] [:: core :: mem :: offset_of ! (TPMS_TAGGED_PCR_SELECT , sizeofSelect) - 4usize] ; ["Offset of field: TPMS_TAGGED_PCR_SELECT::pcrSelect"] [:: core :: mem :: offset_of ! (TPMS_TAGGED_PCR_SELECT , pcrSelect) - 5usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_TAGGED_POLICY { pub handle : TPM_HANDLE , pub policyHash : TPMT_HA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_TAGGED_POLICY"] [:: core :: mem :: size_of :: < TPMS_TAGGED_POLICY > () - 72usize] ; ["Alignment of TPMS_TAGGED_POLICY"] [:: core :: mem :: align_of :: < TPMS_TAGGED_POLICY > () - 4usize] ; ["Offset of field: TPMS_TAGGED_POLICY::handle"] [:: core :: mem :: offset_of ! (TPMS_TAGGED_POLICY , handle) - 0usize] ; ["Offset of field: TPMS_TAGGED_POLICY::policyHash"] [:: core :: mem :: offset_of ! (TPMS_TAGGED_POLICY , policyHash) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_CC { pub count : UINT32 , pub commandCodes : [TPM_CC ; 117usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_CC"] [:: core :: mem :: size_of :: < TPML_CC > () - 472usize] ; ["Alignment of TPML_CC"] [:: core :: mem :: align_of :: < TPML_CC > () - 4usize] ; ["Offset of field: TPML_CC::count"] [:: core :: mem :: offset_of ! (TPML_CC , count) - 0usize] ; ["Offset of field: TPML_CC::commandCodes"] [:: core :: mem :: offset_of ! (TPML_CC , commandCodes) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_CCA { pub count : UINT32 , pub commandAttributes : [TPMA_CC ; 117usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_CCA"] [:: core :: mem :: size_of :: < TPML_CCA > () - 472usize] ; ["Alignment of TPML_CCA"] [:: core :: mem :: align_of :: < TPML_CCA > () - 4usize] ; ["Offset of field: TPML_CCA::count"] [:: core :: mem :: offset_of ! (TPML_CCA , count) - 0usize] ; ["Offset of field: TPML_CCA::commandAttributes"] [:: core :: mem :: offset_of ! (TPML_CCA , commandAttributes) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_ALG { pub count : UINT32 , pub algorithms : [TPM_ALG_ID ; 64usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_ALG"] [:: core :: mem :: size_of :: < TPML_ALG > () - 132usize] ; ["Alignment of TPML_ALG"] [:: core :: mem :: align_of :: < TPML_ALG > () - 4usize] ; ["Offset of field: TPML_ALG::count"] [:: core :: mem :: offset_of ! (TPML_ALG , count) - 0usize] ; ["Offset of field: TPML_ALG::algorithms"] [:: core :: mem :: offset_of ! (TPML_ALG , algorithms) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_HANDLE { pub count : UINT32 , pub handle : [TPM_HANDLE ; 254usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_HANDLE"] [:: core :: mem :: size_of :: < TPML_HANDLE > () - 1020usize] ; ["Alignment of TPML_HANDLE"] [:: core :: mem :: align_of :: < TPML_HANDLE > () - 4usize] ; ["Offset of field: TPML_HANDLE::count"] [:: core :: mem :: offset_of ! (TPML_HANDLE , count) - 0usize] ; ["Offset of field: TPML_HANDLE::handle"] [:: core :: mem :: offset_of ! (TPML_HANDLE , handle) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_DIGEST { pub count : UINT32 , pub digests : [TPM2B_DIGEST ; 8usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_DIGEST"] [:: core :: mem :: size_of :: < TPML_DIGEST > () - 532usize] ; ["Alignment of TPML_DIGEST"] [:: core :: mem :: align_of :: < TPML_DIGEST > () - 4usize] ; ["Offset of field: TPML_DIGEST::count"] [:: core :: mem :: offset_of ! (TPML_DIGEST , count) - 0usize] ; ["Offset of field: TPML_DIGEST::digests"] [:: core :: mem :: offset_of ! (TPML_DIGEST , digests) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPML_DIGEST_VALUES { pub count : UINT32 , pub digests : [TPMT_HA ; 5usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_DIGEST_VALUES"] [:: core :: mem :: size_of :: < TPML_DIGEST_VALUES > () - 336usize] ; ["Alignment of TPML_DIGEST_VALUES"] [:: core :: mem :: align_of :: < TPML_DIGEST_VALUES > () - 4usize] ; ["Offset of field: TPML_DIGEST_VALUES::count"] [:: core :: mem :: offset_of ! (TPML_DIGEST_VALUES , count) - 0usize] ; ["Offset of field: TPML_DIGEST_VALUES::digests"] [:: core :: mem :: offset_of ! (TPML_DIGEST_VALUES , digests) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_PCR_SELECTION { pub count : UINT32 , pub pcrSelections : [TPMS_PCR_SELECTION ; 5usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_PCR_SELECTION"] [:: core :: mem :: size_of :: < TPML_PCR_SELECTION > () - 36usize] ; ["Alignment of TPML_PCR_SELECTION"] [:: core :: mem :: align_of :: < TPML_PCR_SELECTION > () - 4usize] ; ["Offset of field: TPML_PCR_SELECTION::count"] [:: core :: mem :: offset_of ! (TPML_PCR_SELECTION , count) - 0usize] ; ["Offset of field: TPML_PCR_SELECTION::pcrSelections"] [:: core :: mem :: offset_of ! (TPML_PCR_SELECTION , pcrSelections) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_ALG_PROPERTY { pub count : UINT32 , pub algProperties : [TPMS_ALG_PROPERTY ; 127usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_ALG_PROPERTY"] [:: core :: mem :: size_of :: < TPML_ALG_PROPERTY > () - 1020usize] ; ["Alignment of TPML_ALG_PROPERTY"] [:: core :: mem :: align_of :: < TPML_ALG_PROPERTY > () - 4usize] ; ["Offset of field: TPML_ALG_PROPERTY::count"] [:: core :: mem :: offset_of ! (TPML_ALG_PROPERTY , count) - 0usize] ; ["Offset of field: TPML_ALG_PROPERTY::algProperties"] [:: core :: mem :: offset_of ! (TPML_ALG_PROPERTY , algProperties) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_TAGGED_TPM_PROPERTY { pub count : UINT32 , pub tpmProperty : [TPMS_TAGGED_PROPERTY ; 127usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_TAGGED_TPM_PROPERTY"] [:: core :: mem :: size_of :: < TPML_TAGGED_TPM_PROPERTY > () - 1020usize] ; ["Alignment of TPML_TAGGED_TPM_PROPERTY"] [:: core :: mem :: align_of :: < TPML_TAGGED_TPM_PROPERTY > () - 4usize] ; ["Offset of field: TPML_TAGGED_TPM_PROPERTY::count"] [:: core :: mem :: offset_of ! (TPML_TAGGED_TPM_PROPERTY , count) - 0usize] ; ["Offset of field: TPML_TAGGED_TPM_PROPERTY::tpmProperty"] [:: core :: mem :: offset_of ! (TPML_TAGGED_TPM_PROPERTY , tpmProperty) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_TAGGED_PCR_PROPERTY { pub count : UINT32 , pub pcrProperty : [TPMS_TAGGED_PCR_SELECT ; 127usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_TAGGED_PCR_PROPERTY"] [:: core :: mem :: size_of :: < TPML_TAGGED_PCR_PROPERTY > () - 1020usize] ; ["Alignment of TPML_TAGGED_PCR_PROPERTY"] [:: core :: mem :: align_of :: < TPML_TAGGED_PCR_PROPERTY > () - 4usize] ; ["Offset of field: TPML_TAGGED_PCR_PROPERTY::count"] [:: core :: mem :: offset_of ! (TPML_TAGGED_PCR_PROPERTY , count) - 0usize] ; ["Offset of field: TPML_TAGGED_PCR_PROPERTY::pcrProperty"] [:: core :: mem :: offset_of ! (TPML_TAGGED_PCR_PROPERTY , pcrProperty) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_ECC_CURVE { pub count : UINT32 , pub eccCurves : [TPM_ECC_CURVE ; 508usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_ECC_CURVE"] [:: core :: mem :: size_of :: < TPML_ECC_CURVE > () - 1020usize] ; ["Alignment of TPML_ECC_CURVE"] [:: core :: mem :: align_of :: < TPML_ECC_CURVE > () - 4usize] ; ["Offset of field: TPML_ECC_CURVE::count"] [:: core :: mem :: offset_of ! (TPML_ECC_CURVE , count) - 0usize] ; ["Offset of field: TPML_ECC_CURVE::eccCurves"] [:: core :: mem :: offset_of ! (TPML_ECC_CURVE , eccCurves) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPML_TAGGED_POLICY { pub count : UINT32 , pub policies : [TPMS_TAGGED_POLICY ; 14usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_TAGGED_POLICY"] [:: core :: mem :: size_of :: < TPML_TAGGED_POLICY > () - 1012usize] ; ["Alignment of TPML_TAGGED_POLICY"] [:: core :: mem :: align_of :: < TPML_TAGGED_POLICY > () - 4usize] ; ["Offset of field: TPML_TAGGED_POLICY::count"] [:: core :: mem :: offset_of ! (TPML_TAGGED_POLICY , count) - 0usize] ; ["Offset of field: TPML_TAGGED_POLICY::policies"] [:: core :: mem :: offset_of ! (TPML_TAGGED_POLICY , policies) - 4usize] ; } ; pub const TPMA_ACT_T_TPMA_ACT_signaled : TPMA_ACT_T = 1 ; pub const TPMA_ACT_T_TPMA_ACT_preserveSignaled : TPMA_ACT_T = 2 ; pub type TPMA_ACT_T = :: core :: ffi :: c_uint ; pub type TPMA_ACT = UINT32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_ACT_DATA { pub handle : TPM_HANDLE , pub timeout : UINT32 , pub attributes : TPMA_ACT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ACT_DATA"] [:: core :: mem :: size_of :: < TPMS_ACT_DATA > () - 12usize] ; ["Alignment of TPMS_ACT_DATA"] [:: core :: mem :: align_of :: < TPMS_ACT_DATA > () - 4usize] ; ["Offset of field: TPMS_ACT_DATA::handle"] [:: core :: mem :: offset_of ! (TPMS_ACT_DATA , handle) - 0usize] ; ["Offset of field: TPMS_ACT_DATA::timeout"] [:: core :: mem :: offset_of ! (TPMS_ACT_DATA , timeout) - 4usize] ; ["Offset of field: TPMS_ACT_DATA::attributes"] [:: core :: mem :: offset_of ! (TPMS_ACT_DATA , attributes) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPML_ACT_DATA { pub count : UINT32 , pub actData : [TPMS_ACT_DATA ; 84usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPML_ACT_DATA"] [:: core :: mem :: size_of :: < TPML_ACT_DATA > () - 1012usize] ; ["Alignment of TPML_ACT_DATA"] [:: core :: mem :: align_of :: < TPML_ACT_DATA > () - 4usize] ; ["Offset of field: TPML_ACT_DATA::count"] [:: core :: mem :: offset_of ! (TPML_ACT_DATA , count) - 0usize] ; ["Offset of field: TPML_ACT_DATA::actData"] [:: core :: mem :: offset_of ! (TPML_ACT_DATA , actData) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_CAPABILITIES { pub algorithms : TPML_ALG_PROPERTY , pub handles : TPML_HANDLE , pub command : TPML_CCA , pub ppCommands : TPML_CC , pub auditCommands : TPML_CC , pub assignedPCR : TPML_PCR_SELECTION , pub tpmProperties : TPML_TAGGED_TPM_PROPERTY , pub pcrProperties : TPML_TAGGED_PCR_PROPERTY , pub eccCurves : TPML_ECC_CURVE , pub authPolicies : TPML_TAGGED_POLICY , pub actData : TPML_ACT_DATA , pub vendor : TPM2B_MAX_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_CAPABILITIES"] [:: core :: mem :: size_of :: < TPMU_CAPABILITIES > () - 1028usize] ; ["Alignment of TPMU_CAPABILITIES"] [:: core :: mem :: align_of :: < TPMU_CAPABILITIES > () - 4usize] ; ["Offset of field: TPMU_CAPABILITIES::algorithms"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , algorithms) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::handles"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , handles) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::command"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , command) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::ppCommands"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , ppCommands) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::auditCommands"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , auditCommands) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::assignedPCR"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , assignedPCR) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::tpmProperties"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , tpmProperties) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::pcrProperties"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , pcrProperties) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::eccCurves"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , eccCurves) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::authPolicies"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , authPolicies) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::actData"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , actData) - 0usize] ; ["Offset of field: TPMU_CAPABILITIES::vendor"] [:: core :: mem :: offset_of ! (TPMU_CAPABILITIES , vendor) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_CAPABILITY_DATA { pub capability : TPM_CAP , pub data : TPMU_CAPABILITIES , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_CAPABILITY_DATA"] [:: core :: mem :: size_of :: < TPMS_CAPABILITY_DATA > () - 1032usize] ; ["Alignment of TPMS_CAPABILITY_DATA"] [:: core :: mem :: align_of :: < TPMS_CAPABILITY_DATA > () - 4usize] ; ["Offset of field: TPMS_CAPABILITY_DATA::capability"] [:: core :: mem :: offset_of ! (TPMS_CAPABILITY_DATA , capability) - 0usize] ; ["Offset of field: TPMS_CAPABILITY_DATA::data"] [:: core :: mem :: offset_of ! (TPMS_CAPABILITY_DATA , data) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_CLOCK_INFO { pub clock : UINT64 , pub resetCount : UINT32 , pub restartCount : UINT32 , pub safe : TPMI_YES_NO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_CLOCK_INFO"] [:: core :: mem :: size_of :: < TPMS_CLOCK_INFO > () - 24usize] ; ["Alignment of TPMS_CLOCK_INFO"] [:: core :: mem :: align_of :: < TPMS_CLOCK_INFO > () - 8usize] ; ["Offset of field: TPMS_CLOCK_INFO::clock"] [:: core :: mem :: offset_of ! (TPMS_CLOCK_INFO , clock) - 0usize] ; ["Offset of field: TPMS_CLOCK_INFO::resetCount"] [:: core :: mem :: offset_of ! (TPMS_CLOCK_INFO , resetCount) - 8usize] ; ["Offset of field: TPMS_CLOCK_INFO::restartCount"] [:: core :: mem :: offset_of ! (TPMS_CLOCK_INFO , restartCount) - 12usize] ; ["Offset of field: TPMS_CLOCK_INFO::safe"] [:: core :: mem :: offset_of ! (TPMS_CLOCK_INFO , safe) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_TIME_INFO { pub time : UINT64 , pub clockInfo : TPMS_CLOCK_INFO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_TIME_INFO"] [:: core :: mem :: size_of :: < TPMS_TIME_INFO > () - 32usize] ; ["Alignment of TPMS_TIME_INFO"] [:: core :: mem :: align_of :: < TPMS_TIME_INFO > () - 8usize] ; ["Offset of field: TPMS_TIME_INFO::time"] [:: core :: mem :: offset_of ! (TPMS_TIME_INFO , time) - 0usize] ; ["Offset of field: TPMS_TIME_INFO::clockInfo"] [:: core :: mem :: offset_of ! (TPMS_TIME_INFO , clockInfo) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_TIME_ATTEST_INFO { pub time : TPMS_TIME_INFO , pub firmwareVersion : UINT64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_TIME_ATTEST_INFO"] [:: core :: mem :: size_of :: < TPMS_TIME_ATTEST_INFO > () - 40usize] ; ["Alignment of TPMS_TIME_ATTEST_INFO"] [:: core :: mem :: align_of :: < TPMS_TIME_ATTEST_INFO > () - 8usize] ; ["Offset of field: TPMS_TIME_ATTEST_INFO::time"] [:: core :: mem :: offset_of ! (TPMS_TIME_ATTEST_INFO , time) - 0usize] ; ["Offset of field: TPMS_TIME_ATTEST_INFO::firmwareVersion"] [:: core :: mem :: offset_of ! (TPMS_TIME_ATTEST_INFO , firmwareVersion) - 32usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_CERTIFY_INFO { pub name : TPM2B_NAME , pub qualifiedName : TPM2B_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_CERTIFY_INFO"] [:: core :: mem :: size_of :: < TPMS_CERTIFY_INFO > () - 140usize] ; ["Alignment of TPMS_CERTIFY_INFO"] [:: core :: mem :: align_of :: < TPMS_CERTIFY_INFO > () - 2usize] ; ["Offset of field: TPMS_CERTIFY_INFO::name"] [:: core :: mem :: offset_of ! (TPMS_CERTIFY_INFO , name) - 0usize] ; ["Offset of field: TPMS_CERTIFY_INFO::qualifiedName"] [:: core :: mem :: offset_of ! (TPMS_CERTIFY_INFO , qualifiedName) - 70usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_QUOTE_INFO { pub pcrSelect : TPML_PCR_SELECTION , pub pcrDigest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_QUOTE_INFO"] [:: core :: mem :: size_of :: < TPMS_QUOTE_INFO > () - 104usize] ; ["Alignment of TPMS_QUOTE_INFO"] [:: core :: mem :: align_of :: < TPMS_QUOTE_INFO > () - 4usize] ; ["Offset of field: TPMS_QUOTE_INFO::pcrSelect"] [:: core :: mem :: offset_of ! (TPMS_QUOTE_INFO , pcrSelect) - 0usize] ; ["Offset of field: TPMS_QUOTE_INFO::pcrDigest"] [:: core :: mem :: offset_of ! (TPMS_QUOTE_INFO , pcrDigest) - 36usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_COMMAND_AUDIT_INFO { pub auditCounter : UINT64 , pub digestAlg : TPM_ALG_ID , pub auditDigest : TPM2B_DIGEST , pub commandDigest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_COMMAND_AUDIT_INFO"] [:: core :: mem :: size_of :: < TPMS_COMMAND_AUDIT_INFO > () - 144usize] ; ["Alignment of TPMS_COMMAND_AUDIT_INFO"] [:: core :: mem :: align_of :: < TPMS_COMMAND_AUDIT_INFO > () - 8usize] ; ["Offset of field: TPMS_COMMAND_AUDIT_INFO::auditCounter"] [:: core :: mem :: offset_of ! (TPMS_COMMAND_AUDIT_INFO , auditCounter) - 0usize] ; ["Offset of field: TPMS_COMMAND_AUDIT_INFO::digestAlg"] [:: core :: mem :: offset_of ! (TPMS_COMMAND_AUDIT_INFO , digestAlg) - 8usize] ; ["Offset of field: TPMS_COMMAND_AUDIT_INFO::auditDigest"] [:: core :: mem :: offset_of ! (TPMS_COMMAND_AUDIT_INFO , auditDigest) - 10usize] ; ["Offset of field: TPMS_COMMAND_AUDIT_INFO::commandDigest"] [:: core :: mem :: offset_of ! (TPMS_COMMAND_AUDIT_INFO , commandDigest) - 76usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_SESSION_AUDIT_INFO { pub exclusiveSession : TPMI_YES_NO , pub sessionDigest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_SESSION_AUDIT_INFO"] [:: core :: mem :: size_of :: < TPMS_SESSION_AUDIT_INFO > () - 68usize] ; ["Alignment of TPMS_SESSION_AUDIT_INFO"] [:: core :: mem :: align_of :: < TPMS_SESSION_AUDIT_INFO > () - 2usize] ; ["Offset of field: TPMS_SESSION_AUDIT_INFO::exclusiveSession"] [:: core :: mem :: offset_of ! (TPMS_SESSION_AUDIT_INFO , exclusiveSession) - 0usize] ; ["Offset of field: TPMS_SESSION_AUDIT_INFO::sessionDigest"] [:: core :: mem :: offset_of ! (TPMS_SESSION_AUDIT_INFO , sessionDigest) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_CREATION_INFO { pub objectName : TPM2B_NAME , pub creationHash : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_CREATION_INFO"] [:: core :: mem :: size_of :: < TPMS_CREATION_INFO > () - 136usize] ; ["Alignment of TPMS_CREATION_INFO"] [:: core :: mem :: align_of :: < TPMS_CREATION_INFO > () - 2usize] ; ["Offset of field: TPMS_CREATION_INFO::objectName"] [:: core :: mem :: offset_of ! (TPMS_CREATION_INFO , objectName) - 0usize] ; ["Offset of field: TPMS_CREATION_INFO::creationHash"] [:: core :: mem :: offset_of ! (TPMS_CREATION_INFO , creationHash) - 70usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_NV_CERTIFY_INFO { pub indexName : TPM2B_NAME , pub offset : UINT16 , pub nvContents : TPM2B_MAX_NV_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_NV_CERTIFY_INFO"] [:: core :: mem :: size_of :: < TPMS_NV_CERTIFY_INFO > () - 842usize] ; ["Alignment of TPMS_NV_CERTIFY_INFO"] [:: core :: mem :: align_of :: < TPMS_NV_CERTIFY_INFO > () - 2usize] ; ["Offset of field: TPMS_NV_CERTIFY_INFO::indexName"] [:: core :: mem :: offset_of ! (TPMS_NV_CERTIFY_INFO , indexName) - 0usize] ; ["Offset of field: TPMS_NV_CERTIFY_INFO::offset"] [:: core :: mem :: offset_of ! (TPMS_NV_CERTIFY_INFO , offset) - 70usize] ; ["Offset of field: TPMS_NV_CERTIFY_INFO::nvContents"] [:: core :: mem :: offset_of ! (TPMS_NV_CERTIFY_INFO , nvContents) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_NV_DIGEST_CERTIFY_INFO { pub indexName : TPM2B_NAME , pub nvDigest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_NV_DIGEST_CERTIFY_INFO"] [:: core :: mem :: size_of :: < TPMS_NV_DIGEST_CERTIFY_INFO > () - 136usize] ; ["Alignment of TPMS_NV_DIGEST_CERTIFY_INFO"] [:: core :: mem :: align_of :: < TPMS_NV_DIGEST_CERTIFY_INFO > () - 2usize] ; ["Offset of field: TPMS_NV_DIGEST_CERTIFY_INFO::indexName"] [:: core :: mem :: offset_of ! (TPMS_NV_DIGEST_CERTIFY_INFO , indexName) - 0usize] ; ["Offset of field: TPMS_NV_DIGEST_CERTIFY_INFO::nvDigest"] [:: core :: mem :: offset_of ! (TPMS_NV_DIGEST_CERTIFY_INFO , nvDigest) - 70usize] ; } ; pub type TPMI_ST_ATTEST = TPM_ST ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_ATTEST { pub certify : TPMS_CERTIFY_INFO , pub creation : TPMS_CREATION_INFO , pub quote : TPMS_QUOTE_INFO , pub commandAudit : TPMS_COMMAND_AUDIT_INFO , pub sessionAudit : TPMS_SESSION_AUDIT_INFO , pub time : TPMS_TIME_ATTEST_INFO , pub nv : TPMS_NV_CERTIFY_INFO , pub nvDigest : TPMS_NV_DIGEST_CERTIFY_INFO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_ATTEST"] [:: core :: mem :: size_of :: < TPMU_ATTEST > () - 848usize] ; ["Alignment of TPMU_ATTEST"] [:: core :: mem :: align_of :: < TPMU_ATTEST > () - 8usize] ; ["Offset of field: TPMU_ATTEST::certify"] [:: core :: mem :: offset_of ! (TPMU_ATTEST , certify) - 0usize] ; ["Offset of field: TPMU_ATTEST::creation"] [:: core :: mem :: offset_of ! (TPMU_ATTEST , creation) - 0usize] ; ["Offset of field: TPMU_ATTEST::quote"] [:: core :: mem :: offset_of ! (TPMU_ATTEST , quote) - 0usize] ; ["Offset of field: TPMU_ATTEST::commandAudit"] [:: core :: mem :: offset_of ! (TPMU_ATTEST , commandAudit) - 0usize] ; ["Offset of field: TPMU_ATTEST::sessionAudit"] [:: core :: mem :: offset_of ! (TPMU_ATTEST , sessionAudit) - 0usize] ; ["Offset of field: TPMU_ATTEST::time"] [:: core :: mem :: offset_of ! (TPMU_ATTEST , time) - 0usize] ; ["Offset of field: TPMU_ATTEST::nv"] [:: core :: mem :: offset_of ! (TPMU_ATTEST , nv) - 0usize] ; ["Offset of field: TPMU_ATTEST::nvDigest"] [:: core :: mem :: offset_of ! (TPMU_ATTEST , nvDigest) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_ATTEST { pub magic : TPM_GENERATED , pub type_ : TPMI_ST_ATTEST , pub qualifiedSigner : TPM2B_NAME , pub extraData : TPM2B_DATA , pub clockInfo : TPMS_CLOCK_INFO , pub firmwareVersion : UINT64 , pub attested : TPMU_ATTEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ATTEST"] [:: core :: mem :: size_of :: < TPMS_ATTEST > () - 1024usize] ; ["Alignment of TPMS_ATTEST"] [:: core :: mem :: align_of :: < TPMS_ATTEST > () - 8usize] ; ["Offset of field: TPMS_ATTEST::magic"] [:: core :: mem :: offset_of ! (TPMS_ATTEST , magic) - 0usize] ; ["Offset of field: TPMS_ATTEST::type_"] [:: core :: mem :: offset_of ! (TPMS_ATTEST , type_) - 4usize] ; ["Offset of field: TPMS_ATTEST::qualifiedSigner"] [:: core :: mem :: offset_of ! (TPMS_ATTEST , qualifiedSigner) - 6usize] ; ["Offset of field: TPMS_ATTEST::extraData"] [:: core :: mem :: offset_of ! (TPMS_ATTEST , extraData) - 76usize] ; ["Offset of field: TPMS_ATTEST::clockInfo"] [:: core :: mem :: offset_of ! (TPMS_ATTEST , clockInfo) - 144usize] ; ["Offset of field: TPMS_ATTEST::firmwareVersion"] [:: core :: mem :: offset_of ! (TPMS_ATTEST , firmwareVersion) - 168usize] ; ["Offset of field: TPMS_ATTEST::attested"] [:: core :: mem :: offset_of ! (TPMS_ATTEST , attested) - 176usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_ATTEST { pub size : UINT16 , pub attestationData : [BYTE ; 1024usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_ATTEST"] [:: core :: mem :: size_of :: < TPM2B_ATTEST > () - 1026usize] ; ["Alignment of TPM2B_ATTEST"] [:: core :: mem :: align_of :: < TPM2B_ATTEST > () - 2usize] ; ["Offset of field: TPM2B_ATTEST::size"] [:: core :: mem :: offset_of ! (TPM2B_ATTEST , size) - 0usize] ; ["Offset of field: TPM2B_ATTEST::attestationData"] [:: core :: mem :: offset_of ! (TPM2B_ATTEST , attestationData) - 2usize] ; } ; pub type TPMI_AES_KEY_BITS = TPM_KEY_BITS ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_SYM_KEY_BITS { pub aes : TPMI_AES_KEY_BITS , pub sym : TPM_KEY_BITS , pub xorr : TPMI_ALG_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_SYM_KEY_BITS"] [:: core :: mem :: size_of :: < TPMU_SYM_KEY_BITS > () - 2usize] ; ["Alignment of TPMU_SYM_KEY_BITS"] [:: core :: mem :: align_of :: < TPMU_SYM_KEY_BITS > () - 2usize] ; ["Offset of field: TPMU_SYM_KEY_BITS::aes"] [:: core :: mem :: offset_of ! (TPMU_SYM_KEY_BITS , aes) - 0usize] ; ["Offset of field: TPMU_SYM_KEY_BITS::sym"] [:: core :: mem :: offset_of ! (TPMU_SYM_KEY_BITS , sym) - 0usize] ; ["Offset of field: TPMU_SYM_KEY_BITS::xorr"] [:: core :: mem :: offset_of ! (TPMU_SYM_KEY_BITS , xorr) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_SYM_MODE { pub aes : TPMI_ALG_SYM_MODE , pub sym : TPMI_ALG_SYM_MODE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_SYM_MODE"] [:: core :: mem :: size_of :: < TPMU_SYM_MODE > () - 2usize] ; ["Alignment of TPMU_SYM_MODE"] [:: core :: mem :: align_of :: < TPMU_SYM_MODE > () - 2usize] ; ["Offset of field: TPMU_SYM_MODE::aes"] [:: core :: mem :: offset_of ! (TPMU_SYM_MODE , aes) - 0usize] ; ["Offset of field: TPMU_SYM_MODE::sym"] [:: core :: mem :: offset_of ! (TPMU_SYM_MODE , sym) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_SYM_DEF { pub algorithm : TPMI_ALG_SYM , pub keyBits : TPMU_SYM_KEY_BITS , pub mode : TPMU_SYM_MODE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_SYM_DEF"] [:: core :: mem :: size_of :: < TPMT_SYM_DEF > () - 6usize] ; ["Alignment of TPMT_SYM_DEF"] [:: core :: mem :: align_of :: < TPMT_SYM_DEF > () - 2usize] ; ["Offset of field: TPMT_SYM_DEF::algorithm"] [:: core :: mem :: offset_of ! (TPMT_SYM_DEF , algorithm) - 0usize] ; ["Offset of field: TPMT_SYM_DEF::keyBits"] [:: core :: mem :: offset_of ! (TPMT_SYM_DEF , keyBits) - 2usize] ; ["Offset of field: TPMT_SYM_DEF::mode"] [:: core :: mem :: offset_of ! (TPMT_SYM_DEF , mode) - 4usize] ; } ; pub type TPMT_SYM_DEF_OBJECT = TPMT_SYM_DEF ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_SYM_KEY { pub size : UINT16 , pub buffer : [BYTE ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_SYM_KEY"] [:: core :: mem :: size_of :: < TPM2B_SYM_KEY > () - 34usize] ; ["Alignment of TPM2B_SYM_KEY"] [:: core :: mem :: align_of :: < TPM2B_SYM_KEY > () - 2usize] ; ["Offset of field: TPM2B_SYM_KEY::size"] [:: core :: mem :: offset_of ! (TPM2B_SYM_KEY , size) - 0usize] ; ["Offset of field: TPM2B_SYM_KEY::buffer"] [:: core :: mem :: offset_of ! (TPM2B_SYM_KEY , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_SYMCIPHER_PARMS { pub sym : TPMT_SYM_DEF_OBJECT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_SYMCIPHER_PARMS"] [:: core :: mem :: size_of :: < TPMS_SYMCIPHER_PARMS > () - 6usize] ; ["Alignment of TPMS_SYMCIPHER_PARMS"] [:: core :: mem :: align_of :: < TPMS_SYMCIPHER_PARMS > () - 2usize] ; ["Offset of field: TPMS_SYMCIPHER_PARMS::sym"] [:: core :: mem :: offset_of ! (TPMS_SYMCIPHER_PARMS , sym) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_LABEL { pub size : UINT16 , pub buffer : [BYTE ; 32usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_LABEL"] [:: core :: mem :: size_of :: < TPM2B_LABEL > () - 34usize] ; ["Alignment of TPM2B_LABEL"] [:: core :: mem :: align_of :: < TPM2B_LABEL > () - 2usize] ; ["Offset of field: TPM2B_LABEL::size"] [:: core :: mem :: offset_of ! (TPM2B_LABEL , size) - 0usize] ; ["Offset of field: TPM2B_LABEL::buffer"] [:: core :: mem :: offset_of ! (TPM2B_LABEL , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_DERIVE { pub label : TPM2B_LABEL , pub context : TPM2B_LABEL , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_DERIVE"] [:: core :: mem :: size_of :: < TPMS_DERIVE > () - 68usize] ; ["Alignment of TPMS_DERIVE"] [:: core :: mem :: align_of :: < TPMS_DERIVE > () - 2usize] ; ["Offset of field: TPMS_DERIVE::label"] [:: core :: mem :: offset_of ! (TPMS_DERIVE , label) - 0usize] ; ["Offset of field: TPMS_DERIVE::context"] [:: core :: mem :: offset_of ! (TPMS_DERIVE , context) - 34usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_DERIVE { pub size : UINT16 , pub buffer : [BYTE ; 68usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_DERIVE"] [:: core :: mem :: size_of :: < TPM2B_DERIVE > () - 70usize] ; ["Alignment of TPM2B_DERIVE"] [:: core :: mem :: align_of :: < TPM2B_DERIVE > () - 2usize] ; ["Offset of field: TPM2B_DERIVE::size"] [:: core :: mem :: offset_of ! (TPM2B_DERIVE , size) - 0usize] ; ["Offset of field: TPM2B_DERIVE::buffer"] [:: core :: mem :: offset_of ! (TPM2B_DERIVE , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_SENSITIVE_CREATE { pub create : [BYTE ; 128usize] , pub derive : TPMS_DERIVE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_SENSITIVE_CREATE"] [:: core :: mem :: size_of :: < TPMU_SENSITIVE_CREATE > () - 128usize] ; ["Alignment of TPMU_SENSITIVE_CREATE"] [:: core :: mem :: align_of :: < TPMU_SENSITIVE_CREATE > () - 2usize] ; ["Offset of field: TPMU_SENSITIVE_CREATE::create"] [:: core :: mem :: offset_of ! (TPMU_SENSITIVE_CREATE , create) - 0usize] ; ["Offset of field: TPMU_SENSITIVE_CREATE::derive"] [:: core :: mem :: offset_of ! (TPMU_SENSITIVE_CREATE , derive) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_SENSITIVE_DATA { pub size : UINT16 , pub buffer : [BYTE ; 128usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_SENSITIVE_DATA"] [:: core :: mem :: size_of :: < TPM2B_SENSITIVE_DATA > () - 130usize] ; ["Alignment of TPM2B_SENSITIVE_DATA"] [:: core :: mem :: align_of :: < TPM2B_SENSITIVE_DATA > () - 2usize] ; ["Offset of field: TPM2B_SENSITIVE_DATA::size"] [:: core :: mem :: offset_of ! (TPM2B_SENSITIVE_DATA , size) - 0usize] ; ["Offset of field: TPM2B_SENSITIVE_DATA::buffer"] [:: core :: mem :: offset_of ! (TPM2B_SENSITIVE_DATA , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_SENSITIVE_CREATE { pub userAuth : TPM2B_AUTH , pub data : TPM2B_SENSITIVE_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_SENSITIVE_CREATE"] [:: core :: mem :: size_of :: < TPMS_SENSITIVE_CREATE > () - 196usize] ; ["Alignment of TPMS_SENSITIVE_CREATE"] [:: core :: mem :: align_of :: < TPMS_SENSITIVE_CREATE > () - 2usize] ; ["Offset of field: TPMS_SENSITIVE_CREATE::userAuth"] [:: core :: mem :: offset_of ! (TPMS_SENSITIVE_CREATE , userAuth) - 0usize] ; ["Offset of field: TPMS_SENSITIVE_CREATE::data"] [:: core :: mem :: offset_of ! (TPMS_SENSITIVE_CREATE , data) - 66usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_SENSITIVE_CREATE { pub size : UINT16 , pub sensitive : TPMS_SENSITIVE_CREATE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_SENSITIVE_CREATE"] [:: core :: mem :: size_of :: < TPM2B_SENSITIVE_CREATE > () - 198usize] ; ["Alignment of TPM2B_SENSITIVE_CREATE"] [:: core :: mem :: align_of :: < TPM2B_SENSITIVE_CREATE > () - 2usize] ; ["Offset of field: TPM2B_SENSITIVE_CREATE::size"] [:: core :: mem :: offset_of ! (TPM2B_SENSITIVE_CREATE , size) - 0usize] ; ["Offset of field: TPM2B_SENSITIVE_CREATE::sensitive"] [:: core :: mem :: offset_of ! (TPM2B_SENSITIVE_CREATE , sensitive) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_SCHEME_HASH { pub hashAlg : TPMI_ALG_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_SCHEME_HASH"] [:: core :: mem :: size_of :: < TPMS_SCHEME_HASH > () - 2usize] ; ["Alignment of TPMS_SCHEME_HASH"] [:: core :: mem :: align_of :: < TPMS_SCHEME_HASH > () - 2usize] ; ["Offset of field: TPMS_SCHEME_HASH::hashAlg"] [:: core :: mem :: offset_of ! (TPMS_SCHEME_HASH , hashAlg) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_SCHEME_ECDAA { pub hashAlg : TPMI_ALG_HASH , pub count : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_SCHEME_ECDAA"] [:: core :: mem :: size_of :: < TPMS_SCHEME_ECDAA > () - 4usize] ; ["Alignment of TPMS_SCHEME_ECDAA"] [:: core :: mem :: align_of :: < TPMS_SCHEME_ECDAA > () - 2usize] ; ["Offset of field: TPMS_SCHEME_ECDAA::hashAlg"] [:: core :: mem :: offset_of ! (TPMS_SCHEME_ECDAA , hashAlg) - 0usize] ; ["Offset of field: TPMS_SCHEME_ECDAA::count"] [:: core :: mem :: offset_of ! (TPMS_SCHEME_ECDAA , count) - 2usize] ; } ; pub type TPMI_ALG_KEYEDHASH_SCHEME = TPM_ALG_ID ; pub type TPMS_SCHEME_HMAC = TPMS_SCHEME_HASH ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_SCHEME_XOR { pub hashAlg : TPMI_ALG_HASH , pub kdf : TPMI_ALG_KDF , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_SCHEME_XOR"] [:: core :: mem :: size_of :: < TPMS_SCHEME_XOR > () - 4usize] ; ["Alignment of TPMS_SCHEME_XOR"] [:: core :: mem :: align_of :: < TPMS_SCHEME_XOR > () - 2usize] ; ["Offset of field: TPMS_SCHEME_XOR::hashAlg"] [:: core :: mem :: offset_of ! (TPMS_SCHEME_XOR , hashAlg) - 0usize] ; ["Offset of field: TPMS_SCHEME_XOR::kdf"] [:: core :: mem :: offset_of ! (TPMS_SCHEME_XOR , kdf) - 2usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_SCHEME_KEYEDHASH { pub hmac : TPMS_SCHEME_HMAC , pub xorr : TPMS_SCHEME_XOR , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_SCHEME_KEYEDHASH"] [:: core :: mem :: size_of :: < TPMU_SCHEME_KEYEDHASH > () - 4usize] ; ["Alignment of TPMU_SCHEME_KEYEDHASH"] [:: core :: mem :: align_of :: < TPMU_SCHEME_KEYEDHASH > () - 2usize] ; ["Offset of field: TPMU_SCHEME_KEYEDHASH::hmac"] [:: core :: mem :: offset_of ! (TPMU_SCHEME_KEYEDHASH , hmac) - 0usize] ; ["Offset of field: TPMU_SCHEME_KEYEDHASH::xorr"] [:: core :: mem :: offset_of ! (TPMU_SCHEME_KEYEDHASH , xorr) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_KEYEDHASH_SCHEME { pub scheme : TPMI_ALG_KEYEDHASH_SCHEME , pub details : TPMU_SCHEME_KEYEDHASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_KEYEDHASH_SCHEME"] [:: core :: mem :: size_of :: < TPMT_KEYEDHASH_SCHEME > () - 6usize] ; ["Alignment of TPMT_KEYEDHASH_SCHEME"] [:: core :: mem :: align_of :: < TPMT_KEYEDHASH_SCHEME > () - 2usize] ; ["Offset of field: TPMT_KEYEDHASH_SCHEME::scheme"] [:: core :: mem :: offset_of ! (TPMT_KEYEDHASH_SCHEME , scheme) - 0usize] ; ["Offset of field: TPMT_KEYEDHASH_SCHEME::details"] [:: core :: mem :: offset_of ! (TPMT_KEYEDHASH_SCHEME , details) - 2usize] ; } ; pub type TPMS_SIG_SCHEME_RSASSA = TPMS_SCHEME_HASH ; pub type TPMS_SIG_SCHEME_RSAPSS = TPMS_SCHEME_HASH ; pub type TPMS_SIG_SCHEME_ECDSA = TPMS_SCHEME_HASH ; pub type TPMS_SIG_SCHEME_ECDAA = TPMS_SCHEME_ECDAA ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_SIG_SCHEME { pub rsassa : TPMS_SIG_SCHEME_RSASSA , pub rsapss : TPMS_SIG_SCHEME_RSAPSS , pub ecdsa : TPMS_SIG_SCHEME_ECDSA , pub ecdaa : TPMS_SIG_SCHEME_ECDAA , pub hmac : TPMS_SCHEME_HMAC , pub any : TPMS_SCHEME_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_SIG_SCHEME"] [:: core :: mem :: size_of :: < TPMU_SIG_SCHEME > () - 4usize] ; ["Alignment of TPMU_SIG_SCHEME"] [:: core :: mem :: align_of :: < TPMU_SIG_SCHEME > () - 2usize] ; ["Offset of field: TPMU_SIG_SCHEME::rsassa"] [:: core :: mem :: offset_of ! (TPMU_SIG_SCHEME , rsassa) - 0usize] ; ["Offset of field: TPMU_SIG_SCHEME::rsapss"] [:: core :: mem :: offset_of ! (TPMU_SIG_SCHEME , rsapss) - 0usize] ; ["Offset of field: TPMU_SIG_SCHEME::ecdsa"] [:: core :: mem :: offset_of ! (TPMU_SIG_SCHEME , ecdsa) - 0usize] ; ["Offset of field: TPMU_SIG_SCHEME::ecdaa"] [:: core :: mem :: offset_of ! (TPMU_SIG_SCHEME , ecdaa) - 0usize] ; ["Offset of field: TPMU_SIG_SCHEME::hmac"] [:: core :: mem :: offset_of ! (TPMU_SIG_SCHEME , hmac) - 0usize] ; ["Offset of field: TPMU_SIG_SCHEME::any"] [:: core :: mem :: offset_of ! (TPMU_SIG_SCHEME , any) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_SIG_SCHEME { pub scheme : TPMI_ALG_SIG_SCHEME , pub details : TPMU_SIG_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_SIG_SCHEME"] [:: core :: mem :: size_of :: < TPMT_SIG_SCHEME > () - 6usize] ; ["Alignment of TPMT_SIG_SCHEME"] [:: core :: mem :: align_of :: < TPMT_SIG_SCHEME > () - 2usize] ; ["Offset of field: TPMT_SIG_SCHEME::scheme"] [:: core :: mem :: offset_of ! (TPMT_SIG_SCHEME , scheme) - 0usize] ; ["Offset of field: TPMT_SIG_SCHEME::details"] [:: core :: mem :: offset_of ! (TPMT_SIG_SCHEME , details) - 2usize] ; } ; pub type TPMS_ENC_SCHEME_OAEP = TPMS_SCHEME_HASH ; pub type TPMS_KEY_SCHEME_ECDH = TPMS_SCHEME_HASH ; pub type TPMS_KEY_SCHEME_ECMQV = TPMS_SCHEME_HASH ; pub type TPMS_SCHEME_MGF1 = TPMS_SCHEME_HASH ; pub type TPMS_SCHEME_KDF1_SP800_56A = TPMS_SCHEME_HASH ; pub type TPMS_SCHEME_KDF2 = TPMS_SCHEME_HASH ; pub type TPMS_SCHEME_KDF1_SP800_108 = TPMS_SCHEME_HASH ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_KDF_SCHEME { pub mgf1 : TPMS_SCHEME_MGF1 , pub kdf1_sp800_56a : TPMS_SCHEME_KDF1_SP800_56A , pub kdf2 : TPMS_SCHEME_KDF2 , pub kdf1_sp800_108 : TPMS_SCHEME_KDF1_SP800_108 , pub any : TPMS_SCHEME_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_KDF_SCHEME"] [:: core :: mem :: size_of :: < TPMU_KDF_SCHEME > () - 2usize] ; ["Alignment of TPMU_KDF_SCHEME"] [:: core :: mem :: align_of :: < TPMU_KDF_SCHEME > () - 2usize] ; ["Offset of field: TPMU_KDF_SCHEME::mgf1"] [:: core :: mem :: offset_of ! (TPMU_KDF_SCHEME , mgf1) - 0usize] ; ["Offset of field: TPMU_KDF_SCHEME::kdf1_sp800_56a"] [:: core :: mem :: offset_of ! (TPMU_KDF_SCHEME , kdf1_sp800_56a) - 0usize] ; ["Offset of field: TPMU_KDF_SCHEME::kdf2"] [:: core :: mem :: offset_of ! (TPMU_KDF_SCHEME , kdf2) - 0usize] ; ["Offset of field: TPMU_KDF_SCHEME::kdf1_sp800_108"] [:: core :: mem :: offset_of ! (TPMU_KDF_SCHEME , kdf1_sp800_108) - 0usize] ; ["Offset of field: TPMU_KDF_SCHEME::any"] [:: core :: mem :: offset_of ! (TPMU_KDF_SCHEME , any) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_KDF_SCHEME { pub scheme : TPMI_ALG_KDF , pub details : TPMU_KDF_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_KDF_SCHEME"] [:: core :: mem :: size_of :: < TPMT_KDF_SCHEME > () - 4usize] ; ["Alignment of TPMT_KDF_SCHEME"] [:: core :: mem :: align_of :: < TPMT_KDF_SCHEME > () - 2usize] ; ["Offset of field: TPMT_KDF_SCHEME::scheme"] [:: core :: mem :: offset_of ! (TPMT_KDF_SCHEME , scheme) - 0usize] ; ["Offset of field: TPMT_KDF_SCHEME::details"] [:: core :: mem :: offset_of ! (TPMT_KDF_SCHEME , details) - 2usize] ; } ; pub type TPMI_ALG_ASYM_SCHEME = TPM_ALG_ID ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_ASYM_SCHEME { pub ecdh : TPMS_KEY_SCHEME_ECDH , pub rsassa : TPMS_SIG_SCHEME_RSASSA , pub rsapss : TPMS_SIG_SCHEME_RSAPSS , pub ecdsa : TPMS_SIG_SCHEME_ECDSA , pub oaep : TPMS_ENC_SCHEME_OAEP , pub anySig : TPMS_SCHEME_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_ASYM_SCHEME"] [:: core :: mem :: size_of :: < TPMU_ASYM_SCHEME > () - 2usize] ; ["Alignment of TPMU_ASYM_SCHEME"] [:: core :: mem :: align_of :: < TPMU_ASYM_SCHEME > () - 2usize] ; ["Offset of field: TPMU_ASYM_SCHEME::ecdh"] [:: core :: mem :: offset_of ! (TPMU_ASYM_SCHEME , ecdh) - 0usize] ; ["Offset of field: TPMU_ASYM_SCHEME::rsassa"] [:: core :: mem :: offset_of ! (TPMU_ASYM_SCHEME , rsassa) - 0usize] ; ["Offset of field: TPMU_ASYM_SCHEME::rsapss"] [:: core :: mem :: offset_of ! (TPMU_ASYM_SCHEME , rsapss) - 0usize] ; ["Offset of field: TPMU_ASYM_SCHEME::ecdsa"] [:: core :: mem :: offset_of ! (TPMU_ASYM_SCHEME , ecdsa) - 0usize] ; ["Offset of field: TPMU_ASYM_SCHEME::oaep"] [:: core :: mem :: offset_of ! (TPMU_ASYM_SCHEME , oaep) - 0usize] ; ["Offset of field: TPMU_ASYM_SCHEME::anySig"] [:: core :: mem :: offset_of ! (TPMU_ASYM_SCHEME , anySig) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_ASYM_SCHEME { pub scheme : TPMI_ALG_ASYM_SCHEME , pub details : TPMU_ASYM_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_ASYM_SCHEME"] [:: core :: mem :: size_of :: < TPMT_ASYM_SCHEME > () - 4usize] ; ["Alignment of TPMT_ASYM_SCHEME"] [:: core :: mem :: align_of :: < TPMT_ASYM_SCHEME > () - 2usize] ; ["Offset of field: TPMT_ASYM_SCHEME::scheme"] [:: core :: mem :: offset_of ! (TPMT_ASYM_SCHEME , scheme) - 0usize] ; ["Offset of field: TPMT_ASYM_SCHEME::details"] [:: core :: mem :: offset_of ! (TPMT_ASYM_SCHEME , details) - 2usize] ; } ; pub type TPMI_ALG_RSA_SCHEME = TPM_ALG_ID ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_RSA_SCHEME { pub scheme : TPMI_ALG_RSA_SCHEME , pub details : TPMU_ASYM_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_RSA_SCHEME"] [:: core :: mem :: size_of :: < TPMT_RSA_SCHEME > () - 4usize] ; ["Alignment of TPMT_RSA_SCHEME"] [:: core :: mem :: align_of :: < TPMT_RSA_SCHEME > () - 2usize] ; ["Offset of field: TPMT_RSA_SCHEME::scheme"] [:: core :: mem :: offset_of ! (TPMT_RSA_SCHEME , scheme) - 0usize] ; ["Offset of field: TPMT_RSA_SCHEME::details"] [:: core :: mem :: offset_of ! (TPMT_RSA_SCHEME , details) - 2usize] ; } ; pub type TPMI_ALG_RSA_DECRYPT = TPM_ALG_ID ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_RSA_DECRYPT { pub scheme : TPMI_ALG_RSA_DECRYPT , pub details : TPMU_ASYM_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_RSA_DECRYPT"] [:: core :: mem :: size_of :: < TPMT_RSA_DECRYPT > () - 4usize] ; ["Alignment of TPMT_RSA_DECRYPT"] [:: core :: mem :: align_of :: < TPMT_RSA_DECRYPT > () - 2usize] ; ["Offset of field: TPMT_RSA_DECRYPT::scheme"] [:: core :: mem :: offset_of ! (TPMT_RSA_DECRYPT , scheme) - 0usize] ; ["Offset of field: TPMT_RSA_DECRYPT::details"] [:: core :: mem :: offset_of ! (TPMT_RSA_DECRYPT , details) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_PUBLIC_KEY_RSA { pub size : UINT16 , pub buffer : [BYTE ; 512usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_PUBLIC_KEY_RSA"] [:: core :: mem :: size_of :: < TPM2B_PUBLIC_KEY_RSA > () - 514usize] ; ["Alignment of TPM2B_PUBLIC_KEY_RSA"] [:: core :: mem :: align_of :: < TPM2B_PUBLIC_KEY_RSA > () - 2usize] ; ["Offset of field: TPM2B_PUBLIC_KEY_RSA::size"] [:: core :: mem :: offset_of ! (TPM2B_PUBLIC_KEY_RSA , size) - 0usize] ; ["Offset of field: TPM2B_PUBLIC_KEY_RSA::buffer"] [:: core :: mem :: offset_of ! (TPM2B_PUBLIC_KEY_RSA , buffer) - 2usize] ; } ; pub type TPMI_RSA_KEY_BITS = TPM_KEY_BITS ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_PRIVATE_KEY_RSA { pub size : UINT16 , pub buffer : [BYTE ; 256usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_PRIVATE_KEY_RSA"] [:: core :: mem :: size_of :: < TPM2B_PRIVATE_KEY_RSA > () - 258usize] ; ["Alignment of TPM2B_PRIVATE_KEY_RSA"] [:: core :: mem :: align_of :: < TPM2B_PRIVATE_KEY_RSA > () - 2usize] ; ["Offset of field: TPM2B_PRIVATE_KEY_RSA::size"] [:: core :: mem :: offset_of ! (TPM2B_PRIVATE_KEY_RSA , size) - 0usize] ; ["Offset of field: TPM2B_PRIVATE_KEY_RSA::buffer"] [:: core :: mem :: offset_of ! (TPM2B_PRIVATE_KEY_RSA , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_ECC_PARAMETER { pub size : UINT16 , pub buffer : [BYTE ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_ECC_PARAMETER"] [:: core :: mem :: size_of :: < TPM2B_ECC_PARAMETER > () - 68usize] ; ["Alignment of TPM2B_ECC_PARAMETER"] [:: core :: mem :: align_of :: < TPM2B_ECC_PARAMETER > () - 2usize] ; ["Offset of field: TPM2B_ECC_PARAMETER::size"] [:: core :: mem :: offset_of ! (TPM2B_ECC_PARAMETER , size) - 0usize] ; ["Offset of field: TPM2B_ECC_PARAMETER::buffer"] [:: core :: mem :: offset_of ! (TPM2B_ECC_PARAMETER , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_ECC_POINT { pub x : TPM2B_ECC_PARAMETER , pub y : TPM2B_ECC_PARAMETER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ECC_POINT"] [:: core :: mem :: size_of :: < TPMS_ECC_POINT > () - 136usize] ; ["Alignment of TPMS_ECC_POINT"] [:: core :: mem :: align_of :: < TPMS_ECC_POINT > () - 2usize] ; ["Offset of field: TPMS_ECC_POINT::x"] [:: core :: mem :: offset_of ! (TPMS_ECC_POINT , x) - 0usize] ; ["Offset of field: TPMS_ECC_POINT::y"] [:: core :: mem :: offset_of ! (TPMS_ECC_POINT , y) - 68usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_ECC_POINT { pub size : UINT16 , pub point : TPMS_ECC_POINT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_ECC_POINT"] [:: core :: mem :: size_of :: < TPM2B_ECC_POINT > () - 138usize] ; ["Alignment of TPM2B_ECC_POINT"] [:: core :: mem :: align_of :: < TPM2B_ECC_POINT > () - 2usize] ; ["Offset of field: TPM2B_ECC_POINT::size"] [:: core :: mem :: offset_of ! (TPM2B_ECC_POINT , size) - 0usize] ; ["Offset of field: TPM2B_ECC_POINT::point"] [:: core :: mem :: offset_of ! (TPM2B_ECC_POINT , point) - 2usize] ; } ; pub type TPMI_ALG_ECC_SCHEME = TPM_ALG_ID ; pub type TPMI_ECC_CURVE = TPM_ECC_CURVE ; pub type TPMT_ECC_SCHEME = TPMT_SIG_SCHEME ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_ALGORITHM_DETAIL_ECC { pub curveID : TPM_ECC_CURVE , pub keySize : UINT16 , pub kdf : TPMT_KDF_SCHEME , pub sign : TPMT_ECC_SCHEME , pub p : TPM2B_ECC_PARAMETER , pub a : TPM2B_ECC_PARAMETER , pub b : TPM2B_ECC_PARAMETER , pub gX : TPM2B_ECC_PARAMETER , pub gY : TPM2B_ECC_PARAMETER , pub n : TPM2B_ECC_PARAMETER , pub h : TPM2B_ECC_PARAMETER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ALGORITHM_DETAIL_ECC"] [:: core :: mem :: size_of :: < TPMS_ALGORITHM_DETAIL_ECC > () - 490usize] ; ["Alignment of TPMS_ALGORITHM_DETAIL_ECC"] [:: core :: mem :: align_of :: < TPMS_ALGORITHM_DETAIL_ECC > () - 2usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::curveID"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , curveID) - 0usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::keySize"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , keySize) - 2usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::kdf"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , kdf) - 4usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::sign"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , sign) - 8usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::p"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , p) - 14usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::a"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , a) - 82usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::b"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , b) - 150usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::gX"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , gX) - 218usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::gY"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , gY) - 286usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::n"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , n) - 354usize] ; ["Offset of field: TPMS_ALGORITHM_DETAIL_ECC::h"] [:: core :: mem :: offset_of ! (TPMS_ALGORITHM_DETAIL_ECC , h) - 422usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_SIGNATURE_RSA { pub hash : TPMI_ALG_HASH , pub sig : TPM2B_PUBLIC_KEY_RSA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_SIGNATURE_RSA"] [:: core :: mem :: size_of :: < TPMS_SIGNATURE_RSA > () - 516usize] ; ["Alignment of TPMS_SIGNATURE_RSA"] [:: core :: mem :: align_of :: < TPMS_SIGNATURE_RSA > () - 2usize] ; ["Offset of field: TPMS_SIGNATURE_RSA::hash"] [:: core :: mem :: offset_of ! (TPMS_SIGNATURE_RSA , hash) - 0usize] ; ["Offset of field: TPMS_SIGNATURE_RSA::sig"] [:: core :: mem :: offset_of ! (TPMS_SIGNATURE_RSA , sig) - 2usize] ; } ; pub type TPMS_SIGNATURE_RSASSA = TPMS_SIGNATURE_RSA ; pub type TPMS_SIGNATURE_RSAPSS = TPMS_SIGNATURE_RSA ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_SIGNATURE_ECC { pub hash : TPMI_ALG_HASH , pub signatureR : TPM2B_ECC_PARAMETER , pub signatureS : TPM2B_ECC_PARAMETER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_SIGNATURE_ECC"] [:: core :: mem :: size_of :: < TPMS_SIGNATURE_ECC > () - 138usize] ; ["Alignment of TPMS_SIGNATURE_ECC"] [:: core :: mem :: align_of :: < TPMS_SIGNATURE_ECC > () - 2usize] ; ["Offset of field: TPMS_SIGNATURE_ECC::hash"] [:: core :: mem :: offset_of ! (TPMS_SIGNATURE_ECC , hash) - 0usize] ; ["Offset of field: TPMS_SIGNATURE_ECC::signatureR"] [:: core :: mem :: offset_of ! (TPMS_SIGNATURE_ECC , signatureR) - 2usize] ; ["Offset of field: TPMS_SIGNATURE_ECC::signatureS"] [:: core :: mem :: offset_of ! (TPMS_SIGNATURE_ECC , signatureS) - 70usize] ; } ; pub type TPMS_SIGNATURE_ECDSA = TPMS_SIGNATURE_ECC ; pub type TPMS_SIGNATURE_ECDAA = TPMS_SIGNATURE_ECC ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_SIGNATURE { pub ecdsa : TPMS_SIGNATURE_ECDSA , pub ecdaa : TPMS_SIGNATURE_ECDAA , pub rsassa : TPMS_SIGNATURE_RSASSA , pub rsapss : TPMS_SIGNATURE_RSAPSS , pub hmac : TPMT_HA , pub any : TPMS_SCHEME_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_SIGNATURE"] [:: core :: mem :: size_of :: < TPMU_SIGNATURE > () - 516usize] ; ["Alignment of TPMU_SIGNATURE"] [:: core :: mem :: align_of :: < TPMU_SIGNATURE > () - 2usize] ; ["Offset of field: TPMU_SIGNATURE::ecdsa"] [:: core :: mem :: offset_of ! (TPMU_SIGNATURE , ecdsa) - 0usize] ; ["Offset of field: TPMU_SIGNATURE::ecdaa"] [:: core :: mem :: offset_of ! (TPMU_SIGNATURE , ecdaa) - 0usize] ; ["Offset of field: TPMU_SIGNATURE::rsassa"] [:: core :: mem :: offset_of ! (TPMU_SIGNATURE , rsassa) - 0usize] ; ["Offset of field: TPMU_SIGNATURE::rsapss"] [:: core :: mem :: offset_of ! (TPMU_SIGNATURE , rsapss) - 0usize] ; ["Offset of field: TPMU_SIGNATURE::hmac"] [:: core :: mem :: offset_of ! (TPMU_SIGNATURE , hmac) - 0usize] ; ["Offset of field: TPMU_SIGNATURE::any"] [:: core :: mem :: offset_of ! (TPMU_SIGNATURE , any) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_SIGNATURE { pub sigAlg : TPMI_ALG_SIG_SCHEME , pub signature : TPMU_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_SIGNATURE"] [:: core :: mem :: size_of :: < TPMT_SIGNATURE > () - 518usize] ; ["Alignment of TPMT_SIGNATURE"] [:: core :: mem :: align_of :: < TPMT_SIGNATURE > () - 2usize] ; ["Offset of field: TPMT_SIGNATURE::sigAlg"] [:: core :: mem :: offset_of ! (TPMT_SIGNATURE , sigAlg) - 0usize] ; ["Offset of field: TPMT_SIGNATURE::signature"] [:: core :: mem :: offset_of ! (TPMT_SIGNATURE , signature) - 2usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_ENCRYPTED_SECRET { pub ecc : [BYTE ; 136usize] , pub rsa : [BYTE ; 512usize] , pub symmetric : [BYTE ; 66usize] , pub keyedHash : [BYTE ; 66usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_ENCRYPTED_SECRET"] [:: core :: mem :: size_of :: < TPMU_ENCRYPTED_SECRET > () - 512usize] ; ["Alignment of TPMU_ENCRYPTED_SECRET"] [:: core :: mem :: align_of :: < TPMU_ENCRYPTED_SECRET > () - 1usize] ; ["Offset of field: TPMU_ENCRYPTED_SECRET::ecc"] [:: core :: mem :: offset_of ! (TPMU_ENCRYPTED_SECRET , ecc) - 0usize] ; ["Offset of field: TPMU_ENCRYPTED_SECRET::rsa"] [:: core :: mem :: offset_of ! (TPMU_ENCRYPTED_SECRET , rsa) - 0usize] ; ["Offset of field: TPMU_ENCRYPTED_SECRET::symmetric"] [:: core :: mem :: offset_of ! (TPMU_ENCRYPTED_SECRET , symmetric) - 0usize] ; ["Offset of field: TPMU_ENCRYPTED_SECRET::keyedHash"] [:: core :: mem :: offset_of ! (TPMU_ENCRYPTED_SECRET , keyedHash) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_ENCRYPTED_SECRET { pub size : UINT16 , pub secret : [BYTE ; 512usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_ENCRYPTED_SECRET"] [:: core :: mem :: size_of :: < TPM2B_ENCRYPTED_SECRET > () - 514usize] ; ["Alignment of TPM2B_ENCRYPTED_SECRET"] [:: core :: mem :: align_of :: < TPM2B_ENCRYPTED_SECRET > () - 2usize] ; ["Offset of field: TPM2B_ENCRYPTED_SECRET::size"] [:: core :: mem :: offset_of ! (TPM2B_ENCRYPTED_SECRET , size) - 0usize] ; ["Offset of field: TPM2B_ENCRYPTED_SECRET::secret"] [:: core :: mem :: offset_of ! (TPM2B_ENCRYPTED_SECRET , secret) - 2usize] ; } ; pub type TPMI_ALG_PUBLIC = TPM_ALG_ID ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_PUBLIC_ID { pub keyedHash : TPM2B_DIGEST , pub sym : TPM2B_DIGEST , pub rsa : TPM2B_PUBLIC_KEY_RSA , pub ecc : TPMS_ECC_POINT , pub derive : TPMS_DERIVE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_PUBLIC_ID"] [:: core :: mem :: size_of :: < TPMU_PUBLIC_ID > () - 514usize] ; ["Alignment of TPMU_PUBLIC_ID"] [:: core :: mem :: align_of :: < TPMU_PUBLIC_ID > () - 2usize] ; ["Offset of field: TPMU_PUBLIC_ID::keyedHash"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_ID , keyedHash) - 0usize] ; ["Offset of field: TPMU_PUBLIC_ID::sym"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_ID , sym) - 0usize] ; ["Offset of field: TPMU_PUBLIC_ID::rsa"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_ID , rsa) - 0usize] ; ["Offset of field: TPMU_PUBLIC_ID::ecc"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_ID , ecc) - 0usize] ; ["Offset of field: TPMU_PUBLIC_ID::derive"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_ID , derive) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_KEYEDHASH_PARMS { pub scheme : TPMT_KEYEDHASH_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_KEYEDHASH_PARMS"] [:: core :: mem :: size_of :: < TPMS_KEYEDHASH_PARMS > () - 6usize] ; ["Alignment of TPMS_KEYEDHASH_PARMS"] [:: core :: mem :: align_of :: < TPMS_KEYEDHASH_PARMS > () - 2usize] ; ["Offset of field: TPMS_KEYEDHASH_PARMS::scheme"] [:: core :: mem :: offset_of ! (TPMS_KEYEDHASH_PARMS , scheme) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_ASYM_PARMS { pub symmetric : TPMT_SYM_DEF_OBJECT , pub scheme : TPMT_ASYM_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ASYM_PARMS"] [:: core :: mem :: size_of :: < TPMS_ASYM_PARMS > () - 10usize] ; ["Alignment of TPMS_ASYM_PARMS"] [:: core :: mem :: align_of :: < TPMS_ASYM_PARMS > () - 2usize] ; ["Offset of field: TPMS_ASYM_PARMS::symmetric"] [:: core :: mem :: offset_of ! (TPMS_ASYM_PARMS , symmetric) - 0usize] ; ["Offset of field: TPMS_ASYM_PARMS::scheme"] [:: core :: mem :: offset_of ! (TPMS_ASYM_PARMS , scheme) - 6usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_RSA_PARMS { pub symmetric : TPMT_SYM_DEF_OBJECT , pub scheme : TPMT_RSA_SCHEME , pub keyBits : TPMI_RSA_KEY_BITS , pub exponent : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_RSA_PARMS"] [:: core :: mem :: size_of :: < TPMS_RSA_PARMS > () - 16usize] ; ["Alignment of TPMS_RSA_PARMS"] [:: core :: mem :: align_of :: < TPMS_RSA_PARMS > () - 4usize] ; ["Offset of field: TPMS_RSA_PARMS::symmetric"] [:: core :: mem :: offset_of ! (TPMS_RSA_PARMS , symmetric) - 0usize] ; ["Offset of field: TPMS_RSA_PARMS::scheme"] [:: core :: mem :: offset_of ! (TPMS_RSA_PARMS , scheme) - 6usize] ; ["Offset of field: TPMS_RSA_PARMS::keyBits"] [:: core :: mem :: offset_of ! (TPMS_RSA_PARMS , keyBits) - 10usize] ; ["Offset of field: TPMS_RSA_PARMS::exponent"] [:: core :: mem :: offset_of ! (TPMS_RSA_PARMS , exponent) - 12usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMS_ECC_PARMS { pub symmetric : TPMT_SYM_DEF_OBJECT , pub scheme : TPMT_ECC_SCHEME , pub curveID : TPMI_ECC_CURVE , pub kdf : TPMT_KDF_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ECC_PARMS"] [:: core :: mem :: size_of :: < TPMS_ECC_PARMS > () - 18usize] ; ["Alignment of TPMS_ECC_PARMS"] [:: core :: mem :: align_of :: < TPMS_ECC_PARMS > () - 2usize] ; ["Offset of field: TPMS_ECC_PARMS::symmetric"] [:: core :: mem :: offset_of ! (TPMS_ECC_PARMS , symmetric) - 0usize] ; ["Offset of field: TPMS_ECC_PARMS::scheme"] [:: core :: mem :: offset_of ! (TPMS_ECC_PARMS , scheme) - 6usize] ; ["Offset of field: TPMS_ECC_PARMS::curveID"] [:: core :: mem :: offset_of ! (TPMS_ECC_PARMS , curveID) - 12usize] ; ["Offset of field: TPMS_ECC_PARMS::kdf"] [:: core :: mem :: offset_of ! (TPMS_ECC_PARMS , kdf) - 14usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_PUBLIC_PARMS { pub keyedHashDetail : TPMS_KEYEDHASH_PARMS , pub symDetail : TPMS_SYMCIPHER_PARMS , pub rsaDetail : TPMS_RSA_PARMS , pub eccDetail : TPMS_ECC_PARMS , pub asymDetail : TPMS_ASYM_PARMS , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_PUBLIC_PARMS"] [:: core :: mem :: size_of :: < TPMU_PUBLIC_PARMS > () - 20usize] ; ["Alignment of TPMU_PUBLIC_PARMS"] [:: core :: mem :: align_of :: < TPMU_PUBLIC_PARMS > () - 4usize] ; ["Offset of field: TPMU_PUBLIC_PARMS::keyedHashDetail"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_PARMS , keyedHashDetail) - 0usize] ; ["Offset of field: TPMU_PUBLIC_PARMS::symDetail"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_PARMS , symDetail) - 0usize] ; ["Offset of field: TPMU_PUBLIC_PARMS::rsaDetail"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_PARMS , rsaDetail) - 0usize] ; ["Offset of field: TPMU_PUBLIC_PARMS::eccDetail"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_PARMS , eccDetail) - 0usize] ; ["Offset of field: TPMU_PUBLIC_PARMS::asymDetail"] [:: core :: mem :: offset_of ! (TPMU_PUBLIC_PARMS , asymDetail) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_PUBLIC_PARMS { pub type_ : TPMI_ALG_PUBLIC , pub parameters : TPMU_PUBLIC_PARMS , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_PUBLIC_PARMS"] [:: core :: mem :: size_of :: < TPMT_PUBLIC_PARMS > () - 24usize] ; ["Alignment of TPMT_PUBLIC_PARMS"] [:: core :: mem :: align_of :: < TPMT_PUBLIC_PARMS > () - 4usize] ; ["Offset of field: TPMT_PUBLIC_PARMS::type_"] [:: core :: mem :: offset_of ! (TPMT_PUBLIC_PARMS , type_) - 0usize] ; ["Offset of field: TPMT_PUBLIC_PARMS::parameters"] [:: core :: mem :: offset_of ! (TPMT_PUBLIC_PARMS , parameters) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_PUBLIC { pub type_ : TPMI_ALG_PUBLIC , pub nameAlg : TPMI_ALG_HASH , pub objectAttributes : TPMA_OBJECT , pub authPolicy : TPM2B_DIGEST , pub parameters : TPMU_PUBLIC_PARMS , pub unique : TPMU_PUBLIC_ID , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_PUBLIC"] [:: core :: mem :: size_of :: < TPMT_PUBLIC > () - 612usize] ; ["Alignment of TPMT_PUBLIC"] [:: core :: mem :: align_of :: < TPMT_PUBLIC > () - 4usize] ; ["Offset of field: TPMT_PUBLIC::type_"] [:: core :: mem :: offset_of ! (TPMT_PUBLIC , type_) - 0usize] ; ["Offset of field: TPMT_PUBLIC::nameAlg"] [:: core :: mem :: offset_of ! (TPMT_PUBLIC , nameAlg) - 2usize] ; ["Offset of field: TPMT_PUBLIC::objectAttributes"] [:: core :: mem :: offset_of ! (TPMT_PUBLIC , objectAttributes) - 4usize] ; ["Offset of field: TPMT_PUBLIC::authPolicy"] [:: core :: mem :: offset_of ! (TPMT_PUBLIC , authPolicy) - 8usize] ; ["Offset of field: TPMT_PUBLIC::parameters"] [:: core :: mem :: offset_of ! (TPMT_PUBLIC , parameters) - 76usize] ; ["Offset of field: TPMT_PUBLIC::unique"] [:: core :: mem :: offset_of ! (TPMT_PUBLIC , unique) - 96usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPM2B_PUBLIC { pub size : UINT16 , pub publicArea : TPMT_PUBLIC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_PUBLIC"] [:: core :: mem :: size_of :: < TPM2B_PUBLIC > () - 616usize] ; ["Alignment of TPM2B_PUBLIC"] [:: core :: mem :: align_of :: < TPM2B_PUBLIC > () - 4usize] ; ["Offset of field: TPM2B_PUBLIC::size"] [:: core :: mem :: offset_of ! (TPM2B_PUBLIC , size) - 0usize] ; ["Offset of field: TPM2B_PUBLIC::publicArea"] [:: core :: mem :: offset_of ! (TPM2B_PUBLIC , publicArea) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_TEMPLATE { pub size : UINT16 , pub buffer : [BYTE ; 612usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_TEMPLATE"] [:: core :: mem :: size_of :: < TPM2B_TEMPLATE > () - 614usize] ; ["Alignment of TPM2B_TEMPLATE"] [:: core :: mem :: align_of :: < TPM2B_TEMPLATE > () - 2usize] ; ["Offset of field: TPM2B_TEMPLATE::size"] [:: core :: mem :: offset_of ! (TPM2B_TEMPLATE , size) - 0usize] ; ["Offset of field: TPM2B_TEMPLATE::buffer"] [:: core :: mem :: offset_of ! (TPM2B_TEMPLATE , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_PRIVATE_VENDOR_SPECIFIC { pub size : UINT16 , pub buffer : [BYTE ; 1280usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_PRIVATE_VENDOR_SPECIFIC"] [:: core :: mem :: size_of :: < TPM2B_PRIVATE_VENDOR_SPECIFIC > () - 1282usize] ; ["Alignment of TPM2B_PRIVATE_VENDOR_SPECIFIC"] [:: core :: mem :: align_of :: < TPM2B_PRIVATE_VENDOR_SPECIFIC > () - 2usize] ; ["Offset of field: TPM2B_PRIVATE_VENDOR_SPECIFIC::size"] [:: core :: mem :: offset_of ! (TPM2B_PRIVATE_VENDOR_SPECIFIC , size) - 0usize] ; ["Offset of field: TPM2B_PRIVATE_VENDOR_SPECIFIC::buffer"] [:: core :: mem :: offset_of ! (TPM2B_PRIVATE_VENDOR_SPECIFIC , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub union TPMU_SENSITIVE_COMPOSITE { pub rsa : TPM2B_PRIVATE_KEY_RSA , pub ecc : TPM2B_ECC_PARAMETER , pub bits : TPM2B_SENSITIVE_DATA , pub sym : TPM2B_SYM_KEY , pub any : TPM2B_PRIVATE_VENDOR_SPECIFIC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMU_SENSITIVE_COMPOSITE"] [:: core :: mem :: size_of :: < TPMU_SENSITIVE_COMPOSITE > () - 1282usize] ; ["Alignment of TPMU_SENSITIVE_COMPOSITE"] [:: core :: mem :: align_of :: < TPMU_SENSITIVE_COMPOSITE > () - 2usize] ; ["Offset of field: TPMU_SENSITIVE_COMPOSITE::rsa"] [:: core :: mem :: offset_of ! (TPMU_SENSITIVE_COMPOSITE , rsa) - 0usize] ; ["Offset of field: TPMU_SENSITIVE_COMPOSITE::ecc"] [:: core :: mem :: offset_of ! (TPMU_SENSITIVE_COMPOSITE , ecc) - 0usize] ; ["Offset of field: TPMU_SENSITIVE_COMPOSITE::bits"] [:: core :: mem :: offset_of ! (TPMU_SENSITIVE_COMPOSITE , bits) - 0usize] ; ["Offset of field: TPMU_SENSITIVE_COMPOSITE::sym"] [:: core :: mem :: offset_of ! (TPMU_SENSITIVE_COMPOSITE , sym) - 0usize] ; ["Offset of field: TPMU_SENSITIVE_COMPOSITE::any"] [:: core :: mem :: offset_of ! (TPMU_SENSITIVE_COMPOSITE , any) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_SENSITIVE { pub sensitiveType : TPMI_ALG_PUBLIC , pub authValue : TPM2B_AUTH , pub seedValue : TPM2B_DIGEST , pub sensitive : TPMU_SENSITIVE_COMPOSITE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_SENSITIVE"] [:: core :: mem :: size_of :: < TPMT_SENSITIVE > () - 1416usize] ; ["Alignment of TPMT_SENSITIVE"] [:: core :: mem :: align_of :: < TPMT_SENSITIVE > () - 2usize] ; ["Offset of field: TPMT_SENSITIVE::sensitiveType"] [:: core :: mem :: offset_of ! (TPMT_SENSITIVE , sensitiveType) - 0usize] ; ["Offset of field: TPMT_SENSITIVE::authValue"] [:: core :: mem :: offset_of ! (TPMT_SENSITIVE , authValue) - 2usize] ; ["Offset of field: TPMT_SENSITIVE::seedValue"] [:: core :: mem :: offset_of ! (TPMT_SENSITIVE , seedValue) - 68usize] ; ["Offset of field: TPMT_SENSITIVE::sensitive"] [:: core :: mem :: offset_of ! (TPMT_SENSITIVE , sensitive) - 134usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPM2B_SENSITIVE { pub size : UINT16 , pub sensitiveArea : TPMT_SENSITIVE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_SENSITIVE"] [:: core :: mem :: size_of :: < TPM2B_SENSITIVE > () - 1418usize] ; ["Alignment of TPM2B_SENSITIVE"] [:: core :: mem :: align_of :: < TPM2B_SENSITIVE > () - 2usize] ; ["Offset of field: TPM2B_SENSITIVE::size"] [:: core :: mem :: offset_of ! (TPM2B_SENSITIVE , size) - 0usize] ; ["Offset of field: TPM2B_SENSITIVE::sensitiveArea"] [:: core :: mem :: offset_of ! (TPM2B_SENSITIVE , sensitiveArea) - 2usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPMT_PRIVATE { pub integrityOuter : TPM2B_DIGEST , pub integrityInner : TPM2B_DIGEST , pub sensitive : TPM2B_SENSITIVE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMT_PRIVATE"] [:: core :: mem :: size_of :: < TPMT_PRIVATE > () - 1550usize] ; ["Alignment of TPMT_PRIVATE"] [:: core :: mem :: align_of :: < TPMT_PRIVATE > () - 2usize] ; ["Offset of field: TPMT_PRIVATE::integrityOuter"] [:: core :: mem :: offset_of ! (TPMT_PRIVATE , integrityOuter) - 0usize] ; ["Offset of field: TPMT_PRIVATE::integrityInner"] [:: core :: mem :: offset_of ! (TPMT_PRIVATE , integrityInner) - 66usize] ; ["Offset of field: TPMT_PRIVATE::sensitive"] [:: core :: mem :: offset_of ! (TPMT_PRIVATE , sensitive) - 132usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_PRIVATE { pub size : UINT16 , pub buffer : [BYTE ; 1550usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_PRIVATE"] [:: core :: mem :: size_of :: < TPM2B_PRIVATE > () - 1552usize] ; ["Alignment of TPM2B_PRIVATE"] [:: core :: mem :: align_of :: < TPM2B_PRIVATE > () - 2usize] ; ["Offset of field: TPM2B_PRIVATE::size"] [:: core :: mem :: offset_of ! (TPM2B_PRIVATE , size) - 0usize] ; ["Offset of field: TPM2B_PRIVATE::buffer"] [:: core :: mem :: offset_of ! (TPM2B_PRIVATE , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_ID_OBJECT { pub integrityHMAC : TPM2B_DIGEST , pub encIdentity : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_ID_OBJECT"] [:: core :: mem :: size_of :: < TPMS_ID_OBJECT > () - 132usize] ; ["Alignment of TPMS_ID_OBJECT"] [:: core :: mem :: align_of :: < TPMS_ID_OBJECT > () - 2usize] ; ["Offset of field: TPMS_ID_OBJECT::integrityHMAC"] [:: core :: mem :: offset_of ! (TPMS_ID_OBJECT , integrityHMAC) - 0usize] ; ["Offset of field: TPMS_ID_OBJECT::encIdentity"] [:: core :: mem :: offset_of ! (TPMS_ID_OBJECT , encIdentity) - 66usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_ID_OBJECT { pub size : UINT16 , pub buffer : [BYTE ; 132usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_ID_OBJECT"] [:: core :: mem :: size_of :: < TPM2B_ID_OBJECT > () - 134usize] ; ["Alignment of TPM2B_ID_OBJECT"] [:: core :: mem :: align_of :: < TPM2B_ID_OBJECT > () - 2usize] ; ["Offset of field: TPM2B_ID_OBJECT::size"] [:: core :: mem :: offset_of ! (TPM2B_ID_OBJECT , size) - 0usize] ; ["Offset of field: TPM2B_ID_OBJECT::buffer"] [:: core :: mem :: offset_of ! (TPM2B_ID_OBJECT , buffer) - 2usize] ; } ; pub type TPM_NV_INDEX = UINT32 ; pub const TPM_NT_TPM_NT_ORDINARY : TPM_NT = 0 ; pub const TPM_NT_TPM_NT_COUNTER : TPM_NT = 1 ; pub const TPM_NT_TPM_NT_BITS : TPM_NT = 2 ; pub const TPM_NT_TPM_NT_EXTEND : TPM_NT = 4 ; pub const TPM_NT_TPM_NT_PIN_FAIL : TPM_NT = 8 ; pub const TPM_NT_TPM_NT_PIN_PASS : TPM_NT = 9 ; pub type TPM_NT = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_NV_PIN_COUNTER_PARAMETERS { pub pinCount : UINT32 , pub pinLimit : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_NV_PIN_COUNTER_PARAMETERS"] [:: core :: mem :: size_of :: < TPMS_NV_PIN_COUNTER_PARAMETERS > () - 8usize] ; ["Alignment of TPMS_NV_PIN_COUNTER_PARAMETERS"] [:: core :: mem :: align_of :: < TPMS_NV_PIN_COUNTER_PARAMETERS > () - 4usize] ; ["Offset of field: TPMS_NV_PIN_COUNTER_PARAMETERS::pinCount"] [:: core :: mem :: offset_of ! (TPMS_NV_PIN_COUNTER_PARAMETERS , pinCount) - 0usize] ; ["Offset of field: TPMS_NV_PIN_COUNTER_PARAMETERS::pinLimit"] [:: core :: mem :: offset_of ! (TPMS_NV_PIN_COUNTER_PARAMETERS , pinLimit) - 4usize] ; } ; pub type TPMA_NV = UINT32 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_NV_PUBLIC { pub nvIndex : TPMI_RH_NV_INDEX , pub nameAlg : TPMI_ALG_HASH , pub attributes : TPMA_NV , pub authPolicy : TPM2B_DIGEST , pub dataSize : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_NV_PUBLIC"] [:: core :: mem :: size_of :: < TPMS_NV_PUBLIC > () - 80usize] ; ["Alignment of TPMS_NV_PUBLIC"] [:: core :: mem :: align_of :: < TPMS_NV_PUBLIC > () - 4usize] ; ["Offset of field: TPMS_NV_PUBLIC::nvIndex"] [:: core :: mem :: offset_of ! (TPMS_NV_PUBLIC , nvIndex) - 0usize] ; ["Offset of field: TPMS_NV_PUBLIC::nameAlg"] [:: core :: mem :: offset_of ! (TPMS_NV_PUBLIC , nameAlg) - 4usize] ; ["Offset of field: TPMS_NV_PUBLIC::attributes"] [:: core :: mem :: offset_of ! (TPMS_NV_PUBLIC , attributes) - 8usize] ; ["Offset of field: TPMS_NV_PUBLIC::authPolicy"] [:: core :: mem :: offset_of ! (TPMS_NV_PUBLIC , authPolicy) - 12usize] ; ["Offset of field: TPMS_NV_PUBLIC::dataSize"] [:: core :: mem :: offset_of ! (TPMS_NV_PUBLIC , dataSize) - 78usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_NV_PUBLIC { pub size : UINT16 , pub nvPublic : TPMS_NV_PUBLIC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_NV_PUBLIC"] [:: core :: mem :: size_of :: < TPM2B_NV_PUBLIC > () - 84usize] ; ["Alignment of TPM2B_NV_PUBLIC"] [:: core :: mem :: align_of :: < TPM2B_NV_PUBLIC > () - 4usize] ; ["Offset of field: TPM2B_NV_PUBLIC::size"] [:: core :: mem :: offset_of ! (TPM2B_NV_PUBLIC , size) - 0usize] ; ["Offset of field: TPM2B_NV_PUBLIC::nvPublic"] [:: core :: mem :: offset_of ! (TPM2B_NV_PUBLIC , nvPublic) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_CONTEXT_SENSITIVE { pub size : UINT16 , pub buffer : [BYTE ; 2048usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_CONTEXT_SENSITIVE"] [:: core :: mem :: size_of :: < TPM2B_CONTEXT_SENSITIVE > () - 2050usize] ; ["Alignment of TPM2B_CONTEXT_SENSITIVE"] [:: core :: mem :: align_of :: < TPM2B_CONTEXT_SENSITIVE > () - 2usize] ; ["Offset of field: TPM2B_CONTEXT_SENSITIVE::size"] [:: core :: mem :: offset_of ! (TPM2B_CONTEXT_SENSITIVE , size) - 0usize] ; ["Offset of field: TPM2B_CONTEXT_SENSITIVE::buffer"] [:: core :: mem :: offset_of ! (TPM2B_CONTEXT_SENSITIVE , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_CONTEXT_DATA { pub integrity : TPM2B_DIGEST , pub encrypted : TPM2B_CONTEXT_SENSITIVE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_CONTEXT_DATA"] [:: core :: mem :: size_of :: < TPMS_CONTEXT_DATA > () - 2116usize] ; ["Alignment of TPMS_CONTEXT_DATA"] [:: core :: mem :: align_of :: < TPMS_CONTEXT_DATA > () - 2usize] ; ["Offset of field: TPMS_CONTEXT_DATA::integrity"] [:: core :: mem :: offset_of ! (TPMS_CONTEXT_DATA , integrity) - 0usize] ; ["Offset of field: TPMS_CONTEXT_DATA::encrypted"] [:: core :: mem :: offset_of ! (TPMS_CONTEXT_DATA , encrypted) - 66usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_CONTEXT_DATA { pub size : UINT16 , pub buffer : [BYTE ; 2116usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_CONTEXT_DATA"] [:: core :: mem :: size_of :: < TPM2B_CONTEXT_DATA > () - 2118usize] ; ["Alignment of TPM2B_CONTEXT_DATA"] [:: core :: mem :: align_of :: < TPM2B_CONTEXT_DATA > () - 2usize] ; ["Offset of field: TPM2B_CONTEXT_DATA::size"] [:: core :: mem :: offset_of ! (TPM2B_CONTEXT_DATA , size) - 0usize] ; ["Offset of field: TPM2B_CONTEXT_DATA::buffer"] [:: core :: mem :: offset_of ! (TPM2B_CONTEXT_DATA , buffer) - 2usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_CONTEXT { pub sequence : UINT64 , pub savedHandle : TPMI_DH_CONTEXT , pub hierarchy : TPMI_RH_HIERARCHY , pub contextBlob : TPM2B_CONTEXT_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_CONTEXT"] [:: core :: mem :: size_of :: < TPMS_CONTEXT > () - 2136usize] ; ["Alignment of TPMS_CONTEXT"] [:: core :: mem :: align_of :: < TPMS_CONTEXT > () - 8usize] ; ["Offset of field: TPMS_CONTEXT::sequence"] [:: core :: mem :: offset_of ! (TPMS_CONTEXT , sequence) - 0usize] ; ["Offset of field: TPMS_CONTEXT::savedHandle"] [:: core :: mem :: offset_of ! (TPMS_CONTEXT , savedHandle) - 8usize] ; ["Offset of field: TPMS_CONTEXT::hierarchy"] [:: core :: mem :: offset_of ! (TPMS_CONTEXT , hierarchy) - 12usize] ; ["Offset of field: TPMS_CONTEXT::contextBlob"] [:: core :: mem :: offset_of ! (TPMS_CONTEXT , contextBlob) - 16usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_CREATION_DATA { pub pcrSelect : TPML_PCR_SELECTION , pub pcrDigest : TPM2B_DIGEST , pub locality : TPMA_LOCALITY , pub parentNameAlg : TPM_ALG_ID , pub parentName : TPM2B_NAME , pub parentQualifiedName : TPM2B_NAME , pub outsideInfo : TPM2B_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_CREATION_DATA"] [:: core :: mem :: size_of :: < TPMS_CREATION_DATA > () - 316usize] ; ["Alignment of TPMS_CREATION_DATA"] [:: core :: mem :: align_of :: < TPMS_CREATION_DATA > () - 4usize] ; ["Offset of field: TPMS_CREATION_DATA::pcrSelect"] [:: core :: mem :: offset_of ! (TPMS_CREATION_DATA , pcrSelect) - 0usize] ; ["Offset of field: TPMS_CREATION_DATA::pcrDigest"] [:: core :: mem :: offset_of ! (TPMS_CREATION_DATA , pcrDigest) - 36usize] ; ["Offset of field: TPMS_CREATION_DATA::locality"] [:: core :: mem :: offset_of ! (TPMS_CREATION_DATA , locality) - 102usize] ; ["Offset of field: TPMS_CREATION_DATA::parentNameAlg"] [:: core :: mem :: offset_of ! (TPMS_CREATION_DATA , parentNameAlg) - 104usize] ; ["Offset of field: TPMS_CREATION_DATA::parentName"] [:: core :: mem :: offset_of ! (TPMS_CREATION_DATA , parentName) - 106usize] ; ["Offset of field: TPMS_CREATION_DATA::parentQualifiedName"] [:: core :: mem :: offset_of ! (TPMS_CREATION_DATA , parentQualifiedName) - 176usize] ; ["Offset of field: TPMS_CREATION_DATA::outsideInfo"] [:: core :: mem :: offset_of ! (TPMS_CREATION_DATA , outsideInfo) - 246usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM2B_CREATION_DATA { pub size : UINT16 , pub creationData : TPMS_CREATION_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2B_CREATION_DATA"] [:: core :: mem :: size_of :: < TPM2B_CREATION_DATA > () - 320usize] ; ["Alignment of TPM2B_CREATION_DATA"] [:: core :: mem :: align_of :: < TPM2B_CREATION_DATA > () - 4usize] ; ["Offset of field: TPM2B_CREATION_DATA::size"] [:: core :: mem :: offset_of ! (TPM2B_CREATION_DATA , size) - 0usize] ; ["Offset of field: TPM2B_CREATION_DATA::creationData"] [:: core :: mem :: offset_of ! (TPM2B_CREATION_DATA , creationData) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_AUTH_COMMAND { pub sessionHandle : TPMI_SH_AUTH_SESSION , pub nonce : TPM2B_NONCE , pub sessionAttributes : TPMA_SESSION , pub hmac : TPM2B_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_AUTH_COMMAND"] [:: core :: mem :: size_of :: < TPMS_AUTH_COMMAND > () - 140usize] ; ["Alignment of TPMS_AUTH_COMMAND"] [:: core :: mem :: align_of :: < TPMS_AUTH_COMMAND > () - 4usize] ; ["Offset of field: TPMS_AUTH_COMMAND::sessionHandle"] [:: core :: mem :: offset_of ! (TPMS_AUTH_COMMAND , sessionHandle) - 0usize] ; ["Offset of field: TPMS_AUTH_COMMAND::nonce"] [:: core :: mem :: offset_of ! (TPMS_AUTH_COMMAND , nonce) - 4usize] ; ["Offset of field: TPMS_AUTH_COMMAND::sessionAttributes"] [:: core :: mem :: offset_of ! (TPMS_AUTH_COMMAND , sessionAttributes) - 70usize] ; ["Offset of field: TPMS_AUTH_COMMAND::hmac"] [:: core :: mem :: offset_of ! (TPMS_AUTH_COMMAND , hmac) - 72usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPMS_AUTH_RESPONSE { pub nonce : TPM2B_NONCE , pub sessionAttributes : TPMA_SESSION , pub hmac : TPM2B_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPMS_AUTH_RESPONSE"] [:: core :: mem :: size_of :: < TPMS_AUTH_RESPONSE > () - 134usize] ; ["Alignment of TPMS_AUTH_RESPONSE"] [:: core :: mem :: align_of :: < TPMS_AUTH_RESPONSE > () - 2usize] ; ["Offset of field: TPMS_AUTH_RESPONSE::nonce"] [:: core :: mem :: offset_of ! (TPMS_AUTH_RESPONSE , nonce) - 0usize] ; ["Offset of field: TPMS_AUTH_RESPONSE::sessionAttributes"] [:: core :: mem :: offset_of ! (TPMS_AUTH_RESPONSE , sessionAttributes) - 66usize] ; ["Offset of field: TPMS_AUTH_RESPONSE::hmac"] [:: core :: mem :: offset_of ! (TPMS_AUTH_RESPONSE , hmac) - 68usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPM2_AUTH_SESSION { pub sessionHandle : TPMI_SH_AUTH_SESSION , pub nonceCaller : TPM2B_NONCE , pub sessionAttributes : TPMA_SESSION , pub hmac : TPM2B_AUTH , pub nonceTPM : TPM2B_NONCE , pub symmetric : TPMT_SYM_DEF , pub authHash : TPMI_ALG_HASH , pub name : TPM2B_NAME , pub auth : TPM2B_AUTH , pub bind : * mut TPM2B_AUTH , pub bindName : TPM2B_NAME , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2_AUTH_SESSION"] [:: core :: mem :: size_of :: < TPM2_AUTH_SESSION > () - 432usize] ; ["Alignment of TPM2_AUTH_SESSION"] [:: core :: mem :: align_of :: < TPM2_AUTH_SESSION > () - 8usize] ; ["Offset of field: TPM2_AUTH_SESSION::sessionHandle"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , sessionHandle) - 0usize] ; ["Offset of field: TPM2_AUTH_SESSION::nonceCaller"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , nonceCaller) - 4usize] ; ["Offset of field: TPM2_AUTH_SESSION::sessionAttributes"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , sessionAttributes) - 70usize] ; ["Offset of field: TPM2_AUTH_SESSION::hmac"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , hmac) - 72usize] ; ["Offset of field: TPM2_AUTH_SESSION::nonceTPM"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , nonceTPM) - 138usize] ; ["Offset of field: TPM2_AUTH_SESSION::symmetric"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , symmetric) - 204usize] ; ["Offset of field: TPM2_AUTH_SESSION::authHash"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , authHash) - 210usize] ; ["Offset of field: TPM2_AUTH_SESSION::name"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , name) - 212usize] ; ["Offset of field: TPM2_AUTH_SESSION::auth"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , auth) - 282usize] ; ["Offset of field: TPM2_AUTH_SESSION::bind"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , bind) - 352usize] ; ["Offset of field: TPM2_AUTH_SESSION::bindName"] [:: core :: mem :: offset_of ! (TPM2_AUTH_SESSION , bindName) - 360usize] ; } ; impl TPM2_AUTH_SESSION { # [inline] pub fn policyAuth (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_policyAuth (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn policyAuth_raw (this : * const Self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u32) } } # [inline] pub unsafe fn set_policyAuth_raw (this : * mut Self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn policyPass (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u32) } } # [inline] pub fn set_policyPass (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn policyPass_raw (this : * const Self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u32) } } # [inline] pub unsafe fn set_policyPass_raw (this : * mut Self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (policyAuth : :: core :: ffi :: c_uint , policyPass : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let policyAuth : u32 = unsafe { :: core :: mem :: transmute (policyAuth) } ; policyAuth as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let policyPass : u32 = unsafe { :: core :: mem :: transmute (policyPass) } ; policyPass as u64 }) ; __bindgen_bitfield_unit } } unsafe extern "C" { pub static TPM_20_EK_AUTH_POLICY : [BYTE ; 32usize] ; } unsafe extern "C" { pub static TPM_20_EK_AUTH_POLICY_SHA256 : [BYTE ; 32usize] ; } unsafe extern "C" { pub static TPM_20_EK_AUTH_POLICY_SHA384 : [BYTE ; 48usize] ; } unsafe extern "C" { pub static TPM_20_EK_AUTH_POLICY_SHA512 : [BYTE ; 64usize] ; } unsafe extern "C" { pub static TPM_20_IDEVID_POLICY : [BYTE ; 32usize] ; } unsafe extern "C" { pub static TPM_20_IAK_POLICY : [BYTE ; 32usize] ; } unsafe extern "C" { pub static TPM_20_IDEVID_POLICY_SHA384 : [BYTE ; 48usize] ; } unsafe extern "C" { pub static TPM_20_IAK_POLICY_SHA384 : [BYTE ; 48usize] ; } unsafe extern "C" { pub static TPM_20_IDEVID_POLICY_SHA512 : [BYTE ; 64usize] ; } unsafe extern "C" { pub static TPM_20_IAK_POLICY_SHA512 : [BYTE ; 64usize] ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct wolfTPM_tcpContext { pub fd : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of wolfTPM_tcpContext"] [:: core :: mem :: size_of :: < wolfTPM_tcpContext > () - 4usize] ; ["Alignment of wolfTPM_tcpContext"] [:: core :: mem :: align_of :: < wolfTPM_tcpContext > () - 4usize] ; ["Offset of field: wolfTPM_tcpContext::fd"] [:: core :: mem :: offset_of ! (wolfTPM_tcpContext , fd) - 0usize] ; } ; pub type TPM2HalIoCb = :: core :: option :: Option < unsafe extern "C" fn (arg1 : * mut TPM2_CTX , txBuf : * const BYTE , rxBuf : * mut BYTE , xferSz : UINT16 , userCtx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; # [repr (C)] # [derive (Copy , Clone)] pub struct TPM2_CTX { pub ioCb : TPM2HalIoCb , pub userCtx : * mut :: core :: ffi :: c_void , pub tcpCtx : wolfTPM_tcpContext , pub rng : WC_RNG , pub locality : :: core :: ffi :: c_int , pub caps : word32 , pub did_vid : word32 , pub session : * mut TPM2_AUTH_SESSION , pub cmdBuf : [byte ; 4096usize] , pub rid : byte , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub retries : :: core :: ffi :: c_int , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM2_CTX"] [:: core :: mem :: size_of :: < TPM2_CTX > () - 4208usize] ; ["Alignment of TPM2_CTX"] [:: core :: mem :: align_of :: < TPM2_CTX > () - 8usize] ; ["Offset of field: TPM2_CTX::ioCb"] [:: core :: mem :: offset_of ! (TPM2_CTX , ioCb) - 0usize] ; ["Offset of field: TPM2_CTX::userCtx"] [:: core :: mem :: offset_of ! (TPM2_CTX , userCtx) - 8usize] ; ["Offset of field: TPM2_CTX::tcpCtx"] [:: core :: mem :: offset_of ! (TPM2_CTX , tcpCtx) - 16usize] ; ["Offset of field: TPM2_CTX::rng"] [:: core :: mem :: offset_of ! (TPM2_CTX , rng) - 24usize] ; ["Offset of field: TPM2_CTX::locality"] [:: core :: mem :: offset_of ! (TPM2_CTX , locality) - 80usize] ; ["Offset of field: TPM2_CTX::caps"] [:: core :: mem :: offset_of ! (TPM2_CTX , caps) - 84usize] ; ["Offset of field: TPM2_CTX::did_vid"] [:: core :: mem :: offset_of ! (TPM2_CTX , did_vid) - 88usize] ; ["Offset of field: TPM2_CTX::session"] [:: core :: mem :: offset_of ! (TPM2_CTX , session) - 96usize] ; ["Offset of field: TPM2_CTX::cmdBuf"] [:: core :: mem :: offset_of ! (TPM2_CTX , cmdBuf) - 104usize] ; ["Offset of field: TPM2_CTX::rid"] [:: core :: mem :: offset_of ! (TPM2_CTX , rid) - 4200usize] ; ["Offset of field: TPM2_CTX::retries"] [:: core :: mem :: offset_of ! (TPM2_CTX , retries) - 4204usize] ; } ; impl TPM2_CTX { # [inline] pub fn rngInit (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_rngInit (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn rngInit_raw (this : * const Self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u32) } } # [inline] pub unsafe fn set_rngInit_raw (this : * mut Self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (rngInit : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let rngInit : u32 = unsafe { :: core :: mem :: transmute (rngInit) } ; rngInit as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Startup_In { pub startupType : TPM_SU , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Startup_In"] [:: core :: mem :: size_of :: < Startup_In > () - 2usize] ; ["Alignment of Startup_In"] [:: core :: mem :: align_of :: < Startup_In > () - 2usize] ; ["Offset of field: Startup_In::startupType"] [:: core :: mem :: offset_of ! (Startup_In , startupType) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_Startup (in_ : * mut Startup_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Shutdown_In { pub shutdownType : TPM_SU , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Shutdown_In"] [:: core :: mem :: size_of :: < Shutdown_In > () - 2usize] ; ["Alignment of Shutdown_In"] [:: core :: mem :: align_of :: < Shutdown_In > () - 2usize] ; ["Offset of field: Shutdown_In::shutdownType"] [:: core :: mem :: offset_of ! (Shutdown_In , shutdownType) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_Shutdown (in_ : * mut Shutdown_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct GetCapability_In { pub capability : TPM_CAP , pub property : UINT32 , pub propertyCount : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetCapability_In"] [:: core :: mem :: size_of :: < GetCapability_In > () - 12usize] ; ["Alignment of GetCapability_In"] [:: core :: mem :: align_of :: < GetCapability_In > () - 4usize] ; ["Offset of field: GetCapability_In::capability"] [:: core :: mem :: offset_of ! (GetCapability_In , capability) - 0usize] ; ["Offset of field: GetCapability_In::property"] [:: core :: mem :: offset_of ! (GetCapability_In , property) - 4usize] ; ["Offset of field: GetCapability_In::propertyCount"] [:: core :: mem :: offset_of ! (GetCapability_In , propertyCount) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct GetCapability_Out { pub moreData : TPMI_YES_NO , pub capabilityData : TPMS_CAPABILITY_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetCapability_Out"] [:: core :: mem :: size_of :: < GetCapability_Out > () - 1036usize] ; ["Alignment of GetCapability_Out"] [:: core :: mem :: align_of :: < GetCapability_Out > () - 4usize] ; ["Offset of field: GetCapability_Out::moreData"] [:: core :: mem :: offset_of ! (GetCapability_Out , moreData) - 0usize] ; ["Offset of field: GetCapability_Out::capabilityData"] [:: core :: mem :: offset_of ! (GetCapability_Out , capabilityData) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_GetCapability (in_ : * mut GetCapability_In , out : * mut GetCapability_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SelfTest_In { pub fullTest : TPMI_YES_NO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SelfTest_In"] [:: core :: mem :: size_of :: < SelfTest_In > () - 1usize] ; ["Alignment of SelfTest_In"] [:: core :: mem :: align_of :: < SelfTest_In > () - 1usize] ; ["Offset of field: SelfTest_In::fullTest"] [:: core :: mem :: offset_of ! (SelfTest_In , fullTest) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_SelfTest (in_ : * mut SelfTest_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct IncrementalSelfTest_In { pub toTest : TPML_ALG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of IncrementalSelfTest_In"] [:: core :: mem :: size_of :: < IncrementalSelfTest_In > () - 132usize] ; ["Alignment of IncrementalSelfTest_In"] [:: core :: mem :: align_of :: < IncrementalSelfTest_In > () - 4usize] ; ["Offset of field: IncrementalSelfTest_In::toTest"] [:: core :: mem :: offset_of ! (IncrementalSelfTest_In , toTest) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct IncrementalSelfTest_Out { pub toDoList : TPML_ALG , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of IncrementalSelfTest_Out"] [:: core :: mem :: size_of :: < IncrementalSelfTest_Out > () - 132usize] ; ["Alignment of IncrementalSelfTest_Out"] [:: core :: mem :: align_of :: < IncrementalSelfTest_Out > () - 4usize] ; ["Offset of field: IncrementalSelfTest_Out::toDoList"] [:: core :: mem :: offset_of ! (IncrementalSelfTest_Out , toDoList) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_IncrementalSelfTest (in_ : * mut IncrementalSelfTest_In , out : * mut IncrementalSelfTest_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct GetTestResult_Out { pub outData : TPM2B_MAX_BUFFER , pub testResult : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetTestResult_Out"] [:: core :: mem :: size_of :: < GetTestResult_Out > () - 1032usize] ; ["Alignment of GetTestResult_Out"] [:: core :: mem :: align_of :: < GetTestResult_Out > () - 4usize] ; ["Offset of field: GetTestResult_Out::outData"] [:: core :: mem :: offset_of ! (GetTestResult_Out , outData) - 0usize] ; ["Offset of field: GetTestResult_Out::testResult"] [:: core :: mem :: offset_of ! (GetTestResult_Out , testResult) - 1028usize] ; } ; unsafe extern "C" { pub fn TPM2_GetTestResult (out : * mut GetTestResult_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct GetRandom_In { pub bytesRequested : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetRandom_In"] [:: core :: mem :: size_of :: < GetRandom_In > () - 2usize] ; ["Alignment of GetRandom_In"] [:: core :: mem :: align_of :: < GetRandom_In > () - 2usize] ; ["Offset of field: GetRandom_In::bytesRequested"] [:: core :: mem :: offset_of ! (GetRandom_In , bytesRequested) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct GetRandom_Out { pub randomBytes : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetRandom_Out"] [:: core :: mem :: size_of :: < GetRandom_Out > () - 66usize] ; ["Alignment of GetRandom_Out"] [:: core :: mem :: align_of :: < GetRandom_Out > () - 2usize] ; ["Offset of field: GetRandom_Out::randomBytes"] [:: core :: mem :: offset_of ! (GetRandom_Out , randomBytes) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_GetRandom (in_ : * mut GetRandom_In , out : * mut GetRandom_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StirRandom_In { pub inData : TPM2B_SENSITIVE_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StirRandom_In"] [:: core :: mem :: size_of :: < StirRandom_In > () - 130usize] ; ["Alignment of StirRandom_In"] [:: core :: mem :: align_of :: < StirRandom_In > () - 2usize] ; ["Offset of field: StirRandom_In::inData"] [:: core :: mem :: offset_of ! (StirRandom_In , inData) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_StirRandom (in_ : * mut StirRandom_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PCR_Read_In { pub pcrSelectionIn : TPML_PCR_SELECTION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_Read_In"] [:: core :: mem :: size_of :: < PCR_Read_In > () - 36usize] ; ["Alignment of PCR_Read_In"] [:: core :: mem :: align_of :: < PCR_Read_In > () - 4usize] ; ["Offset of field: PCR_Read_In::pcrSelectionIn"] [:: core :: mem :: offset_of ! (PCR_Read_In , pcrSelectionIn) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PCR_Read_Out { pub pcrUpdateCounter : UINT32 , pub pcrSelectionOut : TPML_PCR_SELECTION , pub pcrValues : TPML_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_Read_Out"] [:: core :: mem :: size_of :: < PCR_Read_Out > () - 572usize] ; ["Alignment of PCR_Read_Out"] [:: core :: mem :: align_of :: < PCR_Read_Out > () - 4usize] ; ["Offset of field: PCR_Read_Out::pcrUpdateCounter"] [:: core :: mem :: offset_of ! (PCR_Read_Out , pcrUpdateCounter) - 0usize] ; ["Offset of field: PCR_Read_Out::pcrSelectionOut"] [:: core :: mem :: offset_of ! (PCR_Read_Out , pcrSelectionOut) - 4usize] ; ["Offset of field: PCR_Read_Out::pcrValues"] [:: core :: mem :: offset_of ! (PCR_Read_Out , pcrValues) - 40usize] ; } ; unsafe extern "C" { pub fn TPM2_PCR_Read (in_ : * mut PCR_Read_In , out : * mut PCR_Read_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct PCR_Extend_In { pub pcrHandle : TPMI_DH_PCR , pub digests : TPML_DIGEST_VALUES , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_Extend_In"] [:: core :: mem :: size_of :: < PCR_Extend_In > () - 340usize] ; ["Alignment of PCR_Extend_In"] [:: core :: mem :: align_of :: < PCR_Extend_In > () - 4usize] ; ["Offset of field: PCR_Extend_In::pcrHandle"] [:: core :: mem :: offset_of ! (PCR_Extend_In , pcrHandle) - 0usize] ; ["Offset of field: PCR_Extend_In::digests"] [:: core :: mem :: offset_of ! (PCR_Extend_In , digests) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PCR_Extend (in_ : * mut PCR_Extend_In) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct Create_In { pub parentHandle : TPMI_DH_OBJECT , pub inSensitive : TPM2B_SENSITIVE_CREATE , pub inPublic : TPM2B_PUBLIC , pub outsideInfo : TPM2B_DATA , pub creationPCR : TPML_PCR_SELECTION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Create_In"] [:: core :: mem :: size_of :: < Create_In > () - 924usize] ; ["Alignment of Create_In"] [:: core :: mem :: align_of :: < Create_In > () - 4usize] ; ["Offset of field: Create_In::parentHandle"] [:: core :: mem :: offset_of ! (Create_In , parentHandle) - 0usize] ; ["Offset of field: Create_In::inSensitive"] [:: core :: mem :: offset_of ! (Create_In , inSensitive) - 4usize] ; ["Offset of field: Create_In::inPublic"] [:: core :: mem :: offset_of ! (Create_In , inPublic) - 204usize] ; ["Offset of field: Create_In::outsideInfo"] [:: core :: mem :: offset_of ! (Create_In , outsideInfo) - 820usize] ; ["Offset of field: Create_In::creationPCR"] [:: core :: mem :: offset_of ! (Create_In , creationPCR) - 888usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Create_Out { pub outPrivate : TPM2B_PRIVATE , pub outPublic : TPM2B_PUBLIC , pub creationData : TPM2B_CREATION_DATA , pub creationHash : TPM2B_DIGEST , pub creationTicket : TPMT_TK_CREATION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Create_Out"] [:: core :: mem :: size_of :: < Create_Out > () - 2632usize] ; ["Alignment of Create_Out"] [:: core :: mem :: align_of :: < Create_Out > () - 4usize] ; ["Offset of field: Create_Out::outPrivate"] [:: core :: mem :: offset_of ! (Create_Out , outPrivate) - 0usize] ; ["Offset of field: Create_Out::outPublic"] [:: core :: mem :: offset_of ! (Create_Out , outPublic) - 1552usize] ; ["Offset of field: Create_Out::creationData"] [:: core :: mem :: offset_of ! (Create_Out , creationData) - 2168usize] ; ["Offset of field: Create_Out::creationHash"] [:: core :: mem :: offset_of ! (Create_Out , creationHash) - 2488usize] ; ["Offset of field: Create_Out::creationTicket"] [:: core :: mem :: offset_of ! (Create_Out , creationTicket) - 2556usize] ; } ; unsafe extern "C" { pub fn TPM2_Create (in_ : * mut Create_In , out : * mut Create_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct CreateLoaded_In { pub parentHandle : TPMI_DH_OBJECT , pub inSensitive : TPM2B_SENSITIVE_CREATE , pub inPublic : TPM2B_PUBLIC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CreateLoaded_In"] [:: core :: mem :: size_of :: < CreateLoaded_In > () - 820usize] ; ["Alignment of CreateLoaded_In"] [:: core :: mem :: align_of :: < CreateLoaded_In > () - 4usize] ; ["Offset of field: CreateLoaded_In::parentHandle"] [:: core :: mem :: offset_of ! (CreateLoaded_In , parentHandle) - 0usize] ; ["Offset of field: CreateLoaded_In::inSensitive"] [:: core :: mem :: offset_of ! (CreateLoaded_In , inSensitive) - 4usize] ; ["Offset of field: CreateLoaded_In::inPublic"] [:: core :: mem :: offset_of ! (CreateLoaded_In , inPublic) - 204usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct CreateLoaded_Out { pub objectHandle : TPM_HANDLE , pub outPrivate : TPM2B_PRIVATE , pub outPublic : TPM2B_PUBLIC , pub name : TPM2B_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CreateLoaded_Out"] [:: core :: mem :: size_of :: < CreateLoaded_Out > () - 2244usize] ; ["Alignment of CreateLoaded_Out"] [:: core :: mem :: align_of :: < CreateLoaded_Out > () - 4usize] ; ["Offset of field: CreateLoaded_Out::objectHandle"] [:: core :: mem :: offset_of ! (CreateLoaded_Out , objectHandle) - 0usize] ; ["Offset of field: CreateLoaded_Out::outPrivate"] [:: core :: mem :: offset_of ! (CreateLoaded_Out , outPrivate) - 4usize] ; ["Offset of field: CreateLoaded_Out::outPublic"] [:: core :: mem :: offset_of ! (CreateLoaded_Out , outPublic) - 1556usize] ; ["Offset of field: CreateLoaded_Out::name"] [:: core :: mem :: offset_of ! (CreateLoaded_Out , name) - 2172usize] ; } ; unsafe extern "C" { pub fn TPM2_CreateLoaded (in_ : * mut CreateLoaded_In , out : * mut CreateLoaded_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct CreatePrimary_In { pub primaryHandle : TPMI_RH_HIERARCHY , pub inSensitive : TPM2B_SENSITIVE_CREATE , pub inPublic : TPM2B_PUBLIC , pub outsideInfo : TPM2B_DATA , pub creationPCR : TPML_PCR_SELECTION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CreatePrimary_In"] [:: core :: mem :: size_of :: < CreatePrimary_In > () - 924usize] ; ["Alignment of CreatePrimary_In"] [:: core :: mem :: align_of :: < CreatePrimary_In > () - 4usize] ; ["Offset of field: CreatePrimary_In::primaryHandle"] [:: core :: mem :: offset_of ! (CreatePrimary_In , primaryHandle) - 0usize] ; ["Offset of field: CreatePrimary_In::inSensitive"] [:: core :: mem :: offset_of ! (CreatePrimary_In , inSensitive) - 4usize] ; ["Offset of field: CreatePrimary_In::inPublic"] [:: core :: mem :: offset_of ! (CreatePrimary_In , inPublic) - 204usize] ; ["Offset of field: CreatePrimary_In::outsideInfo"] [:: core :: mem :: offset_of ! (CreatePrimary_In , outsideInfo) - 820usize] ; ["Offset of field: CreatePrimary_In::creationPCR"] [:: core :: mem :: offset_of ! (CreatePrimary_In , creationPCR) - 888usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct CreatePrimary_Out { pub objectHandle : TPM_HANDLE , pub outPublic : TPM2B_PUBLIC , pub creationData : TPM2B_CREATION_DATA , pub creationHash : TPM2B_DIGEST , pub creationTicket : TPMT_TK_CREATION , pub name : TPM2B_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CreatePrimary_Out"] [:: core :: mem :: size_of :: < CreatePrimary_Out > () - 1156usize] ; ["Alignment of CreatePrimary_Out"] [:: core :: mem :: align_of :: < CreatePrimary_Out > () - 4usize] ; ["Offset of field: CreatePrimary_Out::objectHandle"] [:: core :: mem :: offset_of ! (CreatePrimary_Out , objectHandle) - 0usize] ; ["Offset of field: CreatePrimary_Out::outPublic"] [:: core :: mem :: offset_of ! (CreatePrimary_Out , outPublic) - 4usize] ; ["Offset of field: CreatePrimary_Out::creationData"] [:: core :: mem :: offset_of ! (CreatePrimary_Out , creationData) - 620usize] ; ["Offset of field: CreatePrimary_Out::creationHash"] [:: core :: mem :: offset_of ! (CreatePrimary_Out , creationHash) - 940usize] ; ["Offset of field: CreatePrimary_Out::creationTicket"] [:: core :: mem :: offset_of ! (CreatePrimary_Out , creationTicket) - 1008usize] ; ["Offset of field: CreatePrimary_Out::name"] [:: core :: mem :: offset_of ! (CreatePrimary_Out , name) - 1084usize] ; } ; unsafe extern "C" { pub fn TPM2_CreatePrimary (in_ : * mut CreatePrimary_In , out : * mut CreatePrimary_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct Load_In { pub parentHandle : TPMI_DH_OBJECT , pub inPrivate : TPM2B_PRIVATE , pub inPublic : TPM2B_PUBLIC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Load_In"] [:: core :: mem :: size_of :: < Load_In > () - 2172usize] ; ["Alignment of Load_In"] [:: core :: mem :: align_of :: < Load_In > () - 4usize] ; ["Offset of field: Load_In::parentHandle"] [:: core :: mem :: offset_of ! (Load_In , parentHandle) - 0usize] ; ["Offset of field: Load_In::inPrivate"] [:: core :: mem :: offset_of ! (Load_In , inPrivate) - 4usize] ; ["Offset of field: Load_In::inPublic"] [:: core :: mem :: offset_of ! (Load_In , inPublic) - 1556usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Load_Out { pub objectHandle : TPM_HANDLE , pub name : TPM2B_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Load_Out"] [:: core :: mem :: size_of :: < Load_Out > () - 76usize] ; ["Alignment of Load_Out"] [:: core :: mem :: align_of :: < Load_Out > () - 4usize] ; ["Offset of field: Load_Out::objectHandle"] [:: core :: mem :: offset_of ! (Load_Out , objectHandle) - 0usize] ; ["Offset of field: Load_Out::name"] [:: core :: mem :: offset_of ! (Load_Out , name) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_Load (in_ : * mut Load_In , out : * mut Load_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FlushContext_In { pub flushHandle : TPMI_DH_CONTEXT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FlushContext_In"] [:: core :: mem :: size_of :: < FlushContext_In > () - 4usize] ; ["Alignment of FlushContext_In"] [:: core :: mem :: align_of :: < FlushContext_In > () - 4usize] ; ["Offset of field: FlushContext_In::flushHandle"] [:: core :: mem :: offset_of ! (FlushContext_In , flushHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_FlushContext (in_ : * mut FlushContext_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Unseal_In { pub itemHandle : TPMI_DH_OBJECT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Unseal_In"] [:: core :: mem :: size_of :: < Unseal_In > () - 4usize] ; ["Alignment of Unseal_In"] [:: core :: mem :: align_of :: < Unseal_In > () - 4usize] ; ["Offset of field: Unseal_In::itemHandle"] [:: core :: mem :: offset_of ! (Unseal_In , itemHandle) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Unseal_Out { pub outData : TPM2B_SENSITIVE_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Unseal_Out"] [:: core :: mem :: size_of :: < Unseal_Out > () - 130usize] ; ["Alignment of Unseal_Out"] [:: core :: mem :: align_of :: < Unseal_Out > () - 2usize] ; ["Offset of field: Unseal_Out::outData"] [:: core :: mem :: offset_of ! (Unseal_Out , outData) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_Unseal (in_ : * mut Unseal_In , out : * mut Unseal_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct StartAuthSession_In { pub tpmKey : TPMI_DH_OBJECT , pub bind : TPMI_DH_ENTITY , pub nonceCaller : TPM2B_NONCE , pub encryptedSalt : TPM2B_ENCRYPTED_SECRET , pub sessionType : TPM_SE , pub symmetric : TPMT_SYM_DEF , pub authHash : TPMI_ALG_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StartAuthSession_In"] [:: core :: mem :: size_of :: < StartAuthSession_In > () - 600usize] ; ["Alignment of StartAuthSession_In"] [:: core :: mem :: align_of :: < StartAuthSession_In > () - 4usize] ; ["Offset of field: StartAuthSession_In::tpmKey"] [:: core :: mem :: offset_of ! (StartAuthSession_In , tpmKey) - 0usize] ; ["Offset of field: StartAuthSession_In::bind"] [:: core :: mem :: offset_of ! (StartAuthSession_In , bind) - 4usize] ; ["Offset of field: StartAuthSession_In::nonceCaller"] [:: core :: mem :: offset_of ! (StartAuthSession_In , nonceCaller) - 8usize] ; ["Offset of field: StartAuthSession_In::encryptedSalt"] [:: core :: mem :: offset_of ! (StartAuthSession_In , encryptedSalt) - 74usize] ; ["Offset of field: StartAuthSession_In::sessionType"] [:: core :: mem :: offset_of ! (StartAuthSession_In , sessionType) - 588usize] ; ["Offset of field: StartAuthSession_In::symmetric"] [:: core :: mem :: offset_of ! (StartAuthSession_In , symmetric) - 590usize] ; ["Offset of field: StartAuthSession_In::authHash"] [:: core :: mem :: offset_of ! (StartAuthSession_In , authHash) - 596usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct StartAuthSession_Out { pub sessionHandle : TPMI_SH_AUTH_SESSION , pub nonceTPM : TPM2B_NONCE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of StartAuthSession_Out"] [:: core :: mem :: size_of :: < StartAuthSession_Out > () - 72usize] ; ["Alignment of StartAuthSession_Out"] [:: core :: mem :: align_of :: < StartAuthSession_Out > () - 4usize] ; ["Offset of field: StartAuthSession_Out::sessionHandle"] [:: core :: mem :: offset_of ! (StartAuthSession_Out , sessionHandle) - 0usize] ; ["Offset of field: StartAuthSession_Out::nonceTPM"] [:: core :: mem :: offset_of ! (StartAuthSession_Out , nonceTPM) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_StartAuthSession (in_ : * mut StartAuthSession_In , out : * mut StartAuthSession_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyRestart_In { pub sessionHandle : TPMI_SH_POLICY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyRestart_In"] [:: core :: mem :: size_of :: < PolicyRestart_In > () - 4usize] ; ["Alignment of PolicyRestart_In"] [:: core :: mem :: align_of :: < PolicyRestart_In > () - 4usize] ; ["Offset of field: PolicyRestart_In::sessionHandle"] [:: core :: mem :: offset_of ! (PolicyRestart_In , sessionHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyRestart (in_ : * mut PolicyRestart_In) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct LoadExternal_In { pub inPrivate : TPM2B_SENSITIVE , pub inPublic : TPM2B_PUBLIC , pub hierarchy : TPMI_RH_HIERARCHY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LoadExternal_In"] [:: core :: mem :: size_of :: < LoadExternal_In > () - 2040usize] ; ["Alignment of LoadExternal_In"] [:: core :: mem :: align_of :: < LoadExternal_In > () - 4usize] ; ["Offset of field: LoadExternal_In::inPrivate"] [:: core :: mem :: offset_of ! (LoadExternal_In , inPrivate) - 0usize] ; ["Offset of field: LoadExternal_In::inPublic"] [:: core :: mem :: offset_of ! (LoadExternal_In , inPublic) - 1420usize] ; ["Offset of field: LoadExternal_In::hierarchy"] [:: core :: mem :: offset_of ! (LoadExternal_In , hierarchy) - 2036usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LoadExternal_Out { pub objectHandle : TPM_HANDLE , pub name : TPM2B_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of LoadExternal_Out"] [:: core :: mem :: size_of :: < LoadExternal_Out > () - 76usize] ; ["Alignment of LoadExternal_Out"] [:: core :: mem :: align_of :: < LoadExternal_Out > () - 4usize] ; ["Offset of field: LoadExternal_Out::objectHandle"] [:: core :: mem :: offset_of ! (LoadExternal_Out , objectHandle) - 0usize] ; ["Offset of field: LoadExternal_Out::name"] [:: core :: mem :: offset_of ! (LoadExternal_Out , name) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_LoadExternal (in_ : * mut LoadExternal_In , out : * mut LoadExternal_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadPublic_In { pub objectHandle : TPMI_DH_OBJECT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadPublic_In"] [:: core :: mem :: size_of :: < ReadPublic_In > () - 4usize] ; ["Alignment of ReadPublic_In"] [:: core :: mem :: align_of :: < ReadPublic_In > () - 4usize] ; ["Offset of field: ReadPublic_In::objectHandle"] [:: core :: mem :: offset_of ! (ReadPublic_In , objectHandle) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ReadPublic_Out { pub outPublic : TPM2B_PUBLIC , pub name : TPM2B_NAME , pub qualifiedName : TPM2B_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadPublic_Out"] [:: core :: mem :: size_of :: < ReadPublic_Out > () - 756usize] ; ["Alignment of ReadPublic_Out"] [:: core :: mem :: align_of :: < ReadPublic_Out > () - 4usize] ; ["Offset of field: ReadPublic_Out::outPublic"] [:: core :: mem :: offset_of ! (ReadPublic_Out , outPublic) - 0usize] ; ["Offset of field: ReadPublic_Out::name"] [:: core :: mem :: offset_of ! (ReadPublic_Out , name) - 616usize] ; ["Offset of field: ReadPublic_Out::qualifiedName"] [:: core :: mem :: offset_of ! (ReadPublic_Out , qualifiedName) - 686usize] ; } ; unsafe extern "C" { pub fn TPM2_ReadPublic (in_ : * mut ReadPublic_In , out : * mut ReadPublic_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ActivateCredential_In { pub activateHandle : TPMI_DH_OBJECT , pub keyHandle : TPMI_DH_OBJECT , pub credentialBlob : TPM2B_ID_OBJECT , pub secret : TPM2B_ENCRYPTED_SECRET , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ActivateCredential_In"] [:: core :: mem :: size_of :: < ActivateCredential_In > () - 656usize] ; ["Alignment of ActivateCredential_In"] [:: core :: mem :: align_of :: < ActivateCredential_In > () - 4usize] ; ["Offset of field: ActivateCredential_In::activateHandle"] [:: core :: mem :: offset_of ! (ActivateCredential_In , activateHandle) - 0usize] ; ["Offset of field: ActivateCredential_In::keyHandle"] [:: core :: mem :: offset_of ! (ActivateCredential_In , keyHandle) - 4usize] ; ["Offset of field: ActivateCredential_In::credentialBlob"] [:: core :: mem :: offset_of ! (ActivateCredential_In , credentialBlob) - 8usize] ; ["Offset of field: ActivateCredential_In::secret"] [:: core :: mem :: offset_of ! (ActivateCredential_In , secret) - 142usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ActivateCredential_Out { pub certInfo : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ActivateCredential_Out"] [:: core :: mem :: size_of :: < ActivateCredential_Out > () - 66usize] ; ["Alignment of ActivateCredential_Out"] [:: core :: mem :: align_of :: < ActivateCredential_Out > () - 2usize] ; ["Offset of field: ActivateCredential_Out::certInfo"] [:: core :: mem :: offset_of ! (ActivateCredential_Out , certInfo) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_ActivateCredential (in_ : * mut ActivateCredential_In , out : * mut ActivateCredential_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct MakeCredential_In { pub handle : TPMI_DH_OBJECT , pub credential : TPM2B_DIGEST , pub objectName : TPM2B_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of MakeCredential_In"] [:: core :: mem :: size_of :: < MakeCredential_In > () - 140usize] ; ["Alignment of MakeCredential_In"] [:: core :: mem :: align_of :: < MakeCredential_In > () - 4usize] ; ["Offset of field: MakeCredential_In::handle"] [:: core :: mem :: offset_of ! (MakeCredential_In , handle) - 0usize] ; ["Offset of field: MakeCredential_In::credential"] [:: core :: mem :: offset_of ! (MakeCredential_In , credential) - 4usize] ; ["Offset of field: MakeCredential_In::objectName"] [:: core :: mem :: offset_of ! (MakeCredential_In , objectName) - 70usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct MakeCredential_Out { pub credentialBlob : TPM2B_ID_OBJECT , pub secret : TPM2B_ENCRYPTED_SECRET , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of MakeCredential_Out"] [:: core :: mem :: size_of :: < MakeCredential_Out > () - 648usize] ; ["Alignment of MakeCredential_Out"] [:: core :: mem :: align_of :: < MakeCredential_Out > () - 2usize] ; ["Offset of field: MakeCredential_Out::credentialBlob"] [:: core :: mem :: offset_of ! (MakeCredential_Out , credentialBlob) - 0usize] ; ["Offset of field: MakeCredential_Out::secret"] [:: core :: mem :: offset_of ! (MakeCredential_Out , secret) - 134usize] ; } ; unsafe extern "C" { pub fn TPM2_MakeCredential (in_ : * mut MakeCredential_In , out : * mut MakeCredential_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ObjectChangeAuth_In { pub objectHandle : TPMI_DH_OBJECT , pub parentHandle : TPMI_DH_OBJECT , pub newAuth : TPM2B_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ObjectChangeAuth_In"] [:: core :: mem :: size_of :: < ObjectChangeAuth_In > () - 76usize] ; ["Alignment of ObjectChangeAuth_In"] [:: core :: mem :: align_of :: < ObjectChangeAuth_In > () - 4usize] ; ["Offset of field: ObjectChangeAuth_In::objectHandle"] [:: core :: mem :: offset_of ! (ObjectChangeAuth_In , objectHandle) - 0usize] ; ["Offset of field: ObjectChangeAuth_In::parentHandle"] [:: core :: mem :: offset_of ! (ObjectChangeAuth_In , parentHandle) - 4usize] ; ["Offset of field: ObjectChangeAuth_In::newAuth"] [:: core :: mem :: offset_of ! (ObjectChangeAuth_In , newAuth) - 8usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ObjectChangeAuth_Out { pub outPrivate : TPM2B_PRIVATE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ObjectChangeAuth_Out"] [:: core :: mem :: size_of :: < ObjectChangeAuth_Out > () - 1552usize] ; ["Alignment of ObjectChangeAuth_Out"] [:: core :: mem :: align_of :: < ObjectChangeAuth_Out > () - 2usize] ; ["Offset of field: ObjectChangeAuth_Out::outPrivate"] [:: core :: mem :: offset_of ! (ObjectChangeAuth_Out , outPrivate) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_ObjectChangeAuth (in_ : * mut ObjectChangeAuth_In , out : * mut ObjectChangeAuth_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct Duplicate_In { pub objectHandle : TPMI_DH_OBJECT , pub newParentHandle : TPMI_DH_OBJECT , pub encryptionKeyIn : TPM2B_DATA , pub symmetricAlg : TPMT_SYM_DEF_OBJECT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Duplicate_In"] [:: core :: mem :: size_of :: < Duplicate_In > () - 84usize] ; ["Alignment of Duplicate_In"] [:: core :: mem :: align_of :: < Duplicate_In > () - 4usize] ; ["Offset of field: Duplicate_In::objectHandle"] [:: core :: mem :: offset_of ! (Duplicate_In , objectHandle) - 0usize] ; ["Offset of field: Duplicate_In::newParentHandle"] [:: core :: mem :: offset_of ! (Duplicate_In , newParentHandle) - 4usize] ; ["Offset of field: Duplicate_In::encryptionKeyIn"] [:: core :: mem :: offset_of ! (Duplicate_In , encryptionKeyIn) - 8usize] ; ["Offset of field: Duplicate_In::symmetricAlg"] [:: core :: mem :: offset_of ! (Duplicate_In , symmetricAlg) - 76usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Duplicate_Out { pub encryptionKeyOut : TPM2B_DATA , pub duplicate : TPM2B_PRIVATE , pub outSymSeed : TPM2B_ENCRYPTED_SECRET , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Duplicate_Out"] [:: core :: mem :: size_of :: < Duplicate_Out > () - 2134usize] ; ["Alignment of Duplicate_Out"] [:: core :: mem :: align_of :: < Duplicate_Out > () - 2usize] ; ["Offset of field: Duplicate_Out::encryptionKeyOut"] [:: core :: mem :: offset_of ! (Duplicate_Out , encryptionKeyOut) - 0usize] ; ["Offset of field: Duplicate_Out::duplicate"] [:: core :: mem :: offset_of ! (Duplicate_Out , duplicate) - 68usize] ; ["Offset of field: Duplicate_Out::outSymSeed"] [:: core :: mem :: offset_of ! (Duplicate_Out , outSymSeed) - 1620usize] ; } ; unsafe extern "C" { pub fn TPM2_Duplicate (in_ : * mut Duplicate_In , out : * mut Duplicate_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Rewrap_In { pub oldParent : TPMI_DH_OBJECT , pub newParent : TPMI_DH_OBJECT , pub inDuplicate : TPM2B_PRIVATE , pub name : TPM2B_NAME , pub inSymSeed : TPM2B_ENCRYPTED_SECRET , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Rewrap_In"] [:: core :: mem :: size_of :: < Rewrap_In > () - 2144usize] ; ["Alignment of Rewrap_In"] [:: core :: mem :: align_of :: < Rewrap_In > () - 4usize] ; ["Offset of field: Rewrap_In::oldParent"] [:: core :: mem :: offset_of ! (Rewrap_In , oldParent) - 0usize] ; ["Offset of field: Rewrap_In::newParent"] [:: core :: mem :: offset_of ! (Rewrap_In , newParent) - 4usize] ; ["Offset of field: Rewrap_In::inDuplicate"] [:: core :: mem :: offset_of ! (Rewrap_In , inDuplicate) - 8usize] ; ["Offset of field: Rewrap_In::name"] [:: core :: mem :: offset_of ! (Rewrap_In , name) - 1560usize] ; ["Offset of field: Rewrap_In::inSymSeed"] [:: core :: mem :: offset_of ! (Rewrap_In , inSymSeed) - 1630usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Rewrap_Out { pub outDuplicate : TPM2B_PRIVATE , pub outSymSeed : TPM2B_ENCRYPTED_SECRET , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Rewrap_Out"] [:: core :: mem :: size_of :: < Rewrap_Out > () - 2066usize] ; ["Alignment of Rewrap_Out"] [:: core :: mem :: align_of :: < Rewrap_Out > () - 2usize] ; ["Offset of field: Rewrap_Out::outDuplicate"] [:: core :: mem :: offset_of ! (Rewrap_Out , outDuplicate) - 0usize] ; ["Offset of field: Rewrap_Out::outSymSeed"] [:: core :: mem :: offset_of ! (Rewrap_Out , outSymSeed) - 1552usize] ; } ; unsafe extern "C" { pub fn TPM2_Rewrap (in_ : * mut Rewrap_In , out : * mut Rewrap_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct Import_In { pub parentHandle : TPMI_DH_OBJECT , pub encryptionKey : TPM2B_DATA , pub objectPublic : TPM2B_PUBLIC , pub duplicate : TPM2B_PRIVATE , pub inSymSeed : TPM2B_ENCRYPTED_SECRET , pub symmetricAlg : TPMT_SYM_DEF_OBJECT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Import_In"] [:: core :: mem :: size_of :: < Import_In > () - 2760usize] ; ["Alignment of Import_In"] [:: core :: mem :: align_of :: < Import_In > () - 4usize] ; ["Offset of field: Import_In::parentHandle"] [:: core :: mem :: offset_of ! (Import_In , parentHandle) - 0usize] ; ["Offset of field: Import_In::encryptionKey"] [:: core :: mem :: offset_of ! (Import_In , encryptionKey) - 4usize] ; ["Offset of field: Import_In::objectPublic"] [:: core :: mem :: offset_of ! (Import_In , objectPublic) - 72usize] ; ["Offset of field: Import_In::duplicate"] [:: core :: mem :: offset_of ! (Import_In , duplicate) - 688usize] ; ["Offset of field: Import_In::inSymSeed"] [:: core :: mem :: offset_of ! (Import_In , inSymSeed) - 2240usize] ; ["Offset of field: Import_In::symmetricAlg"] [:: core :: mem :: offset_of ! (Import_In , symmetricAlg) - 2754usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Import_Out { pub outPrivate : TPM2B_PRIVATE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Import_Out"] [:: core :: mem :: size_of :: < Import_Out > () - 1552usize] ; ["Alignment of Import_Out"] [:: core :: mem :: align_of :: < Import_Out > () - 2usize] ; ["Offset of field: Import_Out::outPrivate"] [:: core :: mem :: offset_of ! (Import_Out , outPrivate) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_Import (in_ : * mut Import_In , out : * mut Import_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct RSA_Encrypt_In { pub keyHandle : TPMI_DH_OBJECT , pub message : TPM2B_PUBLIC_KEY_RSA , pub inScheme : TPMT_RSA_DECRYPT , pub label : TPM2B_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RSA_Encrypt_In"] [:: core :: mem :: size_of :: < RSA_Encrypt_In > () - 592usize] ; ["Alignment of RSA_Encrypt_In"] [:: core :: mem :: align_of :: < RSA_Encrypt_In > () - 4usize] ; ["Offset of field: RSA_Encrypt_In::keyHandle"] [:: core :: mem :: offset_of ! (RSA_Encrypt_In , keyHandle) - 0usize] ; ["Offset of field: RSA_Encrypt_In::message"] [:: core :: mem :: offset_of ! (RSA_Encrypt_In , message) - 4usize] ; ["Offset of field: RSA_Encrypt_In::inScheme"] [:: core :: mem :: offset_of ! (RSA_Encrypt_In , inScheme) - 518usize] ; ["Offset of field: RSA_Encrypt_In::label"] [:: core :: mem :: offset_of ! (RSA_Encrypt_In , label) - 522usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RSA_Encrypt_Out { pub outData : TPM2B_PUBLIC_KEY_RSA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RSA_Encrypt_Out"] [:: core :: mem :: size_of :: < RSA_Encrypt_Out > () - 514usize] ; ["Alignment of RSA_Encrypt_Out"] [:: core :: mem :: align_of :: < RSA_Encrypt_Out > () - 2usize] ; ["Offset of field: RSA_Encrypt_Out::outData"] [:: core :: mem :: offset_of ! (RSA_Encrypt_Out , outData) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_RSA_Encrypt (in_ : * mut RSA_Encrypt_In , out : * mut RSA_Encrypt_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct RSA_Decrypt_In { pub keyHandle : TPMI_DH_OBJECT , pub cipherText : TPM2B_PUBLIC_KEY_RSA , pub inScheme : TPMT_RSA_DECRYPT , pub label : TPM2B_DATA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RSA_Decrypt_In"] [:: core :: mem :: size_of :: < RSA_Decrypt_In > () - 592usize] ; ["Alignment of RSA_Decrypt_In"] [:: core :: mem :: align_of :: < RSA_Decrypt_In > () - 4usize] ; ["Offset of field: RSA_Decrypt_In::keyHandle"] [:: core :: mem :: offset_of ! (RSA_Decrypt_In , keyHandle) - 0usize] ; ["Offset of field: RSA_Decrypt_In::cipherText"] [:: core :: mem :: offset_of ! (RSA_Decrypt_In , cipherText) - 4usize] ; ["Offset of field: RSA_Decrypt_In::inScheme"] [:: core :: mem :: offset_of ! (RSA_Decrypt_In , inScheme) - 518usize] ; ["Offset of field: RSA_Decrypt_In::label"] [:: core :: mem :: offset_of ! (RSA_Decrypt_In , label) - 522usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct RSA_Decrypt_Out { pub message : TPM2B_PUBLIC_KEY_RSA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of RSA_Decrypt_Out"] [:: core :: mem :: size_of :: < RSA_Decrypt_Out > () - 514usize] ; ["Alignment of RSA_Decrypt_Out"] [:: core :: mem :: align_of :: < RSA_Decrypt_Out > () - 2usize] ; ["Offset of field: RSA_Decrypt_Out::message"] [:: core :: mem :: offset_of ! (RSA_Decrypt_Out , message) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_RSA_Decrypt (in_ : * mut RSA_Decrypt_In , out : * mut RSA_Decrypt_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ECDH_KeyGen_In { pub keyHandle : TPMI_DH_OBJECT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ECDH_KeyGen_In"] [:: core :: mem :: size_of :: < ECDH_KeyGen_In > () - 4usize] ; ["Alignment of ECDH_KeyGen_In"] [:: core :: mem :: align_of :: < ECDH_KeyGen_In > () - 4usize] ; ["Offset of field: ECDH_KeyGen_In::keyHandle"] [:: core :: mem :: offset_of ! (ECDH_KeyGen_In , keyHandle) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ECDH_KeyGen_Out { pub zPoint : TPM2B_ECC_POINT , pub pubPoint : TPM2B_ECC_POINT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ECDH_KeyGen_Out"] [:: core :: mem :: size_of :: < ECDH_KeyGen_Out > () - 276usize] ; ["Alignment of ECDH_KeyGen_Out"] [:: core :: mem :: align_of :: < ECDH_KeyGen_Out > () - 2usize] ; ["Offset of field: ECDH_KeyGen_Out::zPoint"] [:: core :: mem :: offset_of ! (ECDH_KeyGen_Out , zPoint) - 0usize] ; ["Offset of field: ECDH_KeyGen_Out::pubPoint"] [:: core :: mem :: offset_of ! (ECDH_KeyGen_Out , pubPoint) - 138usize] ; } ; unsafe extern "C" { pub fn TPM2_ECDH_KeyGen (in_ : * mut ECDH_KeyGen_In , out : * mut ECDH_KeyGen_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ECDH_ZGen_In { pub keyHandle : TPMI_DH_OBJECT , pub inPoint : TPM2B_ECC_POINT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ECDH_ZGen_In"] [:: core :: mem :: size_of :: < ECDH_ZGen_In > () - 144usize] ; ["Alignment of ECDH_ZGen_In"] [:: core :: mem :: align_of :: < ECDH_ZGen_In > () - 4usize] ; ["Offset of field: ECDH_ZGen_In::keyHandle"] [:: core :: mem :: offset_of ! (ECDH_ZGen_In , keyHandle) - 0usize] ; ["Offset of field: ECDH_ZGen_In::inPoint"] [:: core :: mem :: offset_of ! (ECDH_ZGen_In , inPoint) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ECDH_ZGen_Out { pub outPoint : TPM2B_ECC_POINT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ECDH_ZGen_Out"] [:: core :: mem :: size_of :: < ECDH_ZGen_Out > () - 138usize] ; ["Alignment of ECDH_ZGen_Out"] [:: core :: mem :: align_of :: < ECDH_ZGen_Out > () - 2usize] ; ["Offset of field: ECDH_ZGen_Out::outPoint"] [:: core :: mem :: offset_of ! (ECDH_ZGen_Out , outPoint) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_ECDH_ZGen (in_ : * mut ECDH_ZGen_In , out : * mut ECDH_ZGen_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ECC_Parameters_In { pub curveID : TPMI_ECC_CURVE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ECC_Parameters_In"] [:: core :: mem :: size_of :: < ECC_Parameters_In > () - 2usize] ; ["Alignment of ECC_Parameters_In"] [:: core :: mem :: align_of :: < ECC_Parameters_In > () - 2usize] ; ["Offset of field: ECC_Parameters_In::curveID"] [:: core :: mem :: offset_of ! (ECC_Parameters_In , curveID) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct ECC_Parameters_Out { pub parameters : TPMS_ALGORITHM_DETAIL_ECC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ECC_Parameters_Out"] [:: core :: mem :: size_of :: < ECC_Parameters_Out > () - 490usize] ; ["Alignment of ECC_Parameters_Out"] [:: core :: mem :: align_of :: < ECC_Parameters_Out > () - 2usize] ; ["Offset of field: ECC_Parameters_Out::parameters"] [:: core :: mem :: offset_of ! (ECC_Parameters_Out , parameters) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_ECC_Parameters (in_ : * mut ECC_Parameters_In , out : * mut ECC_Parameters_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ZGen_2Phase_In { pub keyA : TPMI_DH_OBJECT , pub inQsB : TPM2B_ECC_POINT , pub inQeB : TPM2B_ECC_POINT , pub inScheme : TPMI_ECC_KEY_EXCHANGE , pub counter : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ZGen_2Phase_In"] [:: core :: mem :: size_of :: < ZGen_2Phase_In > () - 284usize] ; ["Alignment of ZGen_2Phase_In"] [:: core :: mem :: align_of :: < ZGen_2Phase_In > () - 4usize] ; ["Offset of field: ZGen_2Phase_In::keyA"] [:: core :: mem :: offset_of ! (ZGen_2Phase_In , keyA) - 0usize] ; ["Offset of field: ZGen_2Phase_In::inQsB"] [:: core :: mem :: offset_of ! (ZGen_2Phase_In , inQsB) - 4usize] ; ["Offset of field: ZGen_2Phase_In::inQeB"] [:: core :: mem :: offset_of ! (ZGen_2Phase_In , inQeB) - 142usize] ; ["Offset of field: ZGen_2Phase_In::inScheme"] [:: core :: mem :: offset_of ! (ZGen_2Phase_In , inScheme) - 280usize] ; ["Offset of field: ZGen_2Phase_In::counter"] [:: core :: mem :: offset_of ! (ZGen_2Phase_In , counter) - 282usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ZGen_2Phase_Out { pub outZ1 : TPM2B_ECC_POINT , pub outZ2 : TPM2B_ECC_POINT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ZGen_2Phase_Out"] [:: core :: mem :: size_of :: < ZGen_2Phase_Out > () - 276usize] ; ["Alignment of ZGen_2Phase_Out"] [:: core :: mem :: align_of :: < ZGen_2Phase_Out > () - 2usize] ; ["Offset of field: ZGen_2Phase_Out::outZ1"] [:: core :: mem :: offset_of ! (ZGen_2Phase_Out , outZ1) - 0usize] ; ["Offset of field: ZGen_2Phase_Out::outZ2"] [:: core :: mem :: offset_of ! (ZGen_2Phase_Out , outZ2) - 138usize] ; } ; unsafe extern "C" { pub fn TPM2_ZGen_2Phase (in_ : * mut ZGen_2Phase_In , out : * mut ZGen_2Phase_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptDecrypt_In { pub keyHandle : TPMI_DH_OBJECT , pub decrypt : TPMI_YES_NO , pub mode : TPMI_ALG_SYM_MODE , pub ivIn : TPM2B_IV , pub inData : TPM2B_MAX_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptDecrypt_In"] [:: core :: mem :: size_of :: < EncryptDecrypt_In > () - 1056usize] ; ["Alignment of EncryptDecrypt_In"] [:: core :: mem :: align_of :: < EncryptDecrypt_In > () - 4usize] ; ["Offset of field: EncryptDecrypt_In::keyHandle"] [:: core :: mem :: offset_of ! (EncryptDecrypt_In , keyHandle) - 0usize] ; ["Offset of field: EncryptDecrypt_In::decrypt"] [:: core :: mem :: offset_of ! (EncryptDecrypt_In , decrypt) - 4usize] ; ["Offset of field: EncryptDecrypt_In::mode"] [:: core :: mem :: offset_of ! (EncryptDecrypt_In , mode) - 6usize] ; ["Offset of field: EncryptDecrypt_In::ivIn"] [:: core :: mem :: offset_of ! (EncryptDecrypt_In , ivIn) - 8usize] ; ["Offset of field: EncryptDecrypt_In::inData"] [:: core :: mem :: offset_of ! (EncryptDecrypt_In , inData) - 30usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptDecrypt_Out { pub outData : TPM2B_MAX_BUFFER , pub ivOut : TPM2B_IV , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptDecrypt_Out"] [:: core :: mem :: size_of :: < EncryptDecrypt_Out > () - 1048usize] ; ["Alignment of EncryptDecrypt_Out"] [:: core :: mem :: align_of :: < EncryptDecrypt_Out > () - 2usize] ; ["Offset of field: EncryptDecrypt_Out::outData"] [:: core :: mem :: offset_of ! (EncryptDecrypt_Out , outData) - 0usize] ; ["Offset of field: EncryptDecrypt_Out::ivOut"] [:: core :: mem :: offset_of ! (EncryptDecrypt_Out , ivOut) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_EncryptDecrypt (in_ : * mut EncryptDecrypt_In , out : * mut EncryptDecrypt_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptDecrypt2_In { pub keyHandle : TPMI_DH_OBJECT , pub inData : TPM2B_MAX_BUFFER , pub decrypt : TPMI_YES_NO , pub mode : TPMI_ALG_SYM_MODE , pub ivIn : TPM2B_IV , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptDecrypt2_In"] [:: core :: mem :: size_of :: < EncryptDecrypt2_In > () - 1056usize] ; ["Alignment of EncryptDecrypt2_In"] [:: core :: mem :: align_of :: < EncryptDecrypt2_In > () - 4usize] ; ["Offset of field: EncryptDecrypt2_In::keyHandle"] [:: core :: mem :: offset_of ! (EncryptDecrypt2_In , keyHandle) - 0usize] ; ["Offset of field: EncryptDecrypt2_In::inData"] [:: core :: mem :: offset_of ! (EncryptDecrypt2_In , inData) - 4usize] ; ["Offset of field: EncryptDecrypt2_In::decrypt"] [:: core :: mem :: offset_of ! (EncryptDecrypt2_In , decrypt) - 1030usize] ; ["Offset of field: EncryptDecrypt2_In::mode"] [:: core :: mem :: offset_of ! (EncryptDecrypt2_In , mode) - 1032usize] ; ["Offset of field: EncryptDecrypt2_In::ivIn"] [:: core :: mem :: offset_of ! (EncryptDecrypt2_In , ivIn) - 1034usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EncryptDecrypt2_Out { pub outData : TPM2B_MAX_BUFFER , pub ivOut : TPM2B_IV , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EncryptDecrypt2_Out"] [:: core :: mem :: size_of :: < EncryptDecrypt2_Out > () - 1048usize] ; ["Alignment of EncryptDecrypt2_Out"] [:: core :: mem :: align_of :: < EncryptDecrypt2_Out > () - 2usize] ; ["Offset of field: EncryptDecrypt2_Out::outData"] [:: core :: mem :: offset_of ! (EncryptDecrypt2_Out , outData) - 0usize] ; ["Offset of field: EncryptDecrypt2_Out::ivOut"] [:: core :: mem :: offset_of ! (EncryptDecrypt2_Out , ivOut) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_EncryptDecrypt2 (in_ : * mut EncryptDecrypt2_In , out : * mut EncryptDecrypt2_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Hash_In { pub data : TPM2B_MAX_BUFFER , pub hashAlg : TPMI_ALG_HASH , pub hierarchy : TPMI_RH_HIERARCHY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hash_In"] [:: core :: mem :: size_of :: < Hash_In > () - 1032usize] ; ["Alignment of Hash_In"] [:: core :: mem :: align_of :: < Hash_In > () - 4usize] ; ["Offset of field: Hash_In::data"] [:: core :: mem :: offset_of ! (Hash_In , data) - 0usize] ; ["Offset of field: Hash_In::hashAlg"] [:: core :: mem :: offset_of ! (Hash_In , hashAlg) - 1026usize] ; ["Offset of field: Hash_In::hierarchy"] [:: core :: mem :: offset_of ! (Hash_In , hierarchy) - 1028usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Hash_Out { pub outHash : TPM2B_DIGEST , pub validation : TPMT_TK_HASHCHECK , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Hash_Out"] [:: core :: mem :: size_of :: < Hash_Out > () - 144usize] ; ["Alignment of Hash_Out"] [:: core :: mem :: align_of :: < Hash_Out > () - 4usize] ; ["Offset of field: Hash_Out::outHash"] [:: core :: mem :: offset_of ! (Hash_Out , outHash) - 0usize] ; ["Offset of field: Hash_Out::validation"] [:: core :: mem :: offset_of ! (Hash_Out , validation) - 68usize] ; } ; unsafe extern "C" { pub fn TPM2_Hash (in_ : * mut Hash_In , out : * mut Hash_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct HMAC_In { pub handle : TPMI_DH_OBJECT , pub buffer : TPM2B_MAX_BUFFER , pub hashAlg : TPMI_ALG_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of HMAC_In"] [:: core :: mem :: size_of :: < HMAC_In > () - 1032usize] ; ["Alignment of HMAC_In"] [:: core :: mem :: align_of :: < HMAC_In > () - 4usize] ; ["Offset of field: HMAC_In::handle"] [:: core :: mem :: offset_of ! (HMAC_In , handle) - 0usize] ; ["Offset of field: HMAC_In::buffer"] [:: core :: mem :: offset_of ! (HMAC_In , buffer) - 4usize] ; ["Offset of field: HMAC_In::hashAlg"] [:: core :: mem :: offset_of ! (HMAC_In , hashAlg) - 1030usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct HMAC_Out { pub outHMAC : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of HMAC_Out"] [:: core :: mem :: size_of :: < HMAC_Out > () - 66usize] ; ["Alignment of HMAC_Out"] [:: core :: mem :: align_of :: < HMAC_Out > () - 2usize] ; ["Offset of field: HMAC_Out::outHMAC"] [:: core :: mem :: offset_of ! (HMAC_Out , outHMAC) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_HMAC (in_ : * mut HMAC_In , out : * mut HMAC_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct HMAC_Start_In { pub handle : TPMI_DH_OBJECT , pub auth : TPM2B_AUTH , pub hashAlg : TPMI_ALG_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of HMAC_Start_In"] [:: core :: mem :: size_of :: < HMAC_Start_In > () - 72usize] ; ["Alignment of HMAC_Start_In"] [:: core :: mem :: align_of :: < HMAC_Start_In > () - 4usize] ; ["Offset of field: HMAC_Start_In::handle"] [:: core :: mem :: offset_of ! (HMAC_Start_In , handle) - 0usize] ; ["Offset of field: HMAC_Start_In::auth"] [:: core :: mem :: offset_of ! (HMAC_Start_In , auth) - 4usize] ; ["Offset of field: HMAC_Start_In::hashAlg"] [:: core :: mem :: offset_of ! (HMAC_Start_In , hashAlg) - 70usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct HMAC_Start_Out { pub sequenceHandle : TPMI_DH_OBJECT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of HMAC_Start_Out"] [:: core :: mem :: size_of :: < HMAC_Start_Out > () - 4usize] ; ["Alignment of HMAC_Start_Out"] [:: core :: mem :: align_of :: < HMAC_Start_Out > () - 4usize] ; ["Offset of field: HMAC_Start_Out::sequenceHandle"] [:: core :: mem :: offset_of ! (HMAC_Start_Out , sequenceHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_HMAC_Start (in_ : * mut HMAC_Start_In , out : * mut HMAC_Start_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct HashSequenceStart_In { pub auth : TPM2B_AUTH , pub hashAlg : TPMI_ALG_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of HashSequenceStart_In"] [:: core :: mem :: size_of :: < HashSequenceStart_In > () - 68usize] ; ["Alignment of HashSequenceStart_In"] [:: core :: mem :: align_of :: < HashSequenceStart_In > () - 2usize] ; ["Offset of field: HashSequenceStart_In::auth"] [:: core :: mem :: offset_of ! (HashSequenceStart_In , auth) - 0usize] ; ["Offset of field: HashSequenceStart_In::hashAlg"] [:: core :: mem :: offset_of ! (HashSequenceStart_In , hashAlg) - 66usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct HashSequenceStart_Out { pub sequenceHandle : TPMI_DH_OBJECT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of HashSequenceStart_Out"] [:: core :: mem :: size_of :: < HashSequenceStart_Out > () - 4usize] ; ["Alignment of HashSequenceStart_Out"] [:: core :: mem :: align_of :: < HashSequenceStart_Out > () - 4usize] ; ["Offset of field: HashSequenceStart_Out::sequenceHandle"] [:: core :: mem :: offset_of ! (HashSequenceStart_Out , sequenceHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_HashSequenceStart (in_ : * mut HashSequenceStart_In , out : * mut HashSequenceStart_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SequenceUpdate_In { pub sequenceHandle : TPMI_DH_OBJECT , pub buffer : TPM2B_MAX_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SequenceUpdate_In"] [:: core :: mem :: size_of :: < SequenceUpdate_In > () - 1032usize] ; ["Alignment of SequenceUpdate_In"] [:: core :: mem :: align_of :: < SequenceUpdate_In > () - 4usize] ; ["Offset of field: SequenceUpdate_In::sequenceHandle"] [:: core :: mem :: offset_of ! (SequenceUpdate_In , sequenceHandle) - 0usize] ; ["Offset of field: SequenceUpdate_In::buffer"] [:: core :: mem :: offset_of ! (SequenceUpdate_In , buffer) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_SequenceUpdate (in_ : * mut SequenceUpdate_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SequenceComplete_In { pub sequenceHandle : TPMI_DH_OBJECT , pub buffer : TPM2B_MAX_BUFFER , pub hierarchy : TPMI_RH_HIERARCHY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SequenceComplete_In"] [:: core :: mem :: size_of :: < SequenceComplete_In > () - 1036usize] ; ["Alignment of SequenceComplete_In"] [:: core :: mem :: align_of :: < SequenceComplete_In > () - 4usize] ; ["Offset of field: SequenceComplete_In::sequenceHandle"] [:: core :: mem :: offset_of ! (SequenceComplete_In , sequenceHandle) - 0usize] ; ["Offset of field: SequenceComplete_In::buffer"] [:: core :: mem :: offset_of ! (SequenceComplete_In , buffer) - 4usize] ; ["Offset of field: SequenceComplete_In::hierarchy"] [:: core :: mem :: offset_of ! (SequenceComplete_In , hierarchy) - 1032usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SequenceComplete_Out { pub result : TPM2B_DIGEST , pub validation : TPMT_TK_HASHCHECK , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SequenceComplete_Out"] [:: core :: mem :: size_of :: < SequenceComplete_Out > () - 144usize] ; ["Alignment of SequenceComplete_Out"] [:: core :: mem :: align_of :: < SequenceComplete_Out > () - 4usize] ; ["Offset of field: SequenceComplete_Out::result"] [:: core :: mem :: offset_of ! (SequenceComplete_Out , result) - 0usize] ; ["Offset of field: SequenceComplete_Out::validation"] [:: core :: mem :: offset_of ! (SequenceComplete_Out , validation) - 68usize] ; } ; unsafe extern "C" { pub fn TPM2_SequenceComplete (in_ : * mut SequenceComplete_In , out : * mut SequenceComplete_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EventSequenceComplete_In { pub pcrHandle : TPMI_DH_PCR , pub sequenceHandle : TPMI_DH_OBJECT , pub buffer : TPM2B_MAX_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EventSequenceComplete_In"] [:: core :: mem :: size_of :: < EventSequenceComplete_In > () - 1036usize] ; ["Alignment of EventSequenceComplete_In"] [:: core :: mem :: align_of :: < EventSequenceComplete_In > () - 4usize] ; ["Offset of field: EventSequenceComplete_In::pcrHandle"] [:: core :: mem :: offset_of ! (EventSequenceComplete_In , pcrHandle) - 0usize] ; ["Offset of field: EventSequenceComplete_In::sequenceHandle"] [:: core :: mem :: offset_of ! (EventSequenceComplete_In , sequenceHandle) - 4usize] ; ["Offset of field: EventSequenceComplete_In::buffer"] [:: core :: mem :: offset_of ! (EventSequenceComplete_In , buffer) - 8usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct EventSequenceComplete_Out { pub results : TPML_DIGEST_VALUES , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EventSequenceComplete_Out"] [:: core :: mem :: size_of :: < EventSequenceComplete_Out > () - 336usize] ; ["Alignment of EventSequenceComplete_Out"] [:: core :: mem :: align_of :: < EventSequenceComplete_Out > () - 4usize] ; ["Offset of field: EventSequenceComplete_Out::results"] [:: core :: mem :: offset_of ! (EventSequenceComplete_Out , results) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_EventSequenceComplete (in_ : * mut EventSequenceComplete_In , out : * mut EventSequenceComplete_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct Certify_In { pub objectHandle : TPMI_DH_OBJECT , pub signHandle : TPMI_DH_OBJECT , pub qualifyingData : TPM2B_DATA , pub inScheme : TPMT_SIG_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Certify_In"] [:: core :: mem :: size_of :: < Certify_In > () - 84usize] ; ["Alignment of Certify_In"] [:: core :: mem :: align_of :: < Certify_In > () - 4usize] ; ["Offset of field: Certify_In::objectHandle"] [:: core :: mem :: offset_of ! (Certify_In , objectHandle) - 0usize] ; ["Offset of field: Certify_In::signHandle"] [:: core :: mem :: offset_of ! (Certify_In , signHandle) - 4usize] ; ["Offset of field: Certify_In::qualifyingData"] [:: core :: mem :: offset_of ! (Certify_In , qualifyingData) - 8usize] ; ["Offset of field: Certify_In::inScheme"] [:: core :: mem :: offset_of ! (Certify_In , inScheme) - 76usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Certify_Out { pub certifyInfo : TPM2B_ATTEST , pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Certify_Out"] [:: core :: mem :: size_of :: < Certify_Out > () - 1544usize] ; ["Alignment of Certify_Out"] [:: core :: mem :: align_of :: < Certify_Out > () - 2usize] ; ["Offset of field: Certify_Out::certifyInfo"] [:: core :: mem :: offset_of ! (Certify_Out , certifyInfo) - 0usize] ; ["Offset of field: Certify_Out::signature"] [:: core :: mem :: offset_of ! (Certify_Out , signature) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_Certify (in_ : * mut Certify_In , out : * mut Certify_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct CertifyCreation_In { pub signHandle : TPMI_DH_OBJECT , pub objectHandle : TPMI_DH_OBJECT , pub qualifyingData : TPM2B_DATA , pub creationHash : TPM2B_DIGEST , pub inScheme : TPMT_SIG_SCHEME , pub creationTicket : TPMT_TK_CREATION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertifyCreation_In"] [:: core :: mem :: size_of :: < CertifyCreation_In > () - 224usize] ; ["Alignment of CertifyCreation_In"] [:: core :: mem :: align_of :: < CertifyCreation_In > () - 4usize] ; ["Offset of field: CertifyCreation_In::signHandle"] [:: core :: mem :: offset_of ! (CertifyCreation_In , signHandle) - 0usize] ; ["Offset of field: CertifyCreation_In::objectHandle"] [:: core :: mem :: offset_of ! (CertifyCreation_In , objectHandle) - 4usize] ; ["Offset of field: CertifyCreation_In::qualifyingData"] [:: core :: mem :: offset_of ! (CertifyCreation_In , qualifyingData) - 8usize] ; ["Offset of field: CertifyCreation_In::creationHash"] [:: core :: mem :: offset_of ! (CertifyCreation_In , creationHash) - 76usize] ; ["Offset of field: CertifyCreation_In::inScheme"] [:: core :: mem :: offset_of ! (CertifyCreation_In , inScheme) - 142usize] ; ["Offset of field: CertifyCreation_In::creationTicket"] [:: core :: mem :: offset_of ! (CertifyCreation_In , creationTicket) - 148usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct CertifyCreation_Out { pub certifyInfo : TPM2B_ATTEST , pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CertifyCreation_Out"] [:: core :: mem :: size_of :: < CertifyCreation_Out > () - 1544usize] ; ["Alignment of CertifyCreation_Out"] [:: core :: mem :: align_of :: < CertifyCreation_Out > () - 2usize] ; ["Offset of field: CertifyCreation_Out::certifyInfo"] [:: core :: mem :: offset_of ! (CertifyCreation_Out , certifyInfo) - 0usize] ; ["Offset of field: CertifyCreation_Out::signature"] [:: core :: mem :: offset_of ! (CertifyCreation_Out , signature) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_CertifyCreation (in_ : * mut CertifyCreation_In , out : * mut CertifyCreation_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct Quote_In { pub signHandle : TPMI_DH_OBJECT , pub qualifyingData : TPM2B_DATA , pub inScheme : TPMT_SIG_SCHEME , pub PCRselect : TPML_PCR_SELECTION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Quote_In"] [:: core :: mem :: size_of :: < Quote_In > () - 116usize] ; ["Alignment of Quote_In"] [:: core :: mem :: align_of :: < Quote_In > () - 4usize] ; ["Offset of field: Quote_In::signHandle"] [:: core :: mem :: offset_of ! (Quote_In , signHandle) - 0usize] ; ["Offset of field: Quote_In::qualifyingData"] [:: core :: mem :: offset_of ! (Quote_In , qualifyingData) - 4usize] ; ["Offset of field: Quote_In::inScheme"] [:: core :: mem :: offset_of ! (Quote_In , inScheme) - 72usize] ; ["Offset of field: Quote_In::PCRselect"] [:: core :: mem :: offset_of ! (Quote_In , PCRselect) - 80usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Quote_Out { pub quoted : TPM2B_ATTEST , pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Quote_Out"] [:: core :: mem :: size_of :: < Quote_Out > () - 1544usize] ; ["Alignment of Quote_Out"] [:: core :: mem :: align_of :: < Quote_Out > () - 2usize] ; ["Offset of field: Quote_Out::quoted"] [:: core :: mem :: offset_of ! (Quote_Out , quoted) - 0usize] ; ["Offset of field: Quote_Out::signature"] [:: core :: mem :: offset_of ! (Quote_Out , signature) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_Quote (in_ : * mut Quote_In , out : * mut Quote_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct GetSessionAuditDigest_In { pub privacyAdminHandle : TPMI_RH_ENDORSEMENT , pub signHandle : TPMI_DH_OBJECT , pub sessionHandle : TPMI_SH_HMAC , pub qualifyingData : TPM2B_DATA , pub inScheme : TPMT_SIG_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetSessionAuditDigest_In"] [:: core :: mem :: size_of :: < GetSessionAuditDigest_In > () - 88usize] ; ["Alignment of GetSessionAuditDigest_In"] [:: core :: mem :: align_of :: < GetSessionAuditDigest_In > () - 4usize] ; ["Offset of field: GetSessionAuditDigest_In::privacyAdminHandle"] [:: core :: mem :: offset_of ! (GetSessionAuditDigest_In , privacyAdminHandle) - 0usize] ; ["Offset of field: GetSessionAuditDigest_In::signHandle"] [:: core :: mem :: offset_of ! (GetSessionAuditDigest_In , signHandle) - 4usize] ; ["Offset of field: GetSessionAuditDigest_In::sessionHandle"] [:: core :: mem :: offset_of ! (GetSessionAuditDigest_In , sessionHandle) - 8usize] ; ["Offset of field: GetSessionAuditDigest_In::qualifyingData"] [:: core :: mem :: offset_of ! (GetSessionAuditDigest_In , qualifyingData) - 12usize] ; ["Offset of field: GetSessionAuditDigest_In::inScheme"] [:: core :: mem :: offset_of ! (GetSessionAuditDigest_In , inScheme) - 80usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct GetSessionAuditDigest_Out { pub auditInfo : TPM2B_ATTEST , pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetSessionAuditDigest_Out"] [:: core :: mem :: size_of :: < GetSessionAuditDigest_Out > () - 1544usize] ; ["Alignment of GetSessionAuditDigest_Out"] [:: core :: mem :: align_of :: < GetSessionAuditDigest_Out > () - 2usize] ; ["Offset of field: GetSessionAuditDigest_Out::auditInfo"] [:: core :: mem :: offset_of ! (GetSessionAuditDigest_Out , auditInfo) - 0usize] ; ["Offset of field: GetSessionAuditDigest_Out::signature"] [:: core :: mem :: offset_of ! (GetSessionAuditDigest_Out , signature) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_GetSessionAuditDigest (in_ : * mut GetSessionAuditDigest_In , out : * mut GetSessionAuditDigest_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct GetCommandAuditDigest_In { pub privacyHandle : TPMI_RH_ENDORSEMENT , pub signHandle : TPMI_DH_OBJECT , pub qualifyingData : TPM2B_DATA , pub inScheme : TPMT_SIG_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetCommandAuditDigest_In"] [:: core :: mem :: size_of :: < GetCommandAuditDigest_In > () - 84usize] ; ["Alignment of GetCommandAuditDigest_In"] [:: core :: mem :: align_of :: < GetCommandAuditDigest_In > () - 4usize] ; ["Offset of field: GetCommandAuditDigest_In::privacyHandle"] [:: core :: mem :: offset_of ! (GetCommandAuditDigest_In , privacyHandle) - 0usize] ; ["Offset of field: GetCommandAuditDigest_In::signHandle"] [:: core :: mem :: offset_of ! (GetCommandAuditDigest_In , signHandle) - 4usize] ; ["Offset of field: GetCommandAuditDigest_In::qualifyingData"] [:: core :: mem :: offset_of ! (GetCommandAuditDigest_In , qualifyingData) - 8usize] ; ["Offset of field: GetCommandAuditDigest_In::inScheme"] [:: core :: mem :: offset_of ! (GetCommandAuditDigest_In , inScheme) - 76usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct GetCommandAuditDigest_Out { pub auditInfo : TPM2B_ATTEST , pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetCommandAuditDigest_Out"] [:: core :: mem :: size_of :: < GetCommandAuditDigest_Out > () - 1544usize] ; ["Alignment of GetCommandAuditDigest_Out"] [:: core :: mem :: align_of :: < GetCommandAuditDigest_Out > () - 2usize] ; ["Offset of field: GetCommandAuditDigest_Out::auditInfo"] [:: core :: mem :: offset_of ! (GetCommandAuditDigest_Out , auditInfo) - 0usize] ; ["Offset of field: GetCommandAuditDigest_Out::signature"] [:: core :: mem :: offset_of ! (GetCommandAuditDigest_Out , signature) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_GetCommandAuditDigest (in_ : * mut GetCommandAuditDigest_In , out : * mut GetCommandAuditDigest_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct GetTime_In { pub privacyAdminHandle : TPMI_RH_ENDORSEMENT , pub signHandle : TPMI_DH_OBJECT , pub qualifyingData : TPM2B_DATA , pub inScheme : TPMT_SIG_SCHEME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetTime_In"] [:: core :: mem :: size_of :: < GetTime_In > () - 84usize] ; ["Alignment of GetTime_In"] [:: core :: mem :: align_of :: < GetTime_In > () - 4usize] ; ["Offset of field: GetTime_In::privacyAdminHandle"] [:: core :: mem :: offset_of ! (GetTime_In , privacyAdminHandle) - 0usize] ; ["Offset of field: GetTime_In::signHandle"] [:: core :: mem :: offset_of ! (GetTime_In , signHandle) - 4usize] ; ["Offset of field: GetTime_In::qualifyingData"] [:: core :: mem :: offset_of ! (GetTime_In , qualifyingData) - 8usize] ; ["Offset of field: GetTime_In::inScheme"] [:: core :: mem :: offset_of ! (GetTime_In , inScheme) - 76usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct GetTime_Out { pub timeInfo : TPM2B_ATTEST , pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetTime_Out"] [:: core :: mem :: size_of :: < GetTime_Out > () - 1544usize] ; ["Alignment of GetTime_Out"] [:: core :: mem :: align_of :: < GetTime_Out > () - 2usize] ; ["Offset of field: GetTime_Out::timeInfo"] [:: core :: mem :: offset_of ! (GetTime_Out , timeInfo) - 0usize] ; ["Offset of field: GetTime_Out::signature"] [:: core :: mem :: offset_of ! (GetTime_Out , signature) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_GetTime (in_ : * mut GetTime_In , out : * mut GetTime_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Commit_In { pub signHandle : TPMI_DH_OBJECT , pub P1 : TPM2B_ECC_POINT , pub s2 : TPM2B_SENSITIVE_DATA , pub y2 : TPM2B_ECC_PARAMETER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Commit_In"] [:: core :: mem :: size_of :: < Commit_In > () - 340usize] ; ["Alignment of Commit_In"] [:: core :: mem :: align_of :: < Commit_In > () - 4usize] ; ["Offset of field: Commit_In::signHandle"] [:: core :: mem :: offset_of ! (Commit_In , signHandle) - 0usize] ; ["Offset of field: Commit_In::P1"] [:: core :: mem :: offset_of ! (Commit_In , P1) - 4usize] ; ["Offset of field: Commit_In::s2"] [:: core :: mem :: offset_of ! (Commit_In , s2) - 142usize] ; ["Offset of field: Commit_In::y2"] [:: core :: mem :: offset_of ! (Commit_In , y2) - 272usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Commit_Out { pub K : TPM2B_ECC_POINT , pub L : TPM2B_ECC_POINT , pub E : TPM2B_ECC_POINT , pub counter : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Commit_Out"] [:: core :: mem :: size_of :: < Commit_Out > () - 416usize] ; ["Alignment of Commit_Out"] [:: core :: mem :: align_of :: < Commit_Out > () - 2usize] ; ["Offset of field: Commit_Out::K"] [:: core :: mem :: offset_of ! (Commit_Out , K) - 0usize] ; ["Offset of field: Commit_Out::L"] [:: core :: mem :: offset_of ! (Commit_Out , L) - 138usize] ; ["Offset of field: Commit_Out::E"] [:: core :: mem :: offset_of ! (Commit_Out , E) - 276usize] ; ["Offset of field: Commit_Out::counter"] [:: core :: mem :: offset_of ! (Commit_Out , counter) - 414usize] ; } ; unsafe extern "C" { pub fn TPM2_Commit (in_ : * mut Commit_In , out : * mut Commit_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EC_Ephemeral_In { pub curveID : TPMI_ECC_CURVE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EC_Ephemeral_In"] [:: core :: mem :: size_of :: < EC_Ephemeral_In > () - 2usize] ; ["Alignment of EC_Ephemeral_In"] [:: core :: mem :: align_of :: < EC_Ephemeral_In > () - 2usize] ; ["Offset of field: EC_Ephemeral_In::curveID"] [:: core :: mem :: offset_of ! (EC_Ephemeral_In , curveID) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EC_Ephemeral_Out { pub Q : TPM2B_ECC_POINT , pub counter : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EC_Ephemeral_Out"] [:: core :: mem :: size_of :: < EC_Ephemeral_Out > () - 140usize] ; ["Alignment of EC_Ephemeral_Out"] [:: core :: mem :: align_of :: < EC_Ephemeral_Out > () - 2usize] ; ["Offset of field: EC_Ephemeral_Out::Q"] [:: core :: mem :: offset_of ! (EC_Ephemeral_Out , Q) - 0usize] ; ["Offset of field: EC_Ephemeral_Out::counter"] [:: core :: mem :: offset_of ! (EC_Ephemeral_Out , counter) - 138usize] ; } ; unsafe extern "C" { pub fn TPM2_EC_Ephemeral (in_ : * mut EC_Ephemeral_In , out : * mut EC_Ephemeral_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct VerifySignature_In { pub keyHandle : TPMI_DH_OBJECT , pub digest : TPM2B_DIGEST , pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of VerifySignature_In"] [:: core :: mem :: size_of :: < VerifySignature_In > () - 588usize] ; ["Alignment of VerifySignature_In"] [:: core :: mem :: align_of :: < VerifySignature_In > () - 4usize] ; ["Offset of field: VerifySignature_In::keyHandle"] [:: core :: mem :: offset_of ! (VerifySignature_In , keyHandle) - 0usize] ; ["Offset of field: VerifySignature_In::digest"] [:: core :: mem :: offset_of ! (VerifySignature_In , digest) - 4usize] ; ["Offset of field: VerifySignature_In::signature"] [:: core :: mem :: offset_of ! (VerifySignature_In , signature) - 70usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct VerifySignature_Out { pub validation : TPMT_TK_VERIFIED , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of VerifySignature_Out"] [:: core :: mem :: size_of :: < VerifySignature_Out > () - 76usize] ; ["Alignment of VerifySignature_Out"] [:: core :: mem :: align_of :: < VerifySignature_Out > () - 4usize] ; ["Offset of field: VerifySignature_Out::validation"] [:: core :: mem :: offset_of ! (VerifySignature_Out , validation) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_VerifySignature (in_ : * mut VerifySignature_In , out : * mut VerifySignature_Out) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct Sign_In { pub keyHandle : TPMI_DH_OBJECT , pub digest : TPM2B_DIGEST , pub inScheme : TPMT_SIG_SCHEME , pub validation : TPMT_TK_HASHCHECK , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Sign_In"] [:: core :: mem :: size_of :: < Sign_In > () - 152usize] ; ["Alignment of Sign_In"] [:: core :: mem :: align_of :: < Sign_In > () - 4usize] ; ["Offset of field: Sign_In::keyHandle"] [:: core :: mem :: offset_of ! (Sign_In , keyHandle) - 0usize] ; ["Offset of field: Sign_In::digest"] [:: core :: mem :: offset_of ! (Sign_In , digest) - 4usize] ; ["Offset of field: Sign_In::inScheme"] [:: core :: mem :: offset_of ! (Sign_In , inScheme) - 70usize] ; ["Offset of field: Sign_In::validation"] [:: core :: mem :: offset_of ! (Sign_In , validation) - 76usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct Sign_Out { pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Sign_Out"] [:: core :: mem :: size_of :: < Sign_Out > () - 518usize] ; ["Alignment of Sign_Out"] [:: core :: mem :: align_of :: < Sign_Out > () - 2usize] ; ["Offset of field: Sign_Out::signature"] [:: core :: mem :: offset_of ! (Sign_Out , signature) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_Sign (in_ : * mut Sign_In , out : * mut Sign_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SetCommandCodeAuditStatus_In { pub auth : TPMI_RH_PROVISION , pub auditAlg : TPMI_ALG_HASH , pub setList : TPML_CC , pub clearList : TPML_CC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SetCommandCodeAuditStatus_In"] [:: core :: mem :: size_of :: < SetCommandCodeAuditStatus_In > () - 952usize] ; ["Alignment of SetCommandCodeAuditStatus_In"] [:: core :: mem :: align_of :: < SetCommandCodeAuditStatus_In > () - 4usize] ; ["Offset of field: SetCommandCodeAuditStatus_In::auth"] [:: core :: mem :: offset_of ! (SetCommandCodeAuditStatus_In , auth) - 0usize] ; ["Offset of field: SetCommandCodeAuditStatus_In::auditAlg"] [:: core :: mem :: offset_of ! (SetCommandCodeAuditStatus_In , auditAlg) - 4usize] ; ["Offset of field: SetCommandCodeAuditStatus_In::setList"] [:: core :: mem :: offset_of ! (SetCommandCodeAuditStatus_In , setList) - 8usize] ; ["Offset of field: SetCommandCodeAuditStatus_In::clearList"] [:: core :: mem :: offset_of ! (SetCommandCodeAuditStatus_In , clearList) - 480usize] ; } ; unsafe extern "C" { pub fn TPM2_SetCommandCodeAuditStatus (in_ : * mut SetCommandCodeAuditStatus_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PCR_Event_In { pub pcrHandle : TPMI_DH_PCR , pub eventData : TPM2B_EVENT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_Event_In"] [:: core :: mem :: size_of :: < PCR_Event_In > () - 1032usize] ; ["Alignment of PCR_Event_In"] [:: core :: mem :: align_of :: < PCR_Event_In > () - 4usize] ; ["Offset of field: PCR_Event_In::pcrHandle"] [:: core :: mem :: offset_of ! (PCR_Event_In , pcrHandle) - 0usize] ; ["Offset of field: PCR_Event_In::eventData"] [:: core :: mem :: offset_of ! (PCR_Event_In , eventData) - 4usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct PCR_Event_Out { pub digests : TPML_DIGEST_VALUES , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_Event_Out"] [:: core :: mem :: size_of :: < PCR_Event_Out > () - 336usize] ; ["Alignment of PCR_Event_Out"] [:: core :: mem :: align_of :: < PCR_Event_Out > () - 4usize] ; ["Offset of field: PCR_Event_Out::digests"] [:: core :: mem :: offset_of ! (PCR_Event_Out , digests) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_PCR_Event (in_ : * mut PCR_Event_In , out : * mut PCR_Event_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PCR_Allocate_In { pub authHandle : TPMI_RH_PLATFORM , pub pcrAllocation : TPML_PCR_SELECTION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_Allocate_In"] [:: core :: mem :: size_of :: < PCR_Allocate_In > () - 40usize] ; ["Alignment of PCR_Allocate_In"] [:: core :: mem :: align_of :: < PCR_Allocate_In > () - 4usize] ; ["Offset of field: PCR_Allocate_In::authHandle"] [:: core :: mem :: offset_of ! (PCR_Allocate_In , authHandle) - 0usize] ; ["Offset of field: PCR_Allocate_In::pcrAllocation"] [:: core :: mem :: offset_of ! (PCR_Allocate_In , pcrAllocation) - 4usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PCR_Allocate_Out { pub allocationSuccess : TPMI_YES_NO , pub maxPCR : UINT32 , pub sizeNeeded : UINT32 , pub sizeAvailable : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_Allocate_Out"] [:: core :: mem :: size_of :: < PCR_Allocate_Out > () - 16usize] ; ["Alignment of PCR_Allocate_Out"] [:: core :: mem :: align_of :: < PCR_Allocate_Out > () - 4usize] ; ["Offset of field: PCR_Allocate_Out::allocationSuccess"] [:: core :: mem :: offset_of ! (PCR_Allocate_Out , allocationSuccess) - 0usize] ; ["Offset of field: PCR_Allocate_Out::maxPCR"] [:: core :: mem :: offset_of ! (PCR_Allocate_Out , maxPCR) - 4usize] ; ["Offset of field: PCR_Allocate_Out::sizeNeeded"] [:: core :: mem :: offset_of ! (PCR_Allocate_Out , sizeNeeded) - 8usize] ; ["Offset of field: PCR_Allocate_Out::sizeAvailable"] [:: core :: mem :: offset_of ! (PCR_Allocate_Out , sizeAvailable) - 12usize] ; } ; unsafe extern "C" { pub fn TPM2_PCR_Allocate (in_ : * mut PCR_Allocate_In , out : * mut PCR_Allocate_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PCR_SetAuthPolicy_In { pub authHandle : TPMI_RH_PLATFORM , pub authPolicy : TPM2B_DIGEST , pub hashAlg : TPMI_ALG_HASH , pub pcrNum : TPMI_DH_PCR , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_SetAuthPolicy_In"] [:: core :: mem :: size_of :: < PCR_SetAuthPolicy_In > () - 76usize] ; ["Alignment of PCR_SetAuthPolicy_In"] [:: core :: mem :: align_of :: < PCR_SetAuthPolicy_In > () - 4usize] ; ["Offset of field: PCR_SetAuthPolicy_In::authHandle"] [:: core :: mem :: offset_of ! (PCR_SetAuthPolicy_In , authHandle) - 0usize] ; ["Offset of field: PCR_SetAuthPolicy_In::authPolicy"] [:: core :: mem :: offset_of ! (PCR_SetAuthPolicy_In , authPolicy) - 4usize] ; ["Offset of field: PCR_SetAuthPolicy_In::hashAlg"] [:: core :: mem :: offset_of ! (PCR_SetAuthPolicy_In , hashAlg) - 70usize] ; ["Offset of field: PCR_SetAuthPolicy_In::pcrNum"] [:: core :: mem :: offset_of ! (PCR_SetAuthPolicy_In , pcrNum) - 72usize] ; } ; unsafe extern "C" { pub fn TPM2_PCR_SetAuthPolicy (in_ : * mut PCR_SetAuthPolicy_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PCR_SetAuthValue_In { pub pcrHandle : TPMI_DH_PCR , pub auth : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_SetAuthValue_In"] [:: core :: mem :: size_of :: < PCR_SetAuthValue_In > () - 72usize] ; ["Alignment of PCR_SetAuthValue_In"] [:: core :: mem :: align_of :: < PCR_SetAuthValue_In > () - 4usize] ; ["Offset of field: PCR_SetAuthValue_In::pcrHandle"] [:: core :: mem :: offset_of ! (PCR_SetAuthValue_In , pcrHandle) - 0usize] ; ["Offset of field: PCR_SetAuthValue_In::auth"] [:: core :: mem :: offset_of ! (PCR_SetAuthValue_In , auth) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PCR_SetAuthValue (in_ : * mut PCR_SetAuthValue_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PCR_Reset_In { pub pcrHandle : TPMI_DH_PCR , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PCR_Reset_In"] [:: core :: mem :: size_of :: < PCR_Reset_In > () - 4usize] ; ["Alignment of PCR_Reset_In"] [:: core :: mem :: align_of :: < PCR_Reset_In > () - 4usize] ; ["Offset of field: PCR_Reset_In::pcrHandle"] [:: core :: mem :: offset_of ! (PCR_Reset_In , pcrHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_PCR_Reset (in_ : * mut PCR_Reset_In) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct PolicySigned_In { pub authObject : TPMI_DH_OBJECT , pub policySession : TPMI_SH_POLICY , pub nonceTPM : TPM2B_NONCE , pub cpHashA : TPM2B_DIGEST , pub policyRef : TPM2B_NONCE , pub expiration : INT32 , pub auth : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicySigned_In"] [:: core :: mem :: size_of :: < PolicySigned_In > () - 732usize] ; ["Alignment of PolicySigned_In"] [:: core :: mem :: align_of :: < PolicySigned_In > () - 4usize] ; ["Offset of field: PolicySigned_In::authObject"] [:: core :: mem :: offset_of ! (PolicySigned_In , authObject) - 0usize] ; ["Offset of field: PolicySigned_In::policySession"] [:: core :: mem :: offset_of ! (PolicySigned_In , policySession) - 4usize] ; ["Offset of field: PolicySigned_In::nonceTPM"] [:: core :: mem :: offset_of ! (PolicySigned_In , nonceTPM) - 8usize] ; ["Offset of field: PolicySigned_In::cpHashA"] [:: core :: mem :: offset_of ! (PolicySigned_In , cpHashA) - 74usize] ; ["Offset of field: PolicySigned_In::policyRef"] [:: core :: mem :: offset_of ! (PolicySigned_In , policyRef) - 140usize] ; ["Offset of field: PolicySigned_In::expiration"] [:: core :: mem :: offset_of ! (PolicySigned_In , expiration) - 208usize] ; ["Offset of field: PolicySigned_In::auth"] [:: core :: mem :: offset_of ! (PolicySigned_In , auth) - 212usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicySigned_Out { pub timeout : TPM2B_TIMEOUT , pub policyTicket : TPMT_TK_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicySigned_Out"] [:: core :: mem :: size_of :: < PolicySigned_Out > () - 144usize] ; ["Alignment of PolicySigned_Out"] [:: core :: mem :: align_of :: < PolicySigned_Out > () - 4usize] ; ["Offset of field: PolicySigned_Out::timeout"] [:: core :: mem :: offset_of ! (PolicySigned_Out , timeout) - 0usize] ; ["Offset of field: PolicySigned_Out::policyTicket"] [:: core :: mem :: offset_of ! (PolicySigned_Out , policyTicket) - 68usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicySigned (in_ : * mut PolicySigned_In , out : * mut PolicySigned_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicySecret_In { pub authHandle : TPMI_DH_ENTITY , pub policySession : TPMI_SH_POLICY , pub nonceTPM : TPM2B_NONCE , pub cpHashA : TPM2B_DIGEST , pub policyRef : TPM2B_NONCE , pub expiration : INT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicySecret_In"] [:: core :: mem :: size_of :: < PolicySecret_In > () - 212usize] ; ["Alignment of PolicySecret_In"] [:: core :: mem :: align_of :: < PolicySecret_In > () - 4usize] ; ["Offset of field: PolicySecret_In::authHandle"] [:: core :: mem :: offset_of ! (PolicySecret_In , authHandle) - 0usize] ; ["Offset of field: PolicySecret_In::policySession"] [:: core :: mem :: offset_of ! (PolicySecret_In , policySession) - 4usize] ; ["Offset of field: PolicySecret_In::nonceTPM"] [:: core :: mem :: offset_of ! (PolicySecret_In , nonceTPM) - 8usize] ; ["Offset of field: PolicySecret_In::cpHashA"] [:: core :: mem :: offset_of ! (PolicySecret_In , cpHashA) - 74usize] ; ["Offset of field: PolicySecret_In::policyRef"] [:: core :: mem :: offset_of ! (PolicySecret_In , policyRef) - 140usize] ; ["Offset of field: PolicySecret_In::expiration"] [:: core :: mem :: offset_of ! (PolicySecret_In , expiration) - 208usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicySecret_Out { pub timeout : TPM2B_TIMEOUT , pub policyTicket : TPMT_TK_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicySecret_Out"] [:: core :: mem :: size_of :: < PolicySecret_Out > () - 144usize] ; ["Alignment of PolicySecret_Out"] [:: core :: mem :: align_of :: < PolicySecret_Out > () - 4usize] ; ["Offset of field: PolicySecret_Out::timeout"] [:: core :: mem :: offset_of ! (PolicySecret_Out , timeout) - 0usize] ; ["Offset of field: PolicySecret_Out::policyTicket"] [:: core :: mem :: offset_of ! (PolicySecret_Out , policyTicket) - 68usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicySecret (in_ : * mut PolicySecret_In , out : * mut PolicySecret_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyTicket_In { pub policySession : TPMI_SH_POLICY , pub timeout : TPM2B_TIMEOUT , pub cpHashA : TPM2B_DIGEST , pub policyRef : TPM2B_NONCE , pub authName : TPM2B_NAME , pub ticket : TPMT_TK_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyTicket_In"] [:: core :: mem :: size_of :: < PolicyTicket_In > () - 348usize] ; ["Alignment of PolicyTicket_In"] [:: core :: mem :: align_of :: < PolicyTicket_In > () - 4usize] ; ["Offset of field: PolicyTicket_In::policySession"] [:: core :: mem :: offset_of ! (PolicyTicket_In , policySession) - 0usize] ; ["Offset of field: PolicyTicket_In::timeout"] [:: core :: mem :: offset_of ! (PolicyTicket_In , timeout) - 4usize] ; ["Offset of field: PolicyTicket_In::cpHashA"] [:: core :: mem :: offset_of ! (PolicyTicket_In , cpHashA) - 70usize] ; ["Offset of field: PolicyTicket_In::policyRef"] [:: core :: mem :: offset_of ! (PolicyTicket_In , policyRef) - 136usize] ; ["Offset of field: PolicyTicket_In::authName"] [:: core :: mem :: offset_of ! (PolicyTicket_In , authName) - 202usize] ; ["Offset of field: PolicyTicket_In::ticket"] [:: core :: mem :: offset_of ! (PolicyTicket_In , ticket) - 272usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyTicket (in_ : * mut PolicyTicket_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyOR_In { pub policySession : TPMI_SH_POLICY , pub pHashList : TPML_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyOR_In"] [:: core :: mem :: size_of :: < PolicyOR_In > () - 536usize] ; ["Alignment of PolicyOR_In"] [:: core :: mem :: align_of :: < PolicyOR_In > () - 4usize] ; ["Offset of field: PolicyOR_In::policySession"] [:: core :: mem :: offset_of ! (PolicyOR_In , policySession) - 0usize] ; ["Offset of field: PolicyOR_In::pHashList"] [:: core :: mem :: offset_of ! (PolicyOR_In , pHashList) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyOR (in_ : * mut PolicyOR_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyPCR_In { pub policySession : TPMI_SH_POLICY , pub pcrDigest : TPM2B_DIGEST , pub pcrs : TPML_PCR_SELECTION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyPCR_In"] [:: core :: mem :: size_of :: < PolicyPCR_In > () - 108usize] ; ["Alignment of PolicyPCR_In"] [:: core :: mem :: align_of :: < PolicyPCR_In > () - 4usize] ; ["Offset of field: PolicyPCR_In::policySession"] [:: core :: mem :: offset_of ! (PolicyPCR_In , policySession) - 0usize] ; ["Offset of field: PolicyPCR_In::pcrDigest"] [:: core :: mem :: offset_of ! (PolicyPCR_In , pcrDigest) - 4usize] ; ["Offset of field: PolicyPCR_In::pcrs"] [:: core :: mem :: offset_of ! (PolicyPCR_In , pcrs) - 72usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyPCR (in_ : * mut PolicyPCR_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyLocality_In { pub policySession : TPMI_SH_POLICY , pub locality : TPMA_LOCALITY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyLocality_In"] [:: core :: mem :: size_of :: < PolicyLocality_In > () - 8usize] ; ["Alignment of PolicyLocality_In"] [:: core :: mem :: align_of :: < PolicyLocality_In > () - 4usize] ; ["Offset of field: PolicyLocality_In::policySession"] [:: core :: mem :: offset_of ! (PolicyLocality_In , policySession) - 0usize] ; ["Offset of field: PolicyLocality_In::locality"] [:: core :: mem :: offset_of ! (PolicyLocality_In , locality) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyLocality (in_ : * mut PolicyLocality_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyNV_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , pub policySession : TPMI_SH_POLICY , pub operandB : TPM2B_OPERAND , pub offset : UINT16 , pub operation : TPM_EO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyNV_In"] [:: core :: mem :: size_of :: < PolicyNV_In > () - 84usize] ; ["Alignment of PolicyNV_In"] [:: core :: mem :: align_of :: < PolicyNV_In > () - 4usize] ; ["Offset of field: PolicyNV_In::authHandle"] [:: core :: mem :: offset_of ! (PolicyNV_In , authHandle) - 0usize] ; ["Offset of field: PolicyNV_In::nvIndex"] [:: core :: mem :: offset_of ! (PolicyNV_In , nvIndex) - 4usize] ; ["Offset of field: PolicyNV_In::policySession"] [:: core :: mem :: offset_of ! (PolicyNV_In , policySession) - 8usize] ; ["Offset of field: PolicyNV_In::operandB"] [:: core :: mem :: offset_of ! (PolicyNV_In , operandB) - 12usize] ; ["Offset of field: PolicyNV_In::offset"] [:: core :: mem :: offset_of ! (PolicyNV_In , offset) - 78usize] ; ["Offset of field: PolicyNV_In::operation"] [:: core :: mem :: offset_of ! (PolicyNV_In , operation) - 80usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyNV (in_ : * mut PolicyNV_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyCounterTimer_In { pub policySession : TPMI_SH_POLICY , pub operandB : TPM2B_OPERAND , pub offset : UINT16 , pub operation : TPM_EO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyCounterTimer_In"] [:: core :: mem :: size_of :: < PolicyCounterTimer_In > () - 76usize] ; ["Alignment of PolicyCounterTimer_In"] [:: core :: mem :: align_of :: < PolicyCounterTimer_In > () - 4usize] ; ["Offset of field: PolicyCounterTimer_In::policySession"] [:: core :: mem :: offset_of ! (PolicyCounterTimer_In , policySession) - 0usize] ; ["Offset of field: PolicyCounterTimer_In::operandB"] [:: core :: mem :: offset_of ! (PolicyCounterTimer_In , operandB) - 4usize] ; ["Offset of field: PolicyCounterTimer_In::offset"] [:: core :: mem :: offset_of ! (PolicyCounterTimer_In , offset) - 70usize] ; ["Offset of field: PolicyCounterTimer_In::operation"] [:: core :: mem :: offset_of ! (PolicyCounterTimer_In , operation) - 72usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyCounterTimer (in_ : * mut PolicyCounterTimer_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyCommandCode_In { pub policySession : TPMI_SH_POLICY , pub code : TPM_CC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyCommandCode_In"] [:: core :: mem :: size_of :: < PolicyCommandCode_In > () - 8usize] ; ["Alignment of PolicyCommandCode_In"] [:: core :: mem :: align_of :: < PolicyCommandCode_In > () - 4usize] ; ["Offset of field: PolicyCommandCode_In::policySession"] [:: core :: mem :: offset_of ! (PolicyCommandCode_In , policySession) - 0usize] ; ["Offset of field: PolicyCommandCode_In::code"] [:: core :: mem :: offset_of ! (PolicyCommandCode_In , code) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyCommandCode (in_ : * mut PolicyCommandCode_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyPhysicalPresence_In { pub policySession : TPMI_SH_POLICY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyPhysicalPresence_In"] [:: core :: mem :: size_of :: < PolicyPhysicalPresence_In > () - 4usize] ; ["Alignment of PolicyPhysicalPresence_In"] [:: core :: mem :: align_of :: < PolicyPhysicalPresence_In > () - 4usize] ; ["Offset of field: PolicyPhysicalPresence_In::policySession"] [:: core :: mem :: offset_of ! (PolicyPhysicalPresence_In , policySession) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyPhysicalPresence (in_ : * mut PolicyPhysicalPresence_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyCpHash_In { pub policySession : TPMI_SH_POLICY , pub cpHashA : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyCpHash_In"] [:: core :: mem :: size_of :: < PolicyCpHash_In > () - 72usize] ; ["Alignment of PolicyCpHash_In"] [:: core :: mem :: align_of :: < PolicyCpHash_In > () - 4usize] ; ["Offset of field: PolicyCpHash_In::policySession"] [:: core :: mem :: offset_of ! (PolicyCpHash_In , policySession) - 0usize] ; ["Offset of field: PolicyCpHash_In::cpHashA"] [:: core :: mem :: offset_of ! (PolicyCpHash_In , cpHashA) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyCpHash (in_ : * mut PolicyCpHash_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyNameHash_In { pub policySession : TPMI_SH_POLICY , pub nameHash : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyNameHash_In"] [:: core :: mem :: size_of :: < PolicyNameHash_In > () - 72usize] ; ["Alignment of PolicyNameHash_In"] [:: core :: mem :: align_of :: < PolicyNameHash_In > () - 4usize] ; ["Offset of field: PolicyNameHash_In::policySession"] [:: core :: mem :: offset_of ! (PolicyNameHash_In , policySession) - 0usize] ; ["Offset of field: PolicyNameHash_In::nameHash"] [:: core :: mem :: offset_of ! (PolicyNameHash_In , nameHash) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyNameHash (in_ : * mut PolicyNameHash_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyDuplicationSelect_In { pub policySession : TPMI_SH_POLICY , pub objectName : TPM2B_NAME , pub newParentName : TPM2B_NAME , pub includeObject : TPMI_YES_NO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyDuplicationSelect_In"] [:: core :: mem :: size_of :: < PolicyDuplicationSelect_In > () - 148usize] ; ["Alignment of PolicyDuplicationSelect_In"] [:: core :: mem :: align_of :: < PolicyDuplicationSelect_In > () - 4usize] ; ["Offset of field: PolicyDuplicationSelect_In::policySession"] [:: core :: mem :: offset_of ! (PolicyDuplicationSelect_In , policySession) - 0usize] ; ["Offset of field: PolicyDuplicationSelect_In::objectName"] [:: core :: mem :: offset_of ! (PolicyDuplicationSelect_In , objectName) - 4usize] ; ["Offset of field: PolicyDuplicationSelect_In::newParentName"] [:: core :: mem :: offset_of ! (PolicyDuplicationSelect_In , newParentName) - 74usize] ; ["Offset of field: PolicyDuplicationSelect_In::includeObject"] [:: core :: mem :: offset_of ! (PolicyDuplicationSelect_In , includeObject) - 144usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyDuplicationSelect (in_ : * mut PolicyDuplicationSelect_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyAuthorize_In { pub policySession : TPMI_SH_POLICY , pub approvedPolicy : TPM2B_DIGEST , pub policyRef : TPM2B_NONCE , pub keySign : TPM2B_NAME , pub checkTicket : TPMT_TK_VERIFIED , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyAuthorize_In"] [:: core :: mem :: size_of :: < PolicyAuthorize_In > () - 284usize] ; ["Alignment of PolicyAuthorize_In"] [:: core :: mem :: align_of :: < PolicyAuthorize_In > () - 4usize] ; ["Offset of field: PolicyAuthorize_In::policySession"] [:: core :: mem :: offset_of ! (PolicyAuthorize_In , policySession) - 0usize] ; ["Offset of field: PolicyAuthorize_In::approvedPolicy"] [:: core :: mem :: offset_of ! (PolicyAuthorize_In , approvedPolicy) - 4usize] ; ["Offset of field: PolicyAuthorize_In::policyRef"] [:: core :: mem :: offset_of ! (PolicyAuthorize_In , policyRef) - 70usize] ; ["Offset of field: PolicyAuthorize_In::keySign"] [:: core :: mem :: offset_of ! (PolicyAuthorize_In , keySign) - 136usize] ; ["Offset of field: PolicyAuthorize_In::checkTicket"] [:: core :: mem :: offset_of ! (PolicyAuthorize_In , checkTicket) - 208usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyAuthorize (in_ : * mut PolicyAuthorize_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyAuthValue_In { pub policySession : TPMI_SH_POLICY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyAuthValue_In"] [:: core :: mem :: size_of :: < PolicyAuthValue_In > () - 4usize] ; ["Alignment of PolicyAuthValue_In"] [:: core :: mem :: align_of :: < PolicyAuthValue_In > () - 4usize] ; ["Offset of field: PolicyAuthValue_In::policySession"] [:: core :: mem :: offset_of ! (PolicyAuthValue_In , policySession) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyAuthValue (in_ : * mut PolicyAuthValue_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyPassword_In { pub policySession : TPMI_SH_POLICY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyPassword_In"] [:: core :: mem :: size_of :: < PolicyPassword_In > () - 4usize] ; ["Alignment of PolicyPassword_In"] [:: core :: mem :: align_of :: < PolicyPassword_In > () - 4usize] ; ["Offset of field: PolicyPassword_In::policySession"] [:: core :: mem :: offset_of ! (PolicyPassword_In , policySession) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyPassword (in_ : * mut PolicyPassword_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyGetDigest_In { pub policySession : TPMI_SH_POLICY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyGetDigest_In"] [:: core :: mem :: size_of :: < PolicyGetDigest_In > () - 4usize] ; ["Alignment of PolicyGetDigest_In"] [:: core :: mem :: align_of :: < PolicyGetDigest_In > () - 4usize] ; ["Offset of field: PolicyGetDigest_In::policySession"] [:: core :: mem :: offset_of ! (PolicyGetDigest_In , policySession) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyGetDigest_Out { pub policyDigest : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyGetDigest_Out"] [:: core :: mem :: size_of :: < PolicyGetDigest_Out > () - 66usize] ; ["Alignment of PolicyGetDigest_Out"] [:: core :: mem :: align_of :: < PolicyGetDigest_Out > () - 2usize] ; ["Offset of field: PolicyGetDigest_Out::policyDigest"] [:: core :: mem :: offset_of ! (PolicyGetDigest_Out , policyDigest) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyGetDigest (in_ : * mut PolicyGetDigest_In , out : * mut PolicyGetDigest_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyNvWritten_In { pub policySession : TPMI_SH_POLICY , pub writtenSet : TPMI_YES_NO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyNvWritten_In"] [:: core :: mem :: size_of :: < PolicyNvWritten_In > () - 8usize] ; ["Alignment of PolicyNvWritten_In"] [:: core :: mem :: align_of :: < PolicyNvWritten_In > () - 4usize] ; ["Offset of field: PolicyNvWritten_In::policySession"] [:: core :: mem :: offset_of ! (PolicyNvWritten_In , policySession) - 0usize] ; ["Offset of field: PolicyNvWritten_In::writtenSet"] [:: core :: mem :: offset_of ! (PolicyNvWritten_In , writtenSet) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyNvWritten (in_ : * mut PolicyNvWritten_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyTemplate_In { pub policySession : TPMI_SH_POLICY , pub templateHash : TPM2B_DIGEST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyTemplate_In"] [:: core :: mem :: size_of :: < PolicyTemplate_In > () - 72usize] ; ["Alignment of PolicyTemplate_In"] [:: core :: mem :: align_of :: < PolicyTemplate_In > () - 4usize] ; ["Offset of field: PolicyTemplate_In::policySession"] [:: core :: mem :: offset_of ! (PolicyTemplate_In , policySession) - 0usize] ; ["Offset of field: PolicyTemplate_In::templateHash"] [:: core :: mem :: offset_of ! (PolicyTemplate_In , templateHash) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyTemplate (in_ : * mut PolicyTemplate_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PolicyAuthorizeNV_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , pub policySession : TPMI_SH_POLICY , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PolicyAuthorizeNV_In"] [:: core :: mem :: size_of :: < PolicyAuthorizeNV_In > () - 12usize] ; ["Alignment of PolicyAuthorizeNV_In"] [:: core :: mem :: align_of :: < PolicyAuthorizeNV_In > () - 4usize] ; ["Offset of field: PolicyAuthorizeNV_In::authHandle"] [:: core :: mem :: offset_of ! (PolicyAuthorizeNV_In , authHandle) - 0usize] ; ["Offset of field: PolicyAuthorizeNV_In::nvIndex"] [:: core :: mem :: offset_of ! (PolicyAuthorizeNV_In , nvIndex) - 4usize] ; ["Offset of field: PolicyAuthorizeNV_In::policySession"] [:: core :: mem :: offset_of ! (PolicyAuthorizeNV_In , policySession) - 8usize] ; } ; unsafe extern "C" { pub fn TPM2_PolicyAuthorizeNV (in_ : * mut PolicyAuthorizeNV_In) -> TPM_RC ; } unsafe extern "C" { pub fn _TPM_Hash_Start () ; } unsafe extern "C" { pub fn _TPM_Hash_Data (dataSize : UINT32 , data : * mut BYTE) ; } unsafe extern "C" { pub fn _TPM_Hash_End () ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct HierarchyControl_In { pub authHandle : TPMI_RH_HIERARCHY , pub enable : TPMI_RH_ENABLES , pub state : TPMI_YES_NO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of HierarchyControl_In"] [:: core :: mem :: size_of :: < HierarchyControl_In > () - 12usize] ; ["Alignment of HierarchyControl_In"] [:: core :: mem :: align_of :: < HierarchyControl_In > () - 4usize] ; ["Offset of field: HierarchyControl_In::authHandle"] [:: core :: mem :: offset_of ! (HierarchyControl_In , authHandle) - 0usize] ; ["Offset of field: HierarchyControl_In::enable"] [:: core :: mem :: offset_of ! (HierarchyControl_In , enable) - 4usize] ; ["Offset of field: HierarchyControl_In::state"] [:: core :: mem :: offset_of ! (HierarchyControl_In , state) - 8usize] ; } ; unsafe extern "C" { pub fn TPM2_HierarchyControl (in_ : * mut HierarchyControl_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SetPrimaryPolicy_In { pub authHandle : TPMI_RH_HIERARCHY_AUTH , pub authPolicy : TPM2B_DIGEST , pub hashAlg : TPMI_ALG_HASH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SetPrimaryPolicy_In"] [:: core :: mem :: size_of :: < SetPrimaryPolicy_In > () - 72usize] ; ["Alignment of SetPrimaryPolicy_In"] [:: core :: mem :: align_of :: < SetPrimaryPolicy_In > () - 4usize] ; ["Offset of field: SetPrimaryPolicy_In::authHandle"] [:: core :: mem :: offset_of ! (SetPrimaryPolicy_In , authHandle) - 0usize] ; ["Offset of field: SetPrimaryPolicy_In::authPolicy"] [:: core :: mem :: offset_of ! (SetPrimaryPolicy_In , authPolicy) - 4usize] ; ["Offset of field: SetPrimaryPolicy_In::hashAlg"] [:: core :: mem :: offset_of ! (SetPrimaryPolicy_In , hashAlg) - 70usize] ; } ; unsafe extern "C" { pub fn TPM2_SetPrimaryPolicy (in_ : * mut SetPrimaryPolicy_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ChangeSeed_In { pub authHandle : TPMI_RH_PLATFORM , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ChangeSeed_In"] [:: core :: mem :: size_of :: < ChangeSeed_In > () - 4usize] ; ["Alignment of ChangeSeed_In"] [:: core :: mem :: align_of :: < ChangeSeed_In > () - 4usize] ; ["Offset of field: ChangeSeed_In::authHandle"] [:: core :: mem :: offset_of ! (ChangeSeed_In , authHandle) - 0usize] ; } ; pub type ChangePPS_In = ChangeSeed_In ; unsafe extern "C" { pub fn TPM2_ChangePPS (in_ : * mut ChangePPS_In) -> TPM_RC ; } pub type ChangeEPS_In = ChangeSeed_In ; unsafe extern "C" { pub fn TPM2_ChangeEPS (in_ : * mut ChangeEPS_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Clear_In { pub authHandle : TPMI_RH_CLEAR , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of Clear_In"] [:: core :: mem :: size_of :: < Clear_In > () - 4usize] ; ["Alignment of Clear_In"] [:: core :: mem :: align_of :: < Clear_In > () - 4usize] ; ["Offset of field: Clear_In::authHandle"] [:: core :: mem :: offset_of ! (Clear_In , authHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_Clear (in_ : * mut Clear_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ClearControl_In { pub auth : TPMI_RH_CLEAR , pub disable : TPMI_YES_NO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ClearControl_In"] [:: core :: mem :: size_of :: < ClearControl_In > () - 8usize] ; ["Alignment of ClearControl_In"] [:: core :: mem :: align_of :: < ClearControl_In > () - 4usize] ; ["Offset of field: ClearControl_In::auth"] [:: core :: mem :: offset_of ! (ClearControl_In , auth) - 0usize] ; ["Offset of field: ClearControl_In::disable"] [:: core :: mem :: offset_of ! (ClearControl_In , disable) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_ClearControl (in_ : * mut ClearControl_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct HierarchyChangeAuth_In { pub authHandle : TPMI_RH_HIERARCHY_AUTH , pub newAuth : TPM2B_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of HierarchyChangeAuth_In"] [:: core :: mem :: size_of :: < HierarchyChangeAuth_In > () - 72usize] ; ["Alignment of HierarchyChangeAuth_In"] [:: core :: mem :: align_of :: < HierarchyChangeAuth_In > () - 4usize] ; ["Offset of field: HierarchyChangeAuth_In::authHandle"] [:: core :: mem :: offset_of ! (HierarchyChangeAuth_In , authHandle) - 0usize] ; ["Offset of field: HierarchyChangeAuth_In::newAuth"] [:: core :: mem :: offset_of ! (HierarchyChangeAuth_In , newAuth) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_HierarchyChangeAuth (in_ : * mut HierarchyChangeAuth_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DictionaryAttackLockReset_In { pub lockHandle : TPMI_RH_LOCKOUT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DictionaryAttackLockReset_In"] [:: core :: mem :: size_of :: < DictionaryAttackLockReset_In > () - 4usize] ; ["Alignment of DictionaryAttackLockReset_In"] [:: core :: mem :: align_of :: < DictionaryAttackLockReset_In > () - 4usize] ; ["Offset of field: DictionaryAttackLockReset_In::lockHandle"] [:: core :: mem :: offset_of ! (DictionaryAttackLockReset_In , lockHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_DictionaryAttackLockReset (in_ : * mut DictionaryAttackLockReset_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DictionaryAttackParameters_In { pub lockHandle : TPMI_RH_LOCKOUT , pub newMaxTries : UINT32 , pub newRecoveryTime : UINT32 , pub lockoutRecovery : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of DictionaryAttackParameters_In"] [:: core :: mem :: size_of :: < DictionaryAttackParameters_In > () - 16usize] ; ["Alignment of DictionaryAttackParameters_In"] [:: core :: mem :: align_of :: < DictionaryAttackParameters_In > () - 4usize] ; ["Offset of field: DictionaryAttackParameters_In::lockHandle"] [:: core :: mem :: offset_of ! (DictionaryAttackParameters_In , lockHandle) - 0usize] ; ["Offset of field: DictionaryAttackParameters_In::newMaxTries"] [:: core :: mem :: offset_of ! (DictionaryAttackParameters_In , newMaxTries) - 4usize] ; ["Offset of field: DictionaryAttackParameters_In::newRecoveryTime"] [:: core :: mem :: offset_of ! (DictionaryAttackParameters_In , newRecoveryTime) - 8usize] ; ["Offset of field: DictionaryAttackParameters_In::lockoutRecovery"] [:: core :: mem :: offset_of ! (DictionaryAttackParameters_In , lockoutRecovery) - 12usize] ; } ; unsafe extern "C" { pub fn TPM2_DictionaryAttackParameters (in_ : * mut DictionaryAttackParameters_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct PP_Commands_In { pub auth : TPMI_RH_PLATFORM , pub setList : TPML_CC , pub clearList : TPML_CC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of PP_Commands_In"] [:: core :: mem :: size_of :: < PP_Commands_In > () - 948usize] ; ["Alignment of PP_Commands_In"] [:: core :: mem :: align_of :: < PP_Commands_In > () - 4usize] ; ["Offset of field: PP_Commands_In::auth"] [:: core :: mem :: offset_of ! (PP_Commands_In , auth) - 0usize] ; ["Offset of field: PP_Commands_In::setList"] [:: core :: mem :: offset_of ! (PP_Commands_In , setList) - 4usize] ; ["Offset of field: PP_Commands_In::clearList"] [:: core :: mem :: offset_of ! (PP_Commands_In , clearList) - 476usize] ; } ; unsafe extern "C" { pub fn TPM2_PP_Commands (in_ : * mut PP_Commands_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SetAlgorithmSet_In { pub authHandle : TPMI_RH_PLATFORM , pub algorithmSet : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SetAlgorithmSet_In"] [:: core :: mem :: size_of :: < SetAlgorithmSet_In > () - 8usize] ; ["Alignment of SetAlgorithmSet_In"] [:: core :: mem :: align_of :: < SetAlgorithmSet_In > () - 4usize] ; ["Offset of field: SetAlgorithmSet_In::authHandle"] [:: core :: mem :: offset_of ! (SetAlgorithmSet_In , authHandle) - 0usize] ; ["Offset of field: SetAlgorithmSet_In::algorithmSet"] [:: core :: mem :: offset_of ! (SetAlgorithmSet_In , algorithmSet) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_SetAlgorithmSet (in_ : * mut SetAlgorithmSet_In) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct FieldUpgradeStart_In { pub authorization : TPMI_RH_PLATFORM , pub keyHandle : TPMI_DH_OBJECT , pub fuDigest : TPM2B_DIGEST , pub manifestSignature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FieldUpgradeStart_In"] [:: core :: mem :: size_of :: < FieldUpgradeStart_In > () - 592usize] ; ["Alignment of FieldUpgradeStart_In"] [:: core :: mem :: align_of :: < FieldUpgradeStart_In > () - 4usize] ; ["Offset of field: FieldUpgradeStart_In::authorization"] [:: core :: mem :: offset_of ! (FieldUpgradeStart_In , authorization) - 0usize] ; ["Offset of field: FieldUpgradeStart_In::keyHandle"] [:: core :: mem :: offset_of ! (FieldUpgradeStart_In , keyHandle) - 4usize] ; ["Offset of field: FieldUpgradeStart_In::fuDigest"] [:: core :: mem :: offset_of ! (FieldUpgradeStart_In , fuDigest) - 8usize] ; ["Offset of field: FieldUpgradeStart_In::manifestSignature"] [:: core :: mem :: offset_of ! (FieldUpgradeStart_In , manifestSignature) - 74usize] ; } ; unsafe extern "C" { pub fn TPM2_FieldUpgradeStart (in_ : * mut FieldUpgradeStart_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FieldUpgradeData_In { pub fuData : TPM2B_MAX_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FieldUpgradeData_In"] [:: core :: mem :: size_of :: < FieldUpgradeData_In > () - 1026usize] ; ["Alignment of FieldUpgradeData_In"] [:: core :: mem :: align_of :: < FieldUpgradeData_In > () - 2usize] ; ["Offset of field: FieldUpgradeData_In::fuData"] [:: core :: mem :: offset_of ! (FieldUpgradeData_In , fuData) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct FieldUpgradeData_Out { pub nextDigest : TPMT_HA , pub firstDigest : TPMT_HA , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FieldUpgradeData_Out"] [:: core :: mem :: size_of :: < FieldUpgradeData_Out > () - 132usize] ; ["Alignment of FieldUpgradeData_Out"] [:: core :: mem :: align_of :: < FieldUpgradeData_Out > () - 2usize] ; ["Offset of field: FieldUpgradeData_Out::nextDigest"] [:: core :: mem :: offset_of ! (FieldUpgradeData_Out , nextDigest) - 0usize] ; ["Offset of field: FieldUpgradeData_Out::firstDigest"] [:: core :: mem :: offset_of ! (FieldUpgradeData_Out , firstDigest) - 66usize] ; } ; unsafe extern "C" { pub fn TPM2_FieldUpgradeData (in_ : * mut FieldUpgradeData_In , out : * mut FieldUpgradeData_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FirmwareRead_In { pub sequenceNumber : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FirmwareRead_In"] [:: core :: mem :: size_of :: < FirmwareRead_In > () - 4usize] ; ["Alignment of FirmwareRead_In"] [:: core :: mem :: align_of :: < FirmwareRead_In > () - 4usize] ; ["Offset of field: FirmwareRead_In::sequenceNumber"] [:: core :: mem :: offset_of ! (FirmwareRead_In , sequenceNumber) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct FirmwareRead_Out { pub fuData : TPM2B_MAX_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of FirmwareRead_Out"] [:: core :: mem :: size_of :: < FirmwareRead_Out > () - 1026usize] ; ["Alignment of FirmwareRead_Out"] [:: core :: mem :: align_of :: < FirmwareRead_Out > () - 2usize] ; ["Offset of field: FirmwareRead_Out::fuData"] [:: core :: mem :: offset_of ! (FirmwareRead_Out , fuData) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_FirmwareRead (in_ : * mut FirmwareRead_In , out : * mut FirmwareRead_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ContextSave_In { pub saveHandle : TPMI_DH_CONTEXT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ContextSave_In"] [:: core :: mem :: size_of :: < ContextSave_In > () - 4usize] ; ["Alignment of ContextSave_In"] [:: core :: mem :: align_of :: < ContextSave_In > () - 4usize] ; ["Offset of field: ContextSave_In::saveHandle"] [:: core :: mem :: offset_of ! (ContextSave_In , saveHandle) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ContextSave_Out { pub context : TPMS_CONTEXT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ContextSave_Out"] [:: core :: mem :: size_of :: < ContextSave_Out > () - 2136usize] ; ["Alignment of ContextSave_Out"] [:: core :: mem :: align_of :: < ContextSave_Out > () - 8usize] ; ["Offset of field: ContextSave_Out::context"] [:: core :: mem :: offset_of ! (ContextSave_Out , context) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_ContextSave (in_ : * mut ContextSave_In , out : * mut ContextSave_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ContextLoad_In { pub context : TPMS_CONTEXT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ContextLoad_In"] [:: core :: mem :: size_of :: < ContextLoad_In > () - 2136usize] ; ["Alignment of ContextLoad_In"] [:: core :: mem :: align_of :: < ContextLoad_In > () - 8usize] ; ["Offset of field: ContextLoad_In::context"] [:: core :: mem :: offset_of ! (ContextLoad_In , context) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ContextLoad_Out { pub loadedHandle : TPMI_DH_CONTEXT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ContextLoad_Out"] [:: core :: mem :: size_of :: < ContextLoad_Out > () - 4usize] ; ["Alignment of ContextLoad_Out"] [:: core :: mem :: align_of :: < ContextLoad_Out > () - 4usize] ; ["Offset of field: ContextLoad_Out::loadedHandle"] [:: core :: mem :: offset_of ! (ContextLoad_Out , loadedHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_ContextLoad (in_ : * mut ContextLoad_In , out : * mut ContextLoad_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct EvictControl_In { pub auth : TPMI_RH_PROVISION , pub objectHandle : TPMI_DH_OBJECT , pub persistentHandle : TPMI_DH_PERSISTENT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of EvictControl_In"] [:: core :: mem :: size_of :: < EvictControl_In > () - 12usize] ; ["Alignment of EvictControl_In"] [:: core :: mem :: align_of :: < EvictControl_In > () - 4usize] ; ["Offset of field: EvictControl_In::auth"] [:: core :: mem :: offset_of ! (EvictControl_In , auth) - 0usize] ; ["Offset of field: EvictControl_In::objectHandle"] [:: core :: mem :: offset_of ! (EvictControl_In , objectHandle) - 4usize] ; ["Offset of field: EvictControl_In::persistentHandle"] [:: core :: mem :: offset_of ! (EvictControl_In , persistentHandle) - 8usize] ; } ; unsafe extern "C" { pub fn TPM2_EvictControl (in_ : * mut EvictControl_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ReadClock_Out { pub currentTime : TPMS_TIME_INFO , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ReadClock_Out"] [:: core :: mem :: size_of :: < ReadClock_Out > () - 32usize] ; ["Alignment of ReadClock_Out"] [:: core :: mem :: align_of :: < ReadClock_Out > () - 8usize] ; ["Offset of field: ReadClock_Out::currentTime"] [:: core :: mem :: offset_of ! (ReadClock_Out , currentTime) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_ReadClock (out : * mut ReadClock_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ClockSet_In { pub auth : TPMI_RH_PROVISION , pub newTime : UINT64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ClockSet_In"] [:: core :: mem :: size_of :: < ClockSet_In > () - 16usize] ; ["Alignment of ClockSet_In"] [:: core :: mem :: align_of :: < ClockSet_In > () - 8usize] ; ["Offset of field: ClockSet_In::auth"] [:: core :: mem :: offset_of ! (ClockSet_In , auth) - 0usize] ; ["Offset of field: ClockSet_In::newTime"] [:: core :: mem :: offset_of ! (ClockSet_In , newTime) - 8usize] ; } ; unsafe extern "C" { pub fn TPM2_ClockSet (in_ : * mut ClockSet_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ClockRateAdjust_In { pub auth : TPMI_RH_PROVISION , pub rateAdjust : TPM_CLOCK_ADJUST , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of ClockRateAdjust_In"] [:: core :: mem :: size_of :: < ClockRateAdjust_In > () - 8usize] ; ["Alignment of ClockRateAdjust_In"] [:: core :: mem :: align_of :: < ClockRateAdjust_In > () - 4usize] ; ["Offset of field: ClockRateAdjust_In::auth"] [:: core :: mem :: offset_of ! (ClockRateAdjust_In , auth) - 0usize] ; ["Offset of field: ClockRateAdjust_In::rateAdjust"] [:: core :: mem :: offset_of ! (ClockRateAdjust_In , rateAdjust) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_ClockRateAdjust (in_ : * mut ClockRateAdjust_In) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct TestParms_In { pub parameters : TPMT_PUBLIC_PARMS , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TestParms_In"] [:: core :: mem :: size_of :: < TestParms_In > () - 24usize] ; ["Alignment of TestParms_In"] [:: core :: mem :: align_of :: < TestParms_In > () - 4usize] ; ["Offset of field: TestParms_In::parameters"] [:: core :: mem :: offset_of ! (TestParms_In , parameters) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_TestParms (in_ : * mut TestParms_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_DefineSpace_In { pub authHandle : TPMI_RH_PROVISION , pub auth : TPM2B_AUTH , pub publicInfo : TPM2B_NV_PUBLIC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_DefineSpace_In"] [:: core :: mem :: size_of :: < NV_DefineSpace_In > () - 156usize] ; ["Alignment of NV_DefineSpace_In"] [:: core :: mem :: align_of :: < NV_DefineSpace_In > () - 4usize] ; ["Offset of field: NV_DefineSpace_In::authHandle"] [:: core :: mem :: offset_of ! (NV_DefineSpace_In , authHandle) - 0usize] ; ["Offset of field: NV_DefineSpace_In::auth"] [:: core :: mem :: offset_of ! (NV_DefineSpace_In , auth) - 4usize] ; ["Offset of field: NV_DefineSpace_In::publicInfo"] [:: core :: mem :: offset_of ! (NV_DefineSpace_In , publicInfo) - 72usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_DefineSpace (in_ : * mut NV_DefineSpace_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_UndefineSpace_In { pub authHandle : TPMI_RH_PROVISION , pub nvIndex : TPMI_RH_NV_INDEX , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_UndefineSpace_In"] [:: core :: mem :: size_of :: < NV_UndefineSpace_In > () - 8usize] ; ["Alignment of NV_UndefineSpace_In"] [:: core :: mem :: align_of :: < NV_UndefineSpace_In > () - 4usize] ; ["Offset of field: NV_UndefineSpace_In::authHandle"] [:: core :: mem :: offset_of ! (NV_UndefineSpace_In , authHandle) - 0usize] ; ["Offset of field: NV_UndefineSpace_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_UndefineSpace_In , nvIndex) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_UndefineSpace (in_ : * mut NV_UndefineSpace_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_UndefineSpaceSpecial_In { pub nvIndex : TPMI_RH_NV_INDEX , pub platform : TPMI_RH_PLATFORM , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_UndefineSpaceSpecial_In"] [:: core :: mem :: size_of :: < NV_UndefineSpaceSpecial_In > () - 8usize] ; ["Alignment of NV_UndefineSpaceSpecial_In"] [:: core :: mem :: align_of :: < NV_UndefineSpaceSpecial_In > () - 4usize] ; ["Offset of field: NV_UndefineSpaceSpecial_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_UndefineSpaceSpecial_In , nvIndex) - 0usize] ; ["Offset of field: NV_UndefineSpaceSpecial_In::platform"] [:: core :: mem :: offset_of ! (NV_UndefineSpaceSpecial_In , platform) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_UndefineSpaceSpecial (in_ : * mut NV_UndefineSpaceSpecial_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_ReadPublic_In { pub nvIndex : TPMI_RH_NV_INDEX , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_ReadPublic_In"] [:: core :: mem :: size_of :: < NV_ReadPublic_In > () - 4usize] ; ["Alignment of NV_ReadPublic_In"] [:: core :: mem :: align_of :: < NV_ReadPublic_In > () - 4usize] ; ["Offset of field: NV_ReadPublic_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_ReadPublic_In , nvIndex) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_ReadPublic_Out { pub nvPublic : TPM2B_NV_PUBLIC , pub nvName : TPM2B_NAME , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_ReadPublic_Out"] [:: core :: mem :: size_of :: < NV_ReadPublic_Out > () - 156usize] ; ["Alignment of NV_ReadPublic_Out"] [:: core :: mem :: align_of :: < NV_ReadPublic_Out > () - 4usize] ; ["Offset of field: NV_ReadPublic_Out::nvPublic"] [:: core :: mem :: offset_of ! (NV_ReadPublic_Out , nvPublic) - 0usize] ; ["Offset of field: NV_ReadPublic_Out::nvName"] [:: core :: mem :: offset_of ! (NV_ReadPublic_Out , nvName) - 84usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_ReadPublic (in_ : * mut NV_ReadPublic_In , out : * mut NV_ReadPublic_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_Write_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , pub data : TPM2B_MAX_NV_BUFFER , pub offset : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_Write_In"] [:: core :: mem :: size_of :: < NV_Write_In > () - 780usize] ; ["Alignment of NV_Write_In"] [:: core :: mem :: align_of :: < NV_Write_In > () - 4usize] ; ["Offset of field: NV_Write_In::authHandle"] [:: core :: mem :: offset_of ! (NV_Write_In , authHandle) - 0usize] ; ["Offset of field: NV_Write_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_Write_In , nvIndex) - 4usize] ; ["Offset of field: NV_Write_In::data"] [:: core :: mem :: offset_of ! (NV_Write_In , data) - 8usize] ; ["Offset of field: NV_Write_In::offset"] [:: core :: mem :: offset_of ! (NV_Write_In , offset) - 778usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_Write (in_ : * mut NV_Write_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_Increment_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_Increment_In"] [:: core :: mem :: size_of :: < NV_Increment_In > () - 8usize] ; ["Alignment of NV_Increment_In"] [:: core :: mem :: align_of :: < NV_Increment_In > () - 4usize] ; ["Offset of field: NV_Increment_In::authHandle"] [:: core :: mem :: offset_of ! (NV_Increment_In , authHandle) - 0usize] ; ["Offset of field: NV_Increment_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_Increment_In , nvIndex) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_Increment (in_ : * mut NV_Increment_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_Extend_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , pub data : TPM2B_MAX_NV_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_Extend_In"] [:: core :: mem :: size_of :: < NV_Extend_In > () - 780usize] ; ["Alignment of NV_Extend_In"] [:: core :: mem :: align_of :: < NV_Extend_In > () - 4usize] ; ["Offset of field: NV_Extend_In::authHandle"] [:: core :: mem :: offset_of ! (NV_Extend_In , authHandle) - 0usize] ; ["Offset of field: NV_Extend_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_Extend_In , nvIndex) - 4usize] ; ["Offset of field: NV_Extend_In::data"] [:: core :: mem :: offset_of ! (NV_Extend_In , data) - 8usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_Extend (in_ : * mut NV_Extend_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_SetBits_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , pub bits : UINT64 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_SetBits_In"] [:: core :: mem :: size_of :: < NV_SetBits_In > () - 16usize] ; ["Alignment of NV_SetBits_In"] [:: core :: mem :: align_of :: < NV_SetBits_In > () - 8usize] ; ["Offset of field: NV_SetBits_In::authHandle"] [:: core :: mem :: offset_of ! (NV_SetBits_In , authHandle) - 0usize] ; ["Offset of field: NV_SetBits_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_SetBits_In , nvIndex) - 4usize] ; ["Offset of field: NV_SetBits_In::bits"] [:: core :: mem :: offset_of ! (NV_SetBits_In , bits) - 8usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_SetBits (in_ : * mut NV_SetBits_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_WriteLock_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_WriteLock_In"] [:: core :: mem :: size_of :: < NV_WriteLock_In > () - 8usize] ; ["Alignment of NV_WriteLock_In"] [:: core :: mem :: align_of :: < NV_WriteLock_In > () - 4usize] ; ["Offset of field: NV_WriteLock_In::authHandle"] [:: core :: mem :: offset_of ! (NV_WriteLock_In , authHandle) - 0usize] ; ["Offset of field: NV_WriteLock_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_WriteLock_In , nvIndex) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_WriteLock (in_ : * mut NV_WriteLock_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_GlobalWriteLock_In { pub authHandle : TPMI_RH_PROVISION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_GlobalWriteLock_In"] [:: core :: mem :: size_of :: < NV_GlobalWriteLock_In > () - 4usize] ; ["Alignment of NV_GlobalWriteLock_In"] [:: core :: mem :: align_of :: < NV_GlobalWriteLock_In > () - 4usize] ; ["Offset of field: NV_GlobalWriteLock_In::authHandle"] [:: core :: mem :: offset_of ! (NV_GlobalWriteLock_In , authHandle) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_GlobalWriteLock (in_ : * mut NV_GlobalWriteLock_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_Read_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , pub size : UINT16 , pub offset : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_Read_In"] [:: core :: mem :: size_of :: < NV_Read_In > () - 12usize] ; ["Alignment of NV_Read_In"] [:: core :: mem :: align_of :: < NV_Read_In > () - 4usize] ; ["Offset of field: NV_Read_In::authHandle"] [:: core :: mem :: offset_of ! (NV_Read_In , authHandle) - 0usize] ; ["Offset of field: NV_Read_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_Read_In , nvIndex) - 4usize] ; ["Offset of field: NV_Read_In::size"] [:: core :: mem :: offset_of ! (NV_Read_In , size) - 8usize] ; ["Offset of field: NV_Read_In::offset"] [:: core :: mem :: offset_of ! (NV_Read_In , offset) - 10usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_Read_Out { pub data : TPM2B_MAX_NV_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_Read_Out"] [:: core :: mem :: size_of :: < NV_Read_Out > () - 770usize] ; ["Alignment of NV_Read_Out"] [:: core :: mem :: align_of :: < NV_Read_Out > () - 2usize] ; ["Offset of field: NV_Read_Out::data"] [:: core :: mem :: offset_of ! (NV_Read_Out , data) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_Read (in_ : * mut NV_Read_In , out : * mut NV_Read_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_ReadLock_In { pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_ReadLock_In"] [:: core :: mem :: size_of :: < NV_ReadLock_In > () - 8usize] ; ["Alignment of NV_ReadLock_In"] [:: core :: mem :: align_of :: < NV_ReadLock_In > () - 4usize] ; ["Offset of field: NV_ReadLock_In::authHandle"] [:: core :: mem :: offset_of ! (NV_ReadLock_In , authHandle) - 0usize] ; ["Offset of field: NV_ReadLock_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_ReadLock_In , nvIndex) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_ReadLock (in_ : * mut NV_ReadLock_In) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NV_ChangeAuth_In { pub nvIndex : TPMI_RH_NV_INDEX , pub newAuth : TPM2B_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_ChangeAuth_In"] [:: core :: mem :: size_of :: < NV_ChangeAuth_In > () - 72usize] ; ["Alignment of NV_ChangeAuth_In"] [:: core :: mem :: align_of :: < NV_ChangeAuth_In > () - 4usize] ; ["Offset of field: NV_ChangeAuth_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_ChangeAuth_In , nvIndex) - 0usize] ; ["Offset of field: NV_ChangeAuth_In::newAuth"] [:: core :: mem :: offset_of ! (NV_ChangeAuth_In , newAuth) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_ChangeAuth (in_ : * mut NV_ChangeAuth_In) -> TPM_RC ; } # [repr (C)] # [derive (Copy , Clone)] pub struct NV_Certify_In { pub signHandle : TPMI_DH_OBJECT , pub authHandle : TPMI_RH_NV_AUTH , pub nvIndex : TPMI_RH_NV_INDEX , pub qualifyingData : TPM2B_DATA , pub inScheme : TPMT_SIG_SCHEME , pub size : UINT16 , pub offset : UINT16 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_Certify_In"] [:: core :: mem :: size_of :: < NV_Certify_In > () - 92usize] ; ["Alignment of NV_Certify_In"] [:: core :: mem :: align_of :: < NV_Certify_In > () - 4usize] ; ["Offset of field: NV_Certify_In::signHandle"] [:: core :: mem :: offset_of ! (NV_Certify_In , signHandle) - 0usize] ; ["Offset of field: NV_Certify_In::authHandle"] [:: core :: mem :: offset_of ! (NV_Certify_In , authHandle) - 4usize] ; ["Offset of field: NV_Certify_In::nvIndex"] [:: core :: mem :: offset_of ! (NV_Certify_In , nvIndex) - 8usize] ; ["Offset of field: NV_Certify_In::qualifyingData"] [:: core :: mem :: offset_of ! (NV_Certify_In , qualifyingData) - 12usize] ; ["Offset of field: NV_Certify_In::inScheme"] [:: core :: mem :: offset_of ! (NV_Certify_In , inScheme) - 80usize] ; ["Offset of field: NV_Certify_In::size"] [:: core :: mem :: offset_of ! (NV_Certify_In , size) - 86usize] ; ["Offset of field: NV_Certify_In::offset"] [:: core :: mem :: offset_of ! (NV_Certify_In , offset) - 88usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct NV_Certify_Out { pub certifyInfo : TPM2B_ATTEST , pub signature : TPMT_SIGNATURE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NV_Certify_Out"] [:: core :: mem :: size_of :: < NV_Certify_Out > () - 1544usize] ; ["Alignment of NV_Certify_Out"] [:: core :: mem :: align_of :: < NV_Certify_Out > () - 2usize] ; ["Offset of field: NV_Certify_Out::certifyInfo"] [:: core :: mem :: offset_of ! (NV_Certify_Out , certifyInfo) - 0usize] ; ["Offset of field: NV_Certify_Out::signature"] [:: core :: mem :: offset_of ! (NV_Certify_Out , signature) - 1026usize] ; } ; unsafe extern "C" { pub fn TPM2_NV_Certify (in_ : * mut NV_Certify_In , out : * mut NV_Certify_Out) -> TPM_RC ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SetCommandSet_In { pub authHandle : TPMI_RH_HIERARCHY , pub commandCode : TPM_CC , pub enableFlag : UINT32 , pub lockFlag : UINT32 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SetCommandSet_In"] [:: core :: mem :: size_of :: < SetCommandSet_In > () - 16usize] ; ["Alignment of SetCommandSet_In"] [:: core :: mem :: align_of :: < SetCommandSet_In > () - 4usize] ; ["Offset of field: SetCommandSet_In::authHandle"] [:: core :: mem :: offset_of ! (SetCommandSet_In , authHandle) - 0usize] ; ["Offset of field: SetCommandSet_In::commandCode"] [:: core :: mem :: offset_of ! (SetCommandSet_In , commandCode) - 4usize] ; ["Offset of field: SetCommandSet_In::enableFlag"] [:: core :: mem :: offset_of ! (SetCommandSet_In , enableFlag) - 8usize] ; ["Offset of field: SetCommandSet_In::lockFlag"] [:: core :: mem :: offset_of ! (SetCommandSet_In , lockFlag) - 12usize] ; } ; unsafe extern "C" { pub fn TPM2_SetCommandSet (in_ : * mut SetCommandSet_In) -> :: core :: ffi :: c_int ; } pub const TPM_MODE_Vendor_Mask_TPMLib_2 : TPM_MODE_Vendor_Mask = 1 ; pub const TPM_MODE_Vendor_Mask_TPMFips : TPM_MODE_Vendor_Mask = 2 ; pub const TPM_MODE_Vendor_Mask_TPMLowPowerOff : TPM_MODE_Vendor_Mask = 0 ; pub const TPM_MODE_Vendor_Mask_TPMLowPowerByRegister : TPM_MODE_Vendor_Mask = 4 ; pub const TPM_MODE_Vendor_Mask_TPMLowPowerByGpio : TPM_MODE_Vendor_Mask = 8 ; pub const TPM_MODE_Vendor_Mask_TPMLowPowerAuto : TPM_MODE_Vendor_Mask = 12 ; pub type TPM_MODE_Vendor_Mask = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TPM_MODE_SET { pub CmdToLowPower : BYTE , pub BootToLowPower : BYTE , pub modeLock : BYTE , pub mode : BYTE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TPM_MODE_SET"] [:: core :: mem :: size_of :: < TPM_MODE_SET > () - 4usize] ; ["Alignment of TPM_MODE_SET"] [:: core :: mem :: align_of :: < TPM_MODE_SET > () - 1usize] ; ["Offset of field: TPM_MODE_SET::CmdToLowPower"] [:: core :: mem :: offset_of ! (TPM_MODE_SET , CmdToLowPower) - 0usize] ; ["Offset of field: TPM_MODE_SET::BootToLowPower"] [:: core :: mem :: offset_of ! (TPM_MODE_SET , BootToLowPower) - 1usize] ; ["Offset of field: TPM_MODE_SET::modeLock"] [:: core :: mem :: offset_of ! (TPM_MODE_SET , modeLock) - 2usize] ; ["Offset of field: TPM_MODE_SET::mode"] [:: core :: mem :: offset_of ! (TPM_MODE_SET , mode) - 3usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct SetMode_In { pub authHandle : TPMI_RH_HIERARCHY , pub modeSet : TPM_MODE_SET , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of SetMode_In"] [:: core :: mem :: size_of :: < SetMode_In > () - 8usize] ; ["Alignment of SetMode_In"] [:: core :: mem :: align_of :: < SetMode_In > () - 4usize] ; ["Offset of field: SetMode_In::authHandle"] [:: core :: mem :: offset_of ! (SetMode_In , authHandle) - 0usize] ; ["Offset of field: SetMode_In::modeSet"] [:: core :: mem :: offset_of ! (SetMode_In , modeSet) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_SetMode (in_ : * mut SetMode_In) -> :: core :: ffi :: c_int ; } pub type GetRandom2_In = GetRandom_In ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct GetRandom2_Out { pub randomBytes : TPM2B_MAX_BUFFER , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of GetRandom2_Out"] [:: core :: mem :: size_of :: < GetRandom2_Out > () - 1026usize] ; ["Alignment of GetRandom2_Out"] [:: core :: mem :: align_of :: < GetRandom2_Out > () - 2usize] ; ["Offset of field: GetRandom2_Out::randomBytes"] [:: core :: mem :: offset_of ! (GetRandom2_Out , randomBytes) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_GetRandom2 (in_ : * mut GetRandom2_In , out : * mut GetRandom2_Out) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_GetProductInfo (info : * mut u8 , size : u16) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_IFX_FieldUpgradeStart (sessionHandle : TPM_HANDLE , data : * mut u8 , size : u32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_IFX_FieldUpgradeCommand (cc : TPM_CC , data : * mut u8 , size : u32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_ST33_FieldUpgradeStart (sessionHandle : TPM_HANDLE , data : * mut u8 , size : u32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_ST33_FieldUpgradeStart_ex (sessionHandle : TPM_HANDLE , cc : TPM_CC , data : * mut u8 , size : u32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_ST33_FieldUpgradeCommand (cc : TPM_CC , data : * mut u8 , size : u32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct CFG_STRUCT { pub Base0 : BYTE , pub Base1 : BYTE , pub GpioAltCfg : BYTE , pub GpioInitValue : BYTE , pub GpioPullUp : BYTE , pub GpioPushPull : BYTE , pub Cfg_A : BYTE , pub Cfg_B : BYTE , pub Cfg_C : BYTE , pub Cfg_D : BYTE , pub Cfg_E : BYTE , pub Cfg_F : BYTE , pub Cfg_G : BYTE , pub Cfg_H : BYTE , pub Cfg_I : BYTE , pub Cfg_J : BYTE , pub isValid : BYTE , pub isLocked : BYTE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of CFG_STRUCT"] [:: core :: mem :: size_of :: < CFG_STRUCT > () - 18usize] ; ["Alignment of CFG_STRUCT"] [:: core :: mem :: align_of :: < CFG_STRUCT > () - 1usize] ; ["Offset of field: CFG_STRUCT::Base0"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Base0) - 0usize] ; ["Offset of field: CFG_STRUCT::Base1"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Base1) - 1usize] ; ["Offset of field: CFG_STRUCT::GpioAltCfg"] [:: core :: mem :: offset_of ! (CFG_STRUCT , GpioAltCfg) - 2usize] ; ["Offset of field: CFG_STRUCT::GpioInitValue"] [:: core :: mem :: offset_of ! (CFG_STRUCT , GpioInitValue) - 3usize] ; ["Offset of field: CFG_STRUCT::GpioPullUp"] [:: core :: mem :: offset_of ! (CFG_STRUCT , GpioPullUp) - 4usize] ; ["Offset of field: CFG_STRUCT::GpioPushPull"] [:: core :: mem :: offset_of ! (CFG_STRUCT , GpioPushPull) - 5usize] ; ["Offset of field: CFG_STRUCT::Cfg_A"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_A) - 6usize] ; ["Offset of field: CFG_STRUCT::Cfg_B"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_B) - 7usize] ; ["Offset of field: CFG_STRUCT::Cfg_C"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_C) - 8usize] ; ["Offset of field: CFG_STRUCT::Cfg_D"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_D) - 9usize] ; ["Offset of field: CFG_STRUCT::Cfg_E"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_E) - 10usize] ; ["Offset of field: CFG_STRUCT::Cfg_F"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_F) - 11usize] ; ["Offset of field: CFG_STRUCT::Cfg_G"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_G) - 12usize] ; ["Offset of field: CFG_STRUCT::Cfg_H"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_H) - 13usize] ; ["Offset of field: CFG_STRUCT::Cfg_I"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_I) - 14usize] ; ["Offset of field: CFG_STRUCT::Cfg_J"] [:: core :: mem :: offset_of ! (CFG_STRUCT , Cfg_J) - 15usize] ; ["Offset of field: CFG_STRUCT::isValid"] [:: core :: mem :: offset_of ! (CFG_STRUCT , isValid) - 16usize] ; ["Offset of field: CFG_STRUCT::isLocked"] [:: core :: mem :: offset_of ! (CFG_STRUCT , isLocked) - 17usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NTC2_PreConfig_In { pub authHandle : TPMI_RH_PLATFORM , pub preConfig : CFG_STRUCT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NTC2_PreConfig_In"] [:: core :: mem :: size_of :: < NTC2_PreConfig_In > () - 24usize] ; ["Alignment of NTC2_PreConfig_In"] [:: core :: mem :: align_of :: < NTC2_PreConfig_In > () - 4usize] ; ["Offset of field: NTC2_PreConfig_In::authHandle"] [:: core :: mem :: offset_of ! (NTC2_PreConfig_In , authHandle) - 0usize] ; ["Offset of field: NTC2_PreConfig_In::preConfig"] [:: core :: mem :: offset_of ! (NTC2_PreConfig_In , preConfig) - 4usize] ; } ; unsafe extern "C" { pub fn TPM2_NTC2_PreConfig (in_ : * mut NTC2_PreConfig_In) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct NTC2_GetConfig_Out { pub preConfig : CFG_STRUCT , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of NTC2_GetConfig_Out"] [:: core :: mem :: size_of :: < NTC2_GetConfig_Out > () - 18usize] ; ["Alignment of NTC2_GetConfig_Out"] [:: core :: mem :: align_of :: < NTC2_GetConfig_Out > () - 1usize] ; ["Offset of field: NTC2_GetConfig_Out::preConfig"] [:: core :: mem :: offset_of ! (NTC2_GetConfig_Out , preConfig) - 0usize] ; } ; unsafe extern "C" { pub fn TPM2_NTC2_GetConfig (out : * mut NTC2_GetConfig_Out) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_Init (ctx : * mut TPM2_CTX , ioCb : TPM2HalIoCb , userCtx : * mut :: core :: ffi :: c_void) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_Init_ex (ctx : * mut TPM2_CTX , ioCb : TPM2HalIoCb , userCtx : * mut :: core :: ffi :: c_void , timeoutTries : :: core :: ffi :: c_int) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_Init_minimal (ctx : * mut TPM2_CTX) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_Cleanup (ctx : * mut TPM2_CTX) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_ChipStartup (ctx : * mut TPM2_CTX , timeoutTries : :: core :: ffi :: c_int) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_SetHalIoCb (ctx : * mut TPM2_CTX , ioCb : TPM2HalIoCb , userCtx : * mut :: core :: ffi :: c_void) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_SetCommandRetries (ctx : * mut TPM2_CTX , retries : :: core :: ffi :: c_int) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_GetCommandRetries (ctx : * mut TPM2_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_SetSessionAuth (session : * mut TPM2_AUTH_SESSION) -> TPM_RC ; } unsafe extern "C" { pub fn TPM2_GetSessionAuthCount (ctx : * mut TPM2_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_SetActiveCtx (ctx : * mut TPM2_CTX) ; } unsafe extern "C" { pub fn TPM2_GetActiveCtx () -> * mut TPM2_CTX ; } unsafe extern "C" { pub fn TPM2_GetHashDigestSize (hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_GetHashType (hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_GetTpmHashType (hashType : :: core :: ffi :: c_int) -> TPMI_ALG_HASH ; } unsafe extern "C" { pub fn TPM2_GetNonce (nonceBuf : * mut byte , nonceSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_GetNonceNoLock (nonceBuf : * mut byte , nonceSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_SetupPCRSel (pcr : * mut TPML_PCR_SELECTION , alg : TPM_ALG_ID , pcrIndex : :: core :: ffi :: c_int) ; } unsafe extern "C" { pub fn TPM2_SetupPCRSelArray (pcr : * mut TPML_PCR_SELECTION , alg : TPM_ALG_ID , pcrArray : * mut byte , pcrArraySz : word32) ; } unsafe extern "C" { pub fn TPM2_GetRCString (rc : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn TPM2_GetAlgName (alg : TPM_ALG_ID) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn TPM2_GetAlgId (name : * const :: core :: ffi :: c_char) -> TPM_ALG_ID ; } unsafe extern "C" { pub fn TPM2_GetCurveSize (curveID : TPM_ECC_CURVE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_GetCurveHashAlg (curveID : TPM_ECC_CURVE) -> TPM_ALG_ID ; } unsafe extern "C" { pub fn TPM2_GetTpmCurve (curveID : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_GetWolfCurve (curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_ParseAttest (in_ : * const TPM2B_ATTEST , out : * mut TPMS_ATTEST) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_HashNvPublic (nvPublic : * mut TPMS_NV_PUBLIC , buffer : * mut byte , size : * mut UINT16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_AppendPublic (buf : * mut byte , size : word32 , sizeUsed : * mut :: core :: ffi :: c_int , pub_ : * mut TPM2B_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_ParsePublic (pub_ : * mut TPM2B_PUBLIC , buf : * mut byte , size : word32 , sizeUsed : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_GetName (ctx : * mut TPM2_CTX , handleValue : UINT32 , handleCnt : :: core :: ffi :: c_int , idx : :: core :: ffi :: c_int , name : * mut TPM2B_NAME) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn TPM2_GetWolfRng (rng : * mut * mut WC_RNG) -> :: core :: ffi :: c_int ; } pub const TPM_Vendor_t_TPM_VENDOR_UNKNOWN : TPM_Vendor_t = 0 ; pub const TPM_Vendor_t_TPM_VENDOR_INFINEON : TPM_Vendor_t = 5585 ; pub const TPM_Vendor_t_TPM_VENDOR_STM : TPM_Vendor_t = 4170 ; pub const TPM_Vendor_t_TPM_VENDOR_MCHP : TPM_Vendor_t = 4372 ; pub const TPM_Vendor_t_TPM_VENDOR_NUVOTON : TPM_Vendor_t = 4176 ; pub const TPM_Vendor_t_TPM_VENDOR_NATIONTECH : TPM_Vendor_t = 6990 ; pub const TPM_Vendor_t_TPM_VENDOR_SEALSQ : TPM_Vendor_t = 9222 ; pub type TPM_Vendor_t = :: core :: ffi :: c_uint ; unsafe extern "C" { pub fn TPM2_GetVendorID () -> UINT16 ; } unsafe extern "C" { pub fn TPM2_GetCapsFipsStr (fips140_3 : :: core :: ffi :: c_int , fips140_2 : :: core :: ffi :: c_int) -> * const :: core :: ffi :: c_char ; } unsafe extern "C" { pub fn TPM2_ForceZero (mem : * mut :: core :: ffi :: c_void , len : word32) ; } unsafe extern "C" { pub fn TPM2_ConstantCompare (a : * const byte , b : * const byte , len : word32) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_HANDLE { pub hndl : TPM_HANDLE , pub auth : TPM2B_AUTH , pub symmetric : TPMT_SYM_DEF , pub name : TPM2B_NAME , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : u8 , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_HANDLE"] [:: core :: mem :: size_of :: < WOLFTPM2_HANDLE > () - 148usize] ; ["Alignment of WOLFTPM2_HANDLE"] [:: core :: mem :: align_of :: < WOLFTPM2_HANDLE > () - 4usize] ; ["Offset of field: WOLFTPM2_HANDLE::hndl"] [:: core :: mem :: offset_of ! (WOLFTPM2_HANDLE , hndl) - 0usize] ; ["Offset of field: WOLFTPM2_HANDLE::auth"] [:: core :: mem :: offset_of ! (WOLFTPM2_HANDLE , auth) - 4usize] ; ["Offset of field: WOLFTPM2_HANDLE::symmetric"] [:: core :: mem :: offset_of ! (WOLFTPM2_HANDLE , symmetric) - 70usize] ; ["Offset of field: WOLFTPM2_HANDLE::name"] [:: core :: mem :: offset_of ! (WOLFTPM2_HANDLE , name) - 76usize] ; } ; impl WOLFTPM2_HANDLE { # [inline] pub fn policyPass (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u32) } } # [inline] pub fn set_policyPass (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn policyPass_raw (this : * const Self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u32) } } # [inline] pub unsafe fn set_policyPass_raw (this : * mut Self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn policyAuth (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u32) } } # [inline] pub fn set_policyAuth (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn policyAuth_raw (this : * const Self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u32) } } # [inline] pub unsafe fn set_policyAuth_raw (this : * mut Self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn nameLoaded (& self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u32) } } # [inline] pub fn set_nameLoaded (& mut self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn nameLoaded_raw (this : * const Self) -> :: core :: ffi :: c_uint { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u32) } } # [inline] pub unsafe fn set_nameLoaded_raw (this : * mut Self , val : :: core :: ffi :: c_uint) { unsafe { let val : u32 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (policyPass : :: core :: ffi :: c_uint , policyAuth : :: core :: ffi :: c_uint , nameLoaded : :: core :: ffi :: c_uint) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let policyPass : u32 = unsafe { :: core :: mem :: transmute (policyPass) } ; policyPass as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let policyAuth : u32 = unsafe { :: core :: mem :: transmute (policyAuth) } ; policyAuth as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let nameLoaded : u32 = unsafe { :: core :: mem :: transmute (nameLoaded) } ; nameLoaded as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_SESSION { pub type_ : TPM_ST , pub handle : WOLFTPM2_HANDLE , pub nonceTPM : TPM2B_NONCE , pub nonceCaller : TPM2B_NONCE , pub salt : TPM2B_DIGEST , pub authHash : TPMI_ALG_HASH , pub sessionAttributes : TPMA_SESSION , pub bind : * mut TPM2B_AUTH , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_SESSION"] [:: core :: mem :: size_of :: < WOLFTPM2_SESSION > () - 368usize] ; ["Alignment of WOLFTPM2_SESSION"] [:: core :: mem :: align_of :: < WOLFTPM2_SESSION > () - 8usize] ; ["Offset of field: WOLFTPM2_SESSION::type_"] [:: core :: mem :: offset_of ! (WOLFTPM2_SESSION , type_) - 0usize] ; ["Offset of field: WOLFTPM2_SESSION::handle"] [:: core :: mem :: offset_of ! (WOLFTPM2_SESSION , handle) - 4usize] ; ["Offset of field: WOLFTPM2_SESSION::nonceTPM"] [:: core :: mem :: offset_of ! (WOLFTPM2_SESSION , nonceTPM) - 152usize] ; ["Offset of field: WOLFTPM2_SESSION::nonceCaller"] [:: core :: mem :: offset_of ! (WOLFTPM2_SESSION , nonceCaller) - 218usize] ; ["Offset of field: WOLFTPM2_SESSION::salt"] [:: core :: mem :: offset_of ! (WOLFTPM2_SESSION , salt) - 284usize] ; ["Offset of field: WOLFTPM2_SESSION::authHash"] [:: core :: mem :: offset_of ! (WOLFTPM2_SESSION , authHash) - 350usize] ; ["Offset of field: WOLFTPM2_SESSION::sessionAttributes"] [:: core :: mem :: offset_of ! (WOLFTPM2_SESSION , sessionAttributes) - 352usize] ; ["Offset of field: WOLFTPM2_SESSION::bind"] [:: core :: mem :: offset_of ! (WOLFTPM2_SESSION , bind) - 360usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_DEV { pub ctx : TPM2_CTX , pub session : [TPM2_AUTH_SESSION ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_DEV"] [:: core :: mem :: size_of :: < WOLFTPM2_DEV > () - 5504usize] ; ["Alignment of WOLFTPM2_DEV"] [:: core :: mem :: align_of :: < WOLFTPM2_DEV > () - 8usize] ; ["Offset of field: WOLFTPM2_DEV::ctx"] [:: core :: mem :: offset_of ! (WOLFTPM2_DEV , ctx) - 0usize] ; ["Offset of field: WOLFTPM2_DEV::session"] [:: core :: mem :: offset_of ! (WOLFTPM2_DEV , session) - 4208usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_KEY { pub handle : WOLFTPM2_HANDLE , pub pub_ : TPM2B_PUBLIC , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_KEY"] [:: core :: mem :: size_of :: < WOLFTPM2_KEY > () - 764usize] ; ["Alignment of WOLFTPM2_KEY"] [:: core :: mem :: align_of :: < WOLFTPM2_KEY > () - 4usize] ; ["Offset of field: WOLFTPM2_KEY::handle"] [:: core :: mem :: offset_of ! (WOLFTPM2_KEY , handle) - 0usize] ; ["Offset of field: WOLFTPM2_KEY::pub_"] [:: core :: mem :: offset_of ! (WOLFTPM2_KEY , pub_) - 148usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_PKEY { pub handle : WOLFTPM2_HANDLE , pub pub_ : TPM2B_PUBLIC , pub creationHash : TPM2B_DIGEST , pub creationTicket : TPMT_TK_CREATION , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_PKEY"] [:: core :: mem :: size_of :: < WOLFTPM2_PKEY > () - 908usize] ; ["Alignment of WOLFTPM2_PKEY"] [:: core :: mem :: align_of :: < WOLFTPM2_PKEY > () - 4usize] ; ["Offset of field: WOLFTPM2_PKEY::handle"] [:: core :: mem :: offset_of ! (WOLFTPM2_PKEY , handle) - 0usize] ; ["Offset of field: WOLFTPM2_PKEY::pub_"] [:: core :: mem :: offset_of ! (WOLFTPM2_PKEY , pub_) - 148usize] ; ["Offset of field: WOLFTPM2_PKEY::creationHash"] [:: core :: mem :: offset_of ! (WOLFTPM2_PKEY , creationHash) - 764usize] ; ["Offset of field: WOLFTPM2_PKEY::creationTicket"] [:: core :: mem :: offset_of ! (WOLFTPM2_PKEY , creationTicket) - 832usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_KEYBLOB { pub handle : WOLFTPM2_HANDLE , pub pub_ : TPM2B_PUBLIC , pub priv_ : TPM2B_PRIVATE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_KEYBLOB"] [:: core :: mem :: size_of :: < WOLFTPM2_KEYBLOB > () - 2316usize] ; ["Alignment of WOLFTPM2_KEYBLOB"] [:: core :: mem :: align_of :: < WOLFTPM2_KEYBLOB > () - 4usize] ; ["Offset of field: WOLFTPM2_KEYBLOB::handle"] [:: core :: mem :: offset_of ! (WOLFTPM2_KEYBLOB , handle) - 0usize] ; ["Offset of field: WOLFTPM2_KEYBLOB::pub_"] [:: core :: mem :: offset_of ! (WOLFTPM2_KEYBLOB , pub_) - 148usize] ; ["Offset of field: WOLFTPM2_KEYBLOB::priv_"] [:: core :: mem :: offset_of ! (WOLFTPM2_KEYBLOB , priv_) - 764usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_HASH { pub handle : WOLFTPM2_HANDLE , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_HASH"] [:: core :: mem :: size_of :: < WOLFTPM2_HASH > () - 148usize] ; ["Alignment of WOLFTPM2_HASH"] [:: core :: mem :: align_of :: < WOLFTPM2_HASH > () - 4usize] ; ["Offset of field: WOLFTPM2_HASH::handle"] [:: core :: mem :: offset_of ! (WOLFTPM2_HASH , handle) - 0usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_NV { pub handle : WOLFTPM2_HANDLE , pub attributes : TPMA_NV , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_NV"] [:: core :: mem :: size_of :: < WOLFTPM2_NV > () - 152usize] ; ["Alignment of WOLFTPM2_NV"] [:: core :: mem :: align_of :: < WOLFTPM2_NV > () - 4usize] ; ["Offset of field: WOLFTPM2_NV::handle"] [:: core :: mem :: offset_of ! (WOLFTPM2_NV , handle) - 0usize] ; ["Offset of field: WOLFTPM2_NV::attributes"] [:: core :: mem :: offset_of ! (WOLFTPM2_NV , attributes) - 148usize] ; } ; # [repr (C)] # [derive (Copy , Clone)] pub struct WOLFTPM2_HMAC { pub hash : WOLFTPM2_HASH , pub key : WOLFTPM2_KEY , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_HMAC"] [:: core :: mem :: size_of :: < WOLFTPM2_HMAC > () - 916usize] ; ["Alignment of WOLFTPM2_HMAC"] [:: core :: mem :: align_of :: < WOLFTPM2_HMAC > () - 4usize] ; ["Offset of field: WOLFTPM2_HMAC::hash"] [:: core :: mem :: offset_of ! (WOLFTPM2_HMAC , hash) - 0usize] ; ["Offset of field: WOLFTPM2_HMAC::key"] [:: core :: mem :: offset_of ! (WOLFTPM2_HMAC , key) - 148usize] ; } ; impl WOLFTPM2_HMAC { # [inline] pub fn hmacKeyLoaded (& self) -> word16 { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u16) } } # [inline] pub fn set_hmacKeyLoaded (& mut self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn hmacKeyLoaded_raw (this : * const Self) -> word16 { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u16) } } # [inline] pub unsafe fn set_hmacKeyLoaded_raw (this : * mut Self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn hmacKeyKeep (& self) -> word16 { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u16) } } # [inline] pub fn set_hmacKeyKeep (& mut self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn hmacKeyKeep_raw (this : * const Self) -> word16 { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u16) } } # [inline] pub unsafe fn set_hmacKeyKeep_raw (this : * mut Self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (hmacKeyLoaded : word16 , hmacKeyKeep : word16) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let hmacKeyLoaded : u16 = unsafe { :: core :: mem :: transmute (hmacKeyLoaded) } ; hmacKeyLoaded as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let hmacKeyKeep : u16 = unsafe { :: core :: mem :: transmute (hmacKeyKeep) } ; hmacKeyKeep as u64 }) ; __bindgen_bitfield_unit } } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFTPM2_CSR { pub req : Cert , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_CSR"] [:: core :: mem :: size_of :: < WOLFTPM2_CSR > () - 6096usize] ; ["Alignment of WOLFTPM2_CSR"] [:: core :: mem :: align_of :: < WOLFTPM2_CSR > () - 8usize] ; ["Offset of field: WOLFTPM2_CSR::req"] [:: core :: mem :: offset_of ! (WOLFTPM2_CSR , req) - 0usize] ; } ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFTPM2_BUFFER { pub size : :: core :: ffi :: c_int , pub buffer : [byte ; 1024usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_BUFFER"] [:: core :: mem :: size_of :: < WOLFTPM2_BUFFER > () - 1028usize] ; ["Alignment of WOLFTPM2_BUFFER"] [:: core :: mem :: align_of :: < WOLFTPM2_BUFFER > () - 4usize] ; ["Offset of field: WOLFTPM2_BUFFER::size"] [:: core :: mem :: offset_of ! (WOLFTPM2_BUFFER , size) - 0usize] ; ["Offset of field: WOLFTPM2_BUFFER::buffer"] [:: core :: mem :: offset_of ! (WOLFTPM2_BUFFER , buffer) - 4usize] ; } ; pub const WOLFTPM2_MFG_TPM_MFG_UNKNOWN : WOLFTPM2_MFG = 0 ; pub const WOLFTPM2_MFG_TPM_MFG_INFINEON : WOLFTPM2_MFG = 1 ; pub const WOLFTPM2_MFG_TPM_MFG_STM : WOLFTPM2_MFG = 2 ; pub const WOLFTPM2_MFG_TPM_MFG_MCHP : WOLFTPM2_MFG = 3 ; pub const WOLFTPM2_MFG_TPM_MFG_NUVOTON : WOLFTPM2_MFG = 4 ; pub const WOLFTPM2_MFG_TPM_MFG_NATIONTECH : WOLFTPM2_MFG = 5 ; pub const WOLFTPM2_MFG_TPM_MFG_SEALSQ : WOLFTPM2_MFG = 6 ; pub const WOLFTPM2_MFG_TPM_MFG_MSFT : WOLFTPM2_MFG = 7 ; pub type WOLFTPM2_MFG = :: core :: ffi :: c_uint ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct WOLFTPM2_CAPS { pub mfg : WOLFTPM2_MFG , pub mfgStr : [:: core :: ffi :: c_char ; 5usize] , pub vendorStr : [:: core :: ffi :: c_char ; 17usize] , pub tpmType : word32 , pub fwVerMajor : word16 , pub fwVerMinor : word16 , pub fwVerVendor : word32 , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 3usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of WOLFTPM2_CAPS"] [:: core :: mem :: size_of :: < WOLFTPM2_CAPS > () - 44usize] ; ["Alignment of WOLFTPM2_CAPS"] [:: core :: mem :: align_of :: < WOLFTPM2_CAPS > () - 4usize] ; ["Offset of field: WOLFTPM2_CAPS::mfg"] [:: core :: mem :: offset_of ! (WOLFTPM2_CAPS , mfg) - 0usize] ; ["Offset of field: WOLFTPM2_CAPS::mfgStr"] [:: core :: mem :: offset_of ! (WOLFTPM2_CAPS , mfgStr) - 4usize] ; ["Offset of field: WOLFTPM2_CAPS::vendorStr"] [:: core :: mem :: offset_of ! (WOLFTPM2_CAPS , vendorStr) - 9usize] ; ["Offset of field: WOLFTPM2_CAPS::tpmType"] [:: core :: mem :: offset_of ! (WOLFTPM2_CAPS , tpmType) - 28usize] ; ["Offset of field: WOLFTPM2_CAPS::fwVerMajor"] [:: core :: mem :: offset_of ! (WOLFTPM2_CAPS , fwVerMajor) - 32usize] ; ["Offset of field: WOLFTPM2_CAPS::fwVerMinor"] [:: core :: mem :: offset_of ! (WOLFTPM2_CAPS , fwVerMinor) - 34usize] ; ["Offset of field: WOLFTPM2_CAPS::fwVerVendor"] [:: core :: mem :: offset_of ! (WOLFTPM2_CAPS , fwVerVendor) - 36usize] ; } ; impl WOLFTPM2_CAPS { # [inline] pub fn fips140_2 (& self) -> word16 { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u16) } } # [inline] pub fn set_fips140_2 (& mut self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn fips140_2_raw (this : * const Self) -> word16 { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u16) } } # [inline] pub unsafe fn set_fips140_2_raw (this : * mut Self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn cc_eal4 (& self) -> word16 { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (1usize , 1u8) as u16) } } # [inline] pub fn set_cc_eal4 (& mut self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (1usize , 1u8 , val as u64) } } # [inline] pub unsafe fn cc_eal4_raw (this : * const Self) -> word16 { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 1usize , 1u8 ,) as u16) } } # [inline] pub unsafe fn set_cc_eal4_raw (this : * mut Self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 1usize , 1u8 , val as u64 ,) } } # [inline] pub fn req_wait_state (& self) -> word16 { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (2usize , 1u8) as u16) } } # [inline] pub fn set_req_wait_state (& mut self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (2usize , 1u8 , val as u64) } } # [inline] pub unsafe fn req_wait_state_raw (this : * const Self) -> word16 { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 2usize , 1u8 ,) as u16) } } # [inline] pub unsafe fn set_req_wait_state_raw (this : * mut Self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 2usize , 1u8 , val as u64 ,) } } # [inline] pub fn fips140_3 (& self) -> word16 { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (3usize , 1u8) as u16) } } # [inline] pub fn set_fips140_3 (& mut self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (3usize , 1u8 , val as u64) } } # [inline] pub unsafe fn fips140_3_raw (this : * const Self) -> word16 { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 3usize , 1u8 ,) as u16) } } # [inline] pub unsafe fn set_fips140_3_raw (this : * mut Self , val : word16) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 3usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (fips140_2 : word16 , cc_eal4 : word16 , req_wait_state : word16 , fips140_3 : word16) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let fips140_2 : u16 = unsafe { :: core :: mem :: transmute (fips140_2) } ; fips140_2 as u64 }) ; __bindgen_bitfield_unit . set (1usize , 1u8 , { let cc_eal4 : u16 = unsafe { :: core :: mem :: transmute (cc_eal4) } ; cc_eal4 as u64 }) ; __bindgen_bitfield_unit . set (2usize , 1u8 , { let req_wait_state : u16 = unsafe { :: core :: mem :: transmute (req_wait_state) } ; req_wait_state as u64 }) ; __bindgen_bitfield_unit . set (3usize , 1u8 , { let fips140_3 : u16 = unsafe { :: core :: mem :: transmute (fips140_3) } ; fips140_3 as u64 }) ; __bindgen_bitfield_unit } } unsafe extern "C" { pub fn wolfTPM2_Test (ioCb : TPM2HalIoCb , userCtx : * mut :: core :: ffi :: c_void , caps : * mut WOLFTPM2_CAPS) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_Init (dev : * mut WOLFTPM2_DEV , ioCb : TPM2HalIoCb , userCtx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_OpenExisting (dev : * mut WOLFTPM2_DEV , ioCb : TPM2HalIoCb , userCtx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_Cleanup (dev : * mut WOLFTPM2_DEV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_Cleanup_ex (dev : * mut WOLFTPM2_DEV , doShutdown : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetTpmDevId (dev : * mut WOLFTPM2_DEV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SelfTest (dev : * mut WOLFTPM2_DEV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetCapabilities (dev : * mut WOLFTPM2_DEV , caps : * mut WOLFTPM2_CAPS) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ParseCapabilities (caps : * mut WOLFTPM2_CAPS , props : * mut TPML_TAGGED_TPM_PROPERTY) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_IsAlgSupported (dev : * mut WOLFTPM2_DEV , alg : TPM_ALG_ID , isSupported : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetHandles (handle : TPM_HANDLE , handles : * mut TPML_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_UnsetAuth (dev : * mut WOLFTPM2_DEV , index : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_UnsetAuthSession (dev : * mut WOLFTPM2_DEV , index : :: core :: ffi :: c_int , session : * mut WOLFTPM2_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetAuth (dev : * mut WOLFTPM2_DEV , index : :: core :: ffi :: c_int , sessionHandle : TPM_HANDLE , auth : * const TPM2B_AUTH , sessionAttributes : TPMA_SESSION , name : * const TPM2B_NAME) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetAuthPassword (dev : * mut WOLFTPM2_DEV , index : :: core :: ffi :: c_int , auth : * const TPM2B_AUTH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetAuthHandle (dev : * mut WOLFTPM2_DEV , index : :: core :: ffi :: c_int , handle : * const WOLFTPM2_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetAuthSession (dev : * mut WOLFTPM2_DEV , index : :: core :: ffi :: c_int , tpmSession : * mut WOLFTPM2_SESSION , sessionAttributes : TPMA_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetSessionHandle (dev : * mut WOLFTPM2_DEV , index : :: core :: ffi :: c_int , tpmSession : * mut WOLFTPM2_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetAuthHandleName (dev : * mut WOLFTPM2_DEV , index : :: core :: ffi :: c_int , handle : * const WOLFTPM2_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_StartSession (dev : * mut WOLFTPM2_DEV , session : * mut WOLFTPM2_SESSION , tpmKey : * mut WOLFTPM2_KEY , bind : * mut WOLFTPM2_HANDLE , sesType : TPM_SE , encDecAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_StartSession_ex (dev : * mut WOLFTPM2_DEV , session : * mut WOLFTPM2_SESSION , tpmKey : * mut WOLFTPM2_KEY , bind : * mut WOLFTPM2_HANDLE , sesType : TPM_SE , encDecAlg : :: core :: ffi :: c_int , authHash : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateAuthSession_EkPolicy (dev : * mut WOLFTPM2_DEV , tpmSession : * mut WOLFTPM2_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateAuthSession_EkPolicy_ex (dev : * mut WOLFTPM2_DEV , tpmSession : * mut WOLFTPM2_SESSION , authHash : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreatePrimaryKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , primaryHandle : TPM_HANDLE , publicTemplate : * mut TPMT_PUBLIC , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreatePrimaryKey_ex (dev : * mut WOLFTPM2_DEV , pkey : * mut WOLFTPM2_PKEY , primaryHandle : TPM_HANDLE , publicTemplate : * mut TPMT_PUBLIC , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ChangeAuthKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , parent : * mut WOLFTPM2_HANDLE , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateKey (dev : * mut WOLFTPM2_DEV , keyBlob : * mut WOLFTPM2_KEYBLOB , parent : * mut WOLFTPM2_HANDLE , publicTemplate : * mut TPMT_PUBLIC , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadKey (dev : * mut WOLFTPM2_DEV , keyBlob : * mut WOLFTPM2_KEYBLOB , parent : * mut WOLFTPM2_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateAndLoadKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , parent : * mut WOLFTPM2_HANDLE , publicTemplate : * mut TPMT_PUBLIC , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateLoadedKey (dev : * mut WOLFTPM2_DEV , keyBlob : * mut WOLFTPM2_KEYBLOB , parent : * mut WOLFTPM2_HANDLE , publicTemplate : * mut TPMT_PUBLIC , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadPublicKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , pub_ : * const TPM2B_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadPublicKey_ex (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , pub_ : * const TPM2B_PUBLIC , hierarchy : TPM_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadPrivateKey (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , key : * mut WOLFTPM2_KEY , pub_ : * const TPM2B_PUBLIC , sens : * mut TPM2B_SENSITIVE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ImportPrivateKey (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , keyBlob : * mut WOLFTPM2_KEYBLOB , pub_ : * const TPM2B_PUBLIC , sens : * mut TPM2B_SENSITIVE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadRsaPublicKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , rsaPub : * const byte , rsaPubSz : word32 , exponent : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadRsaPublicKey_ex (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , rsaPub : * const byte , rsaPubSz : word32 , exponent : word32 , scheme : TPMI_ALG_RSA_SCHEME , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ImportRsaPrivateKey (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , keyBlob : * mut WOLFTPM2_KEYBLOB , rsaPub : * const byte , rsaPubSz : word32 , exponent : word32 , rsaPriv : * const byte , rsaPrivSz : word32 , scheme : TPMI_ALG_RSA_SCHEME , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ImportRsaPrivateKeySeed (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , keyBlob : * mut WOLFTPM2_KEYBLOB , rsaPub : * const byte , rsaPubSz : word32 , exponent : word32 , rsaPriv : * const byte , rsaPrivSz : word32 , scheme : TPMI_ALG_RSA_SCHEME , hashAlg : TPMI_ALG_HASH , attributes : TPMA_OBJECT , seed : * mut byte , seedSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadRsaPrivateKey (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , key : * mut WOLFTPM2_KEY , rsaPub : * const byte , rsaPubSz : word32 , exponent : word32 , rsaPriv : * const byte , rsaPrivSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadRsaPrivateKey_ex (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , key : * mut WOLFTPM2_KEY , rsaPub : * const byte , rsaPubSz : word32 , exponent : word32 , rsaPriv : * const byte , rsaPrivSz : word32 , scheme : TPMI_ALG_RSA_SCHEME , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadEccPublicKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , curveId : :: core :: ffi :: c_int , eccPubX : * const byte , eccPubXSz : word32 , eccPubY : * const byte , eccPubYSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadEccPublicKey_ex (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , curveId : :: core :: ffi :: c_int , eccPubX : * const byte , eccPubXSz : word32 , eccPubY : * const byte , eccPubYSz : word32 , scheme : TPMI_ALG_ECC_SCHEME , hashAlg : TPMI_ALG_HASH , objectAttributes : TPMA_OBJECT) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ImportEccPrivateKey (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , keyBlob : * mut WOLFTPM2_KEYBLOB , curveId : :: core :: ffi :: c_int , eccPubX : * const byte , eccPubXSz : word32 , eccPubY : * const byte , eccPubYSz : word32 , eccPriv : * const byte , eccPrivSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ImportEccPrivateKeySeed (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , keyBlob : * mut WOLFTPM2_KEYBLOB , curveId : :: core :: ffi :: c_int , eccPubX : * const byte , eccPubXSz : word32 , eccPubY : * const byte , eccPubYSz : word32 , eccPriv : * const byte , eccPrivSz : word32 , attributes : TPMA_OBJECT , seed : * mut byte , seedSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadEccPrivateKey (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , key : * mut WOLFTPM2_KEY , curveId : :: core :: ffi :: c_int , eccPubX : * const byte , eccPubXSz : word32 , eccPubY : * const byte , eccPubYSz : word32 , eccPriv : * const byte , eccPrivSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ReadPublicKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , handle : TPM_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateKeySeal (dev : * mut WOLFTPM2_DEV , keyBlob : * mut WOLFTPM2_KEYBLOB , parent : * mut WOLFTPM2_HANDLE , publicTemplate : * mut TPMT_PUBLIC , auth : * const byte , authSz : :: core :: ffi :: c_int , sealData : * const byte , sealSize : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateKeySeal_ex (dev : * mut WOLFTPM2_DEV , keyBlob : * mut WOLFTPM2_KEYBLOB , parent : * mut WOLFTPM2_HANDLE , publicTemplate : * mut TPMT_PUBLIC , auth : * const byte , authSz : :: core :: ffi :: c_int , pcrAlg : TPM_ALG_ID , pcrArray : * mut byte , pcrArraySz : word32 , sealData : * const byte , sealSize : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ComputeName (pub_ : * const TPM2B_PUBLIC , out : * mut TPM2B_NAME) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SensitiveToPrivate (sens : * mut TPM2B_SENSITIVE , priv_ : * mut TPM2B_PRIVATE , nameAlg : TPMI_ALG_HASH , name : * mut TPM2B_NAME , parentKey : * const WOLFTPM2_KEY , sym : * mut TPMT_SYM_DEF_OBJECT , symSeed : * mut TPM2B_DATA) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaKey_Exponent (e : * const byte , eSz : word32) -> word32 ; } unsafe extern "C" { pub fn wolfTPM2_ImportPrivateKeyBuffer (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , keyType : :: core :: ffi :: c_int , keyBlob : * mut WOLFTPM2_KEYBLOB , encodingType : :: core :: ffi :: c_int , input : * const :: core :: ffi :: c_char , inSz : word32 , pass : * const :: core :: ffi :: c_char , objectAttributes : TPMA_OBJECT , seed : * mut byte , seedSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ImportPublicKeyBuffer (dev : * mut WOLFTPM2_DEV , keyType : :: core :: ffi :: c_int , key : * mut WOLFTPM2_KEY , encodingType : :: core :: ffi :: c_int , input : * const :: core :: ffi :: c_char , inSz : word32 , objectAttributes : TPMA_OBJECT) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ExportPublicKeyBuffer (dev : * mut WOLFTPM2_DEV , tpmKey : * mut WOLFTPM2_KEY , encodingType : :: core :: ffi :: c_int , out : * mut byte , outSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaPrivateKeyImportDer (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , keyBlob : * mut WOLFTPM2_KEYBLOB , input : * const byte , inSz : word32 , scheme : TPMI_ALG_RSA_SCHEME , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaPrivateKeyImportPem (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , keyBlob : * mut WOLFTPM2_KEYBLOB , input : * const :: core :: ffi :: c_char , inSz : word32 , pass : * mut :: core :: ffi :: c_char , scheme : TPMI_ALG_RSA_SCHEME , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaKey_TpmToWolf (dev : * mut WOLFTPM2_DEV , tpmKey : * mut WOLFTPM2_KEY , wolfKey : * mut RsaKey) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaKey_TpmToPemPub (dev : * mut WOLFTPM2_DEV , keyBlob : * mut WOLFTPM2_KEY , pem : * mut byte , pemSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaKey_WolfToTpm (dev : * mut WOLFTPM2_DEV , wolfKey : * mut RsaKey , tpmKey : * mut WOLFTPM2_KEY) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaKey_WolfToTpm_ex (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , wolfKey : * mut RsaKey , tpmKey : * mut WOLFTPM2_KEY) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateRsaKeyBlob (dev : * mut WOLFTPM2_DEV , parentKey : * const WOLFTPM2_KEY , wolfKey : * mut RsaKey , tpmKey : * mut WOLFTPM2_KEYBLOB) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaKey_PubPemToTpm (dev : * mut WOLFTPM2_DEV , tpmKey : * mut WOLFTPM2_KEY , pem : * const byte , pemSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_DecodeRsaDer (der : * const byte , derSz : word32 , pub_ : * mut TPM2B_PUBLIC , sens : * mut TPM2B_SENSITIVE , attributes : TPMA_OBJECT) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_EccKey_TpmToWolf (dev : * mut WOLFTPM2_DEV , tpmKey : * mut WOLFTPM2_KEY , wolfKey : * mut ecc_key) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_EccKey_WolfToTpm (dev : * mut WOLFTPM2_DEV , wolfKey : * mut ecc_key , tpmKey : * mut WOLFTPM2_KEY) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_EccKey_WolfToTpm_ex (dev : * mut WOLFTPM2_DEV , parentKey : * mut WOLFTPM2_KEY , wolfKey : * mut ecc_key , tpmKey : * mut WOLFTPM2_KEY) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateEccKeyBlob (dev : * mut WOLFTPM2_DEV , parentKey : * mut WOLFTPM2_KEY , wolfKey : * mut ecc_key , tpmKey : * mut WOLFTPM2_KEYBLOB) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_EccKey_WolfToPubPoint (dev : * mut WOLFTPM2_DEV , wolfKey : * mut ecc_key , pubPoint : * mut TPM2B_ECC_POINT) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_DecodeEccDer (der : * const byte , derSz : word32 , pub_ : * mut TPM2B_PUBLIC , sens : * mut TPM2B_SENSITIVE , attributes : TPMA_OBJECT) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SignHash (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , digest : * const byte , digestSz : :: core :: ffi :: c_int , sig : * mut byte , sigSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SignHashScheme (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , digest : * const byte , digestSz : :: core :: ffi :: c_int , sig : * mut byte , sigSz : * mut :: core :: ffi :: c_int , sigAlg : TPMI_ALG_SIG_SCHEME , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_VerifyHash (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , sig : * const byte , sigSz : :: core :: ffi :: c_int , digest : * const byte , digestSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_VerifyHash_ex (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , sig : * const byte , sigSz : :: core :: ffi :: c_int , digest : * const byte , digestSz : :: core :: ffi :: c_int , hashAlg : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_VerifyHashScheme (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , sig : * const byte , sigSz : :: core :: ffi :: c_int , digest : * const byte , digestSz : :: core :: ffi :: c_int , sigAlg : TPMI_ALG_SIG_SCHEME , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_VerifyHashTicket (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , sig : * const byte , sigSz : :: core :: ffi :: c_int , digest : * const byte , digestSz : :: core :: ffi :: c_int , sigAlg : TPMI_ALG_SIG_SCHEME , hashAlg : TPMI_ALG_HASH , checkTicket : * mut TPMT_TK_VERIFIED) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ECDHGenKey (dev : * mut WOLFTPM2_DEV , ecdhKey : * mut WOLFTPM2_KEY , curve_id : :: core :: ffi :: c_int , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ECDHGen (dev : * mut WOLFTPM2_DEV , privKey : * mut WOLFTPM2_KEY , pubPoint : * mut TPM2B_ECC_POINT , out : * mut byte , outSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ECDHGenZ (dev : * mut WOLFTPM2_DEV , privKey : * mut WOLFTPM2_KEY , pubPoint : * const TPM2B_ECC_POINT , out : * mut byte , outSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ECDHEGenKey (dev : * mut WOLFTPM2_DEV , ecdhKey : * mut WOLFTPM2_KEY , curve_id : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ECDHEGenZ (dev : * mut WOLFTPM2_DEV , parentKey : * mut WOLFTPM2_KEY , ecdhKey : * mut WOLFTPM2_KEY , pubPoint : * const TPM2B_ECC_POINT , out : * mut byte , outSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaEncrypt (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , padScheme : TPM_ALG_ID , msg : * const byte , msgSz : :: core :: ffi :: c_int , out : * mut byte , outSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaEncrypt_ex (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , padScheme : TPM_ALG_ID , msg : * const byte , msgSz : :: core :: ffi :: c_int , out : * mut byte , outSz : * mut :: core :: ffi :: c_int , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaDecrypt (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , padScheme : TPM_ALG_ID , in_ : * const byte , inSz : :: core :: ffi :: c_int , msg : * mut byte , msgSz : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_RsaDecrypt_ex (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , padScheme : TPM_ALG_ID , in_ : * const byte , inSz : :: core :: ffi :: c_int , msg : * mut byte , msgSz : * mut :: core :: ffi :: c_int , hashAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ReadPCR (dev : * mut WOLFTPM2_DEV , pcrIndex : :: core :: ffi :: c_int , hashAlg : :: core :: ffi :: c_int , digest : * mut byte , pDigestLen : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ResetPCR (dev : * mut WOLFTPM2_DEV , pcrIndex : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetLocality (dev : * mut WOLFTPM2_DEV , locality : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ExtendPCR (dev : * mut WOLFTPM2_DEV , pcrIndex : :: core :: ffi :: c_int , hashAlg : :: core :: ffi :: c_int , digest : * const byte , digestLen : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVCreateAuth (dev : * mut WOLFTPM2_DEV , parent : * mut WOLFTPM2_HANDLE , nv : * mut WOLFTPM2_NV , nvIndex : word32 , nvAttributes : word32 , maxSize : word32 , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVCreateAuthPolicy (dev : * mut WOLFTPM2_DEV , parent : * mut WOLFTPM2_HANDLE , nv : * mut WOLFTPM2_NV , nvIndex : word32 , nvAttributes : word32 , maxSize : word32 , auth : * const byte , authSz : :: core :: ffi :: c_int , authPolicy : * const byte , authPolicySz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVCreateAuthPolicy_ex (dev : * mut WOLFTPM2_DEV , parent : * mut WOLFTPM2_HANDLE , nv : * mut WOLFTPM2_NV , nvIndex : word32 , nvAttributes : word32 , maxSize : word32 , auth : * const byte , authSz : :: core :: ffi :: c_int , authPolicy : * const byte , authPolicySz : :: core :: ffi :: c_int , nameAlg : TPMI_ALG_HASH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVWriteAuth (dev : * mut WOLFTPM2_DEV , nv : * mut WOLFTPM2_NV , nvIndex : word32 , dataBuf : * mut byte , dataSz : word32 , offset : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVWriteAuthPolicy (dev : * mut WOLFTPM2_DEV , tpmSession : * mut WOLFTPM2_SESSION , pcrAlg : TPM_ALG_ID , pcrArray : * mut byte , pcrArraySz : word32 , nv : * mut WOLFTPM2_NV , nvIndex : word32 , dataBuf : * mut byte , dataSz : word32 , offset : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVExtend (dev : * mut WOLFTPM2_DEV , nv : * mut WOLFTPM2_NV , nvIndex : word32 , dataBuf : * mut byte , dataSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVReadAuth (dev : * mut WOLFTPM2_DEV , nv : * mut WOLFTPM2_NV , nvIndex : word32 , dataBuf : * mut byte , pDataSz : * mut word32 , offset : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVReadAuthPolicy (dev : * mut WOLFTPM2_DEV , tpmSession : * mut WOLFTPM2_SESSION , pcrAlg : TPM_ALG_ID , pcrArray : * mut byte , pcrArraySz : word32 , nv : * mut WOLFTPM2_NV , nvIndex : word32 , dataBuf : * mut byte , pDataSz : * mut word32 , offset : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVReadCert (dev : * mut WOLFTPM2_DEV , handle : TPM_HANDLE , buffer : * mut u8 , len : * mut u32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVIncrement (dev : * mut WOLFTPM2_DEV , nv : * mut WOLFTPM2_NV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVOpen (dev : * mut WOLFTPM2_DEV , nv : * mut WOLFTPM2_NV , nvIndex : word32 , auth : * const byte , authSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVWriteLock (dev : * mut WOLFTPM2_DEV , nv : * mut WOLFTPM2_NV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVDeleteAuth (dev : * mut WOLFTPM2_DEV , parent : * mut WOLFTPM2_HANDLE , nvIndex : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVCreate (dev : * mut WOLFTPM2_DEV , authHandle : TPM_HANDLE , nvIndex : word32 , nvAttributes : word32 , maxSize : word32 , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVWrite (dev : * mut WOLFTPM2_DEV , authHandle : TPM_HANDLE , nvIndex : word32 , dataBuf : * mut byte , dataSz : word32 , offset : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVRead (dev : * mut WOLFTPM2_DEV , authHandle : TPM_HANDLE , nvIndex : word32 , dataBuf : * mut byte , dataSz : * mut word32 , offset : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVDelete (dev : * mut WOLFTPM2_DEV , authHandle : TPM_HANDLE , nvIndex : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVReadPublic (dev : * mut WOLFTPM2_DEV , nvIndex : word32 , nvPublic : * mut TPMS_NV_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVStoreKey (dev : * mut WOLFTPM2_DEV , primaryHandle : TPM_HANDLE , key : * mut WOLFTPM2_KEY , persistentHandle : TPM_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NVDeleteKey (dev : * mut WOLFTPM2_DEV , primaryHandle : TPM_HANDLE , key : * mut WOLFTPM2_KEY) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetRng (dev : * mut WOLFTPM2_DEV) -> * mut WC_RNG ; } unsafe extern "C" { pub fn wolfTPM2_GetRandom (dev : * mut WOLFTPM2_DEV , buf : * mut byte , len : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_UnloadHandle (dev : * mut WOLFTPM2_DEV , handle : * mut WOLFTPM2_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_Clear (dev : * mut WOLFTPM2_DEV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_DictionaryAttackLockReset (dev : * mut WOLFTPM2_DEV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_DictionaryAttackParameters (dev : * mut WOLFTPM2_DEV , newMaxTries : word32 , newRecoveryTime : word32 , lockoutRecovery : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_HashStart (dev : * mut WOLFTPM2_DEV , hash : * mut WOLFTPM2_HASH , hashAlg : TPMI_ALG_HASH , usageAuth : * const byte , usageAuthSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_HashUpdate (dev : * mut WOLFTPM2_DEV , hash : * mut WOLFTPM2_HASH , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_HashFinish (dev : * mut WOLFTPM2_DEV , hash : * mut WOLFTPM2_HASH , digest : * mut byte , digestSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadKeyedHashKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , parent : * mut WOLFTPM2_HANDLE , hashAlg : :: core :: ffi :: c_int , keyBuf : * const byte , keySz : word32 , usageAuth : * const byte , usageAuthSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_HmacStart (dev : * mut WOLFTPM2_DEV , hmac : * mut WOLFTPM2_HMAC , parent : * mut WOLFTPM2_HANDLE , hashAlg : TPMI_ALG_HASH , keyBuf : * const byte , keySz : word32 , usageAuth : * const byte , usageAuthSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_HmacUpdate (dev : * mut WOLFTPM2_DEV , hmac : * mut WOLFTPM2_HMAC , data : * const byte , dataSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_HmacFinish (dev : * mut WOLFTPM2_DEV , hmac : * mut WOLFTPM2_HMAC , digest : * mut byte , digestSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_LoadSymmetricKey (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , alg : :: core :: ffi :: c_int , keyBuf : * const byte , keySz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_EncryptDecryptBlock (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , in_ : * const byte , out : * mut byte , inOutSz : word32 , iv : * mut byte , ivSz : word32 , isDecrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_EncryptDecrypt (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , in_ : * const byte , out : * mut byte , inOutSz : word32 , iv : * mut byte , ivSz : word32 , isDecrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetCommand (dev : * mut WOLFTPM2_DEV , commandCode : TPM_CC , enableFlag : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_Reset (dev : * mut WOLFTPM2_DEV , doShutdown : :: core :: ffi :: c_int , doStartup : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_Shutdown (dev : * mut WOLFTPM2_DEV , doStartup : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_UnloadHandles (dev : * mut WOLFTPM2_DEV , handleStart : word32 , handleCount : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_UnloadHandles_AllTransient (dev : * mut WOLFTPM2_DEV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_RSA (publicTemplate : * mut TPMT_PUBLIC , objectAttributes : TPMA_OBJECT) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_RSA_ex (publicTemplate : * mut TPMT_PUBLIC , nameAlg : TPM_ALG_ID , objectAttributes : TPMA_OBJECT , keyBits : :: core :: ffi :: c_int , exponent : :: core :: ffi :: c_long , sigScheme : TPM_ALG_ID , sigHash : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_ECC (publicTemplate : * mut TPMT_PUBLIC , objectAttributes : TPMA_OBJECT , curve : TPM_ECC_CURVE , sigScheme : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_ECC_ex (publicTemplate : * mut TPMT_PUBLIC , nameAlg : TPM_ALG_ID , objectAttributes : TPMA_OBJECT , curve : TPM_ECC_CURVE , sigScheme : TPM_ALG_ID , sigHash : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_Symmetric (publicTemplate : * mut TPMT_PUBLIC , keyBits : :: core :: ffi :: c_int , algMode : TPM_ALG_ID , isSign : :: core :: ffi :: c_int , isDecrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_KeyedHash (publicTemplate : * mut TPMT_PUBLIC , hashAlg : TPM_ALG_ID , isSign : :: core :: ffi :: c_int , isDecrypt : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_KeySeal (publicTemplate : * mut TPMT_PUBLIC , nameAlg : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_EK (publicTemplate : * mut TPMT_PUBLIC , alg : TPM_ALG_ID , keyBits : :: core :: ffi :: c_int , curveID : TPM_ECC_CURVE , nameAlg : TPM_ALG_ID , highRange : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_EKIndex (nvIndex : word32 , publicTemplate : * mut TPMT_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_RSA_EK (publicTemplate : * mut TPMT_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_ECC_EK (publicTemplate : * mut TPMT_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_RSA_SRK (publicTemplate : * mut TPMT_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_ECC_SRK (publicTemplate : * mut TPMT_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_RSA_AIK (publicTemplate : * mut TPMT_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_ECC_AIK (publicTemplate : * mut TPMT_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_RSA_IAK (publicTemplate : * mut TPMT_PUBLIC , keyBits : :: core :: ffi :: c_int , hashAlg : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_ECC_IAK (publicTemplate : * mut TPMT_PUBLIC , curveID : TPM_ECC_CURVE , hashAlg : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_ECC_IDevID (publicTemplate : * mut TPMT_PUBLIC , curveID : TPM_ECC_CURVE , hashAlg : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyTemplate_RSA_IDevID (publicTemplate : * mut TPMT_PUBLIC , keyBits : :: core :: ffi :: c_int , hashAlg : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetKeyTemplate_Unique (publicTemplate : * mut TPMT_PUBLIC , unique : * const byte , uniqueSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetNvAttributesTemplate (auth : TPM_HANDLE , nvAttributes : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateEK (dev : * mut WOLFTPM2_DEV , ekKey : * mut WOLFTPM2_KEY , alg : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateSRK (dev : * mut WOLFTPM2_DEV , srkKey : * mut WOLFTPM2_KEY , alg : TPM_ALG_ID , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CreateAndLoadAIK (dev : * mut WOLFTPM2_DEV , aikKey : * mut WOLFTPM2_KEY , alg : TPM_ALG_ID , srkKey : * mut WOLFTPM2_KEY , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetTime (aikKey : * mut WOLFTPM2_KEY , getTimeOut : * mut GetTime_Out) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CSR_SetCustomExt (dev : * mut WOLFTPM2_DEV , csr : * mut WOLFTPM2_CSR , critical : :: core :: ffi :: c_int , oid : * const :: core :: ffi :: c_char , der : * const byte , derSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CSR_SetKeyUsage (dev : * mut WOLFTPM2_DEV , csr : * mut WOLFTPM2_CSR , keyUsage : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CSR_SetSubject (dev : * mut WOLFTPM2_DEV , csr : * mut WOLFTPM2_CSR , subject : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CSR_MakeAndSign_ex (dev : * mut WOLFTPM2_DEV , csr : * mut WOLFTPM2_CSR , key : * mut WOLFTPM2_KEY , outFormat : :: core :: ffi :: c_int , out : * mut byte , outSz : :: core :: ffi :: c_int , sigType : :: core :: ffi :: c_int , selfSignCert : :: core :: ffi :: c_int , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CSR_MakeAndSign (dev : * mut WOLFTPM2_DEV , csr : * mut WOLFTPM2_CSR , key : * mut WOLFTPM2_KEY , outFormat : :: core :: ffi :: c_int , out : * mut byte , outSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CSR_Generate_ex (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , subject : * const :: core :: ffi :: c_char , keyUsage : * const :: core :: ffi :: c_char , outFormat : :: core :: ffi :: c_int , out : * mut byte , outSz : :: core :: ffi :: c_int , sigType : :: core :: ffi :: c_int , selfSignCert : :: core :: ffi :: c_int , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_CSR_Generate (dev : * mut WOLFTPM2_DEV , key : * mut WOLFTPM2_KEY , subject : * const :: core :: ffi :: c_char , keyUsage : * const :: core :: ffi :: c_char , outFormat : :: core :: ffi :: c_int , out : * mut byte , outSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ChangePlatformAuth (dev : * mut WOLFTPM2_DEV , session : * mut WOLFTPM2_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ChangeHierarchyAuth (dev : * mut WOLFTPM2_DEV , session : * mut WOLFTPM2_SESSION , authHandle : TPMI_RH_HIERARCHY_AUTH) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_EncryptSecret (dev : * mut WOLFTPM2_DEV , tpmKey : * const WOLFTPM2_KEY , secret : * mut TPM2B_DATA , encSecret : * mut TPM2B_ENCRYPTED_SECRET , label : * const :: core :: ffi :: c_char) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct TpmCryptoDevCtx { pub dev : * mut WOLFTPM2_DEV , pub rsaKey : * mut WOLFTPM2_KEY , pub rsaKeyGen : * mut WOLFTPM2_KEYBLOB , pub eccKey : * mut WOLFTPM2_KEY , pub ecdsaKey : * mut WOLFTPM2_KEYBLOB , pub ecdhKey : * mut WOLFTPM2_KEY , pub storageKey : * mut WOLFTPM2_KEY , pub _bitfield_align_1 : [u8 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 1usize] > , pub __bindgen_padding_0 : [u8 ; 7usize] , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of TpmCryptoDevCtx"] [:: core :: mem :: size_of :: < TpmCryptoDevCtx > () - 64usize] ; ["Alignment of TpmCryptoDevCtx"] [:: core :: mem :: align_of :: < TpmCryptoDevCtx > () - 8usize] ; ["Offset of field: TpmCryptoDevCtx::dev"] [:: core :: mem :: offset_of ! (TpmCryptoDevCtx , dev) - 0usize] ; ["Offset of field: TpmCryptoDevCtx::rsaKey"] [:: core :: mem :: offset_of ! (TpmCryptoDevCtx , rsaKey) - 8usize] ; ["Offset of field: TpmCryptoDevCtx::rsaKeyGen"] [:: core :: mem :: offset_of ! (TpmCryptoDevCtx , rsaKeyGen) - 16usize] ; ["Offset of field: TpmCryptoDevCtx::eccKey"] [:: core :: mem :: offset_of ! (TpmCryptoDevCtx , eccKey) - 24usize] ; ["Offset of field: TpmCryptoDevCtx::ecdsaKey"] [:: core :: mem :: offset_of ! (TpmCryptoDevCtx , ecdsaKey) - 32usize] ; ["Offset of field: TpmCryptoDevCtx::ecdhKey"] [:: core :: mem :: offset_of ! (TpmCryptoDevCtx , ecdhKey) - 40usize] ; ["Offset of field: TpmCryptoDevCtx::storageKey"] [:: core :: mem :: offset_of ! (TpmCryptoDevCtx , storageKey) - 48usize] ; } ; impl TpmCryptoDevCtx { # [inline] pub fn useFIPSMode (& self) -> :: core :: ffi :: c_ushort { unsafe { :: core :: mem :: transmute (self . _bitfield_1 . get (0usize , 1u8) as u16) } } # [inline] pub fn set_useFIPSMode (& mut self , val : :: core :: ffi :: c_ushort) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 1u8 , val as u64) } } # [inline] pub unsafe fn useFIPSMode_raw (this : * const Self) -> :: core :: ffi :: c_ushort { unsafe { :: core :: mem :: transmute (< __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_get (:: core :: ptr :: addr_of ! ((* this) . _bitfield_1) , 0usize , 1u8 ,) as u16) } } # [inline] pub unsafe fn set_useFIPSMode_raw (this : * mut Self , val : :: core :: ffi :: c_ushort) { unsafe { let val : u16 = :: core :: mem :: transmute (val) ; < __BindgenBitfieldUnit < [u8 ; 1usize] > > :: raw_set (:: core :: ptr :: addr_of_mut ! ((* this) . _bitfield_1) , 0usize , 1u8 , val as u64 ,) } } # [inline] pub fn new_bitfield_1 (useFIPSMode : :: core :: ffi :: c_ushort) -> __BindgenBitfieldUnit < [u8 ; 1usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 1usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 1u8 , { let useFIPSMode : u16 = unsafe { :: core :: mem :: transmute (useFIPSMode) } ; useFIPSMode as u64 }) ; __bindgen_bitfield_unit } } unsafe extern "C" { pub fn wolfTPM2_CryptoDevCb (devId : :: core :: ffi :: c_int , info : * mut wc_CryptoInfo , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetCryptoDevCb (dev : * mut WOLFTPM2_DEV , cb : CryptoDevCallbackFunc , tpmCtx : * mut TpmCryptoDevCtx , pDevId : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ClearCryptoDevCb (dev : * mut WOLFTPM2_DEV , devId : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PK_RsaSign (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , inSz : :: core :: ffi :: c_uint , out : * mut :: core :: ffi :: c_uchar , outSz : * mut word32 , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PK_RsaSignCheck (ssl : * mut WOLFSSL , sig : * mut :: core :: ffi :: c_uchar , sigSz : :: core :: ffi :: c_uint , out : * mut * mut :: core :: ffi :: c_uchar , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PK_RsaPssSign (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , inSz : :: core :: ffi :: c_uint , out : * mut :: core :: ffi :: c_uchar , outSz : * mut :: core :: ffi :: c_uint , hash : :: core :: ffi :: c_int , mgf : :: core :: ffi :: c_int , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PK_RsaPssSignCheck (ssl : * mut WOLFSSL , sig : * mut :: core :: ffi :: c_uchar , sigSz : :: core :: ffi :: c_uint , out : * mut * mut :: core :: ffi :: c_uchar , hash : :: core :: ffi :: c_int , mgf : :: core :: ffi :: c_int , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PK_EccSign (ssl : * mut WOLFSSL , in_ : * const :: core :: ffi :: c_uchar , inSz : :: core :: ffi :: c_uint , out : * mut :: core :: ffi :: c_uchar , outSz : * mut word32 , keyDer : * const :: core :: ffi :: c_uchar , keySz : :: core :: ffi :: c_uint , ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM_PK_SetCb (ctx : * mut WOLFSSL_CTX) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM_PK_SetCbCtx (ssl : * mut WOLFSSL , userCtx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_New () -> * mut WOLFTPM2_DEV ; } unsafe extern "C" { pub fn wolfTPM2_Free (dev : * mut WOLFTPM2_DEV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NewKeyBlob () -> * mut WOLFTPM2_KEYBLOB ; } unsafe extern "C" { pub fn wolfTPM2_FreeKeyBlob (blob : * mut WOLFTPM2_KEYBLOB) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NewPublicTemplate () -> * mut TPMT_PUBLIC ; } unsafe extern "C" { pub fn wolfTPM2_FreePublicTemplate (PublicTemplate : * mut TPMT_PUBLIC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NewKey () -> * mut WOLFTPM2_KEY ; } unsafe extern "C" { pub fn wolfTPM2_FreeKey (key : * mut WOLFTPM2_KEY) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NewSession () -> * mut WOLFTPM2_SESSION ; } unsafe extern "C" { pub fn wolfTPM2_FreeSession (session : * mut WOLFTPM2_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_NewCSR () -> * mut WOLFTPM2_CSR ; } unsafe extern "C" { pub fn wolfTPM2_FreeCSR (csr : * mut WOLFTPM2_CSR) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetHandleRefFromKey (key : * mut WOLFTPM2_KEY) -> * mut WOLFTPM2_HANDLE ; } unsafe extern "C" { pub fn wolfTPM2_GetHandleRefFromKeyBlob (keyBlob : * mut WOLFTPM2_KEYBLOB) -> * mut WOLFTPM2_HANDLE ; } unsafe extern "C" { pub fn wolfTPM2_GetHandleRefFromSession (session : * mut WOLFTPM2_SESSION) -> * mut WOLFTPM2_HANDLE ; } unsafe extern "C" { pub fn wolfTPM2_GetHandleValue (handle : * mut WOLFTPM2_HANDLE) -> TPM_HANDLE ; } unsafe extern "C" { pub fn wolfTPM2_SetKeyAuthPassword (key : * mut WOLFTPM2_KEY , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyBlobAsBuffer (buffer : * mut byte , bufferSz : word32 , key : * mut WOLFTPM2_KEYBLOB) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetKeyBlobAsSeparateBuffers (pubBuffer : * mut byte , pubBufferSz : * mut word32 , privBuffer : * mut byte , privBufferSz : * mut word32 , key : * mut WOLFTPM2_KEYBLOB) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetKeyBlobFromBuffer (key : * mut WOLFTPM2_KEYBLOB , buffer : * mut byte , bufferSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyRestart (dev : * mut WOLFTPM2_DEV , sessionHandle : TPM_HANDLE) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_GetPolicyDigest (dev : * mut WOLFTPM2_DEV , sessionHandle : TPM_HANDLE , policyDigest : * mut byte , policyDigestSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyPCR (dev : * mut WOLFTPM2_DEV , sessionHandle : TPM_HANDLE , pcrAlg : TPM_ALG_ID , pcrArray : * mut byte , pcrArraySz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyAuthorize (dev : * mut WOLFTPM2_DEV , sessionHandle : TPM_HANDLE , pub_ : * const TPM2B_PUBLIC , checkTicket : * const TPMT_TK_VERIFIED , pcrDigest : * const byte , pcrDigestSz : word32 , policyRef : * const byte , policyRefSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PCRGetDigest (dev : * mut WOLFTPM2_DEV , pcrAlg : TPM_ALG_ID , pcrArray : * mut byte , pcrArraySz : word32 , pcrDigest : * mut byte , pcrDigestSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyRefMake (pcrAlg : TPM_ALG_ID , digest : * mut byte , digestSz : * mut word32 , policyRef : * const byte , policyRefSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyPCRMake (pcrAlg : TPM_ALG_ID , pcrArray : * mut byte , pcrArraySz : word32 , pcrDigest : * const byte , pcrDigestSz : word32 , digest : * mut byte , digestSz : * mut word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyCommandCodeMake (hashAlg : TPM_ALG_ID , digest : * mut byte , digestSz : * mut word32 , cc : TPM_CC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyHash (hashAlg : TPM_ALG_ID , digest : * mut byte , digestSz : * mut word32 , cc : TPM_CC , input : * const byte , inputSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyAuthorizeMake (pcrAlg : TPM_ALG_ID , pub_ : * const TPM2B_PUBLIC , digest : * mut byte , digestSz : * mut word32 , policyRef : * const byte , policyRefSz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyPassword (dev : * mut WOLFTPM2_DEV , tpmSession : * mut WOLFTPM2_SESSION , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyAuthValue (dev : * mut WOLFTPM2_DEV , tpmSession : * mut WOLFTPM2_SESSION , auth : * const byte , authSz : :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyCommandCode (dev : * mut WOLFTPM2_DEV , tpmSession : * mut WOLFTPM2_SESSION , cc : TPM_CC) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_PolicyOR (dev : * mut WOLFTPM2_DEV , tpmSession : * mut WOLFTPM2_SESSION , pHashList : * const TPML_DIGEST) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_SetPrimaryPolicy (dev : * mut WOLFTPM2_DEV , authHandle : TPMI_RH_HIERARCHY_AUTH , hashAlg : TPM_ALG_ID , authPolicy : * const byte , authPolicySz : word32) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetKeyTemplateRSA (publicTemplate : * mut TPMT_PUBLIC , nameAlg : TPM_ALG_ID , objectAttributes : TPMA_OBJECT , keyBits : :: core :: ffi :: c_int , exponent : :: core :: ffi :: c_long , sigScheme : TPM_ALG_ID , sigHash : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn GetKeyTemplateECC (publicTemplate : * mut TPMT_PUBLIC , nameAlg : TPM_ALG_ID , objectAttributes : TPMA_OBJECT , curve : TPM_ECC_CURVE , sigScheme : TPM_ALG_ID , sigHash : TPM_ALG_ID) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_EccZToBuffer (out : * mut byte , outSz : * mut :: core :: ffi :: c_int , z : * const TPM2B_ECC_PARAMETER) -> :: core :: ffi :: c_int ; } pub type wolfTPM2FwDataCb = :: core :: option :: Option < unsafe extern "C" fn (data : * mut u8 , data_req_sz : u32 , offset : u32 , cb_ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int > ; unsafe extern "C" { pub fn wolfTPM2_FirmwareUpgradeHash (dev : * mut WOLFTPM2_DEV , hashAlg : TPM_ALG_ID , manifest_hash : * mut u8 , manifest_hash_sz : u32 , manifest : * mut u8 , manifest_sz : u32 , cb : wolfTPM2FwDataCb , cb_ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_FirmwareUpgradeHash_ex (dev : * mut WOLFTPM2_DEV , hashAlg : TPM_ALG_ID , manifest_hash : * mut u8 , manifest_hash_sz : u32 , manifest : * mut u8 , manifest_sz : u32 , cb : wolfTPM2FwDataCb , cb_ctx : * mut :: core :: ffi :: c_void , startSession : * mut WOLFTPM2_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_FirmwareUpgrade (dev : * mut WOLFTPM2_DEV , manifest : * mut u8 , manifest_sz : u32 , cb : wolfTPM2FwDataCb , cb_ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_FirmwareUpgrade_ex (dev : * mut WOLFTPM2_DEV , manifest : * mut u8 , manifest_sz : u32 , cb : wolfTPM2FwDataCb , cb_ctx : * mut :: core :: ffi :: c_void , startSession : * mut WOLFTPM2_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_FirmwareUpgradeRecover (dev : * mut WOLFTPM2_DEV , manifest : * mut u8 , manifest_sz : u32 , cb : wolfTPM2FwDataCb , cb_ctx : * mut :: core :: ffi :: c_void) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_FirmwareUpgradeRecover_ex (dev : * mut WOLFTPM2_DEV , manifest : * mut u8 , manifest_sz : u32 , cb : wolfTPM2FwDataCb , cb_ctx : * mut :: core :: ffi :: c_void , startSession : * mut WOLFTPM2_SESSION) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_FirmwareUpgradeCancel (dev : * mut WOLFTPM2_DEV) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ST33_ManifestVersion (manifest : * const u8 , manifest_sz : u32 , major : * mut word16 , minor : * mut word16) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ST33_CmdImplemented (cc : TPM_CC , isImpl : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ST33_GetFwUpgradeCommands (caps : * const WOLFTPM2_CAPS , manifestMajor : word16 , ccStart : * mut TPM_CC , ccData : * mut TPM_CC , fromTpm : * mut :: core :: ffi :: c_int) -> :: core :: ffi :: c_int ; } unsafe extern "C" { pub fn wolfTPM2_ST33_FwUpgradeCommands (fwVerMinor : word16 , haveFwVer : :: core :: ffi :: c_int , manifestMajor : word16 , ccStart : * mut TPM_CC , ccData : * mut TPM_CC) -> :: core :: ffi :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __locale_data { pub _address : u8 , } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: core :: ffi :: c_uint , pub fp_offset : :: core :: ffi :: c_uint , pub overflow_arg_area : * mut :: core :: ffi :: c_void , pub reg_save_area : * mut :: core :: ffi :: c_void , } # [allow (clippy :: unnecessary_operation , clippy :: identity_op)] const _ : () = { ["Size of __va_list_tag"] [:: core :: mem :: size_of :: < __va_list_tag > () - 24usize] ; ["Alignment of __va_list_tag"] [:: core :: mem :: align_of :: < __va_list_tag > () - 8usize] ; ["Offset of field: __va_list_tag::gp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , gp_offset) - 0usize] ; ["Offset of field: __va_list_tag::fp_offset"] [:: core :: mem :: offset_of ! (__va_list_tag , fp_offset) - 4usize] ; ["Offset of field: __va_list_tag::overflow_arg_area"] [:: core :: mem :: offset_of ! (__va_list_tag , overflow_arg_area) - 8usize] ; ["Offset of field: __va_list_tag::reg_save_area"] [:: core :: mem :: offset_of ! (__va_list_tag , reg_save_area) - 16usize] ; } ; pub type __uint128_t = u128 ; pub type __int128_t = i128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG { pub _address : u8 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DRBG_SHA512 { pub _address : u8 , } \ No newline at end of file