1
2
3
/* automatically generated by rust-bindgen */

# [ repr ( C ) ] # [ derive ( Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ) ] pub struct __BindgenBitfieldUnit < Storage , Align > { storage : Storage , align : [ Align ; 0 ] , } impl < Storage , Align > __BindgenBitfieldUnit < Storage , Align > { # [ inline ] pub const fn new ( storage : Storage ) -> Self { Self { storage , align : [ ] } } } impl < Storage , Align > __BindgenBitfieldUnit < Storage , Align > where Storage : AsRef < [ u8 ] > + AsMut < [ u8 ] >, { # [ 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 ] ; 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 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 ] ; 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 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 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 ) ; } } } pub const _LIBC_LIMITS_H_ : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : 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 __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 _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 31 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __LONG_DOUBLE_USES_FLOAT128 : 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_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const MB_LEN_MAX : u32 = 16 ; 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 PTHREAD_STACK_MIN : u32 = 16384 ; 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 _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 _STDINT_H : u32 = 1 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const __TIMESIZE : u32 = 64 ; 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 __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 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 PSA_KEY_ID_INIT : u32 = 0 ; pub const PSA_CRYPTO_API_VERSION_MAJOR : u32 = 1 ; pub const PSA_CRYPTO_API_VERSION_MINOR : u32 = 0 ; pub const PSA_MAC_TRUNCATION_OFFSET : u32 = 8 ; pub const PSA_AEAD_TAG_LENGTH_OFFSET : u32 = 8 ; pub const PSA_HASH_MAX_SIZE : u32 = 64 ; pub const PSA_HMAC_MAX_HASH_BLOCK_SIZE : u32 = 128 ; pub const PSA_MAC_MAX_SIZE : u32 = 64 ; pub const PSA_VENDOR_RSA_MAX_KEY_BITS : u32 = 4096 ; pub const PSA_VENDOR_ECC_MAX_CURVE_BITS : u32 = 521 ; pub const PSA_ALG_TLS12_PSK_TO_MS_MAX_PSK_LEN : u32 = 128 ; pub const PSA_MAX_BLOCK_CIPHER_BLOCK_SIZE : u32 = 16 ; 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 __time_t_defined : u32 = 1 ; pub const __struct_tm_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 __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 MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE : i32 = - 24704 ; pub const MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA : i32 = - 24832 ; pub const MBEDTLS_ERR_CIPHER_ALLOC_FAILED : i32 = - 24960 ; pub const MBEDTLS_ERR_CIPHER_INVALID_PADDING : i32 = - 25088 ; pub const MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED : i32 = - 25216 ; pub const MBEDTLS_ERR_CIPHER_AUTH_FAILED : i32 = - 25344 ; pub const MBEDTLS_ERR_CIPHER_INVALID_CONTEXT : i32 = - 25472 ; pub const MBEDTLS_ERR_CIPHER_HW_ACCEL_FAILED : i32 = - 25600 ; pub const MBEDTLS_CIPHER_VARIABLE_IV_LEN : u32 = 1 ; pub const MBEDTLS_CIPHER_VARIABLE_KEY_LEN : u32 = 2 ; pub const MBEDTLS_MAX_IV_LENGTH : u32 = 16 ; pub const MBEDTLS_MAX_BLOCK_LENGTH : u32 = 16 ; pub const MBEDTLS_ERR_CMAC_HW_ACCEL_FAILED : i32 = - 122 ; pub const MBEDTLS_AES_BLOCK_SIZE : u32 = 16 ; pub const MBEDTLS_DES3_BLOCK_SIZE : u32 = 8 ; pub const MBEDTLS_CIPHER_BLKSIZE_MAX : u32 = 16 ; pub const MBEDTLS_GCM_ENCRYPT : u32 = 1 ; pub const MBEDTLS_GCM_DECRYPT : u32 = 0 ; pub const MBEDTLS_ERR_GCM_AUTH_FAILED : i32 = - 18 ; pub const MBEDTLS_ERR_GCM_HW_ACCEL_FAILED : i32 = - 19 ; pub const MBEDTLS_ERR_GCM_BAD_INPUT : i32 = - 20 ; pub const MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE : i32 = - 20608 ; pub const MBEDTLS_ERR_MD_BAD_INPUT_DATA : i32 = - 20736 ; pub const MBEDTLS_ERR_MD_ALLOC_FAILED : i32 = - 20864 ; pub const MBEDTLS_ERR_MD_FILE_IO_ERROR : i32 = - 20992 ; pub const MBEDTLS_ERR_MD_HW_ACCEL_FAILED : i32 = - 21120 ; pub const MBEDTLS_MD_MAX_SIZE : u32 = 64 ; pub const MBEDTLS_MD_MAX_BLOCK_SIZE : u32 = 128 ; pub const MBEDTLS_ERR_MD2_HW_ACCEL_FAILED : i32 = - 43 ; pub const MBEDTLS_ERR_MD4_HW_ACCEL_FAILED : i32 = - 45 ; pub const MBEDTLS_ERR_MD5_HW_ACCEL_FAILED : i32 = - 47 ; pub const MBEDTLS_ERR_RIPEMD160_HW_ACCEL_FAILED : i32 = - 49 ; pub const MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED : i32 = - 53 ; pub const MBEDTLS_ERR_SHA1_BAD_INPUT_DATA : i32 = - 115 ; pub const MBEDTLS_ERR_SHA256_HW_ACCEL_FAILED : i32 = - 55 ; pub const MBEDTLS_ERR_SHA256_BAD_INPUT_DATA : i32 = - 116 ; pub const MBEDTLS_ERR_SHA512_HW_ACCEL_FAILED : i32 = - 57 ; pub const MBEDTLS_ERR_SHA512_BAD_INPUT_DATA : i32 = - 117 ; pub const PSA_MAX_KEY_BITS : u32 = 65528 ; pub const MBEDTLS_PSA_KA_MASK_DUAL_USE : u32 = 0 ; pub const PSA_CRYPTO_ITS_RANDOM_SEED_UID : u32 = 4294967122 ; pub const _STDIO_H : u32 = 1 ; pub const __GNUC_VA_LIST : 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 _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 : & 'static [ u8 ; 5usize ] = b"/tmp\0" ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const MBEDTLS_ERR_MPI_FILE_IO_ERROR : i32 = - 2 ; pub const MBEDTLS_ERR_MPI_BAD_INPUT_DATA : i32 = - 4 ; pub const MBEDTLS_ERR_MPI_INVALID_CHARACTER : i32 = - 6 ; pub const MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL : i32 = - 8 ; pub const MBEDTLS_ERR_MPI_NEGATIVE_VALUE : i32 = - 10 ; pub const MBEDTLS_ERR_MPI_DIVISION_BY_ZERO : i32 = - 12 ; pub const MBEDTLS_ERR_MPI_NOT_ACCEPTABLE : i32 = - 14 ; pub const MBEDTLS_ERR_MPI_ALLOC_FAILED : i32 = - 16 ; pub const MBEDTLS_MPI_MAX_LIMBS : u32 = 10000 ; pub const MBEDTLS_MPI_WINDOW_SIZE : u32 = 6 ; pub const MBEDTLS_MPI_MAX_SIZE : u32 = 1024 ; pub const MBEDTLS_MPI_MAX_BITS : u32 = 8192 ; pub const MBEDTLS_MPI_MAX_BITS_SCALE100 : u32 = 819200 ; pub const MBEDTLS_LN_2_DIV_LN_10_SCALE100 : u32 = 332 ; pub const MBEDTLS_MPI_RW_BUFFER_SIZE : u32 = 2484 ; pub const MBEDTLS_ERR_ECP_BAD_INPUT_DATA : i32 = - 20352 ; pub const MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL : i32 = - 20224 ; pub const MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE : i32 = - 20096 ; pub const MBEDTLS_ERR_ECP_VERIFY_FAILED : i32 = - 19968 ; pub const MBEDTLS_ERR_ECP_ALLOC_FAILED : i32 = - 19840 ; pub const MBEDTLS_ERR_ECP_RANDOM_FAILED : i32 = - 19712 ; pub const MBEDTLS_ERR_ECP_INVALID_KEY : i32 = - 19584 ; pub const MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH : i32 = - 19456 ; pub const MBEDTLS_ERR_ECP_HW_ACCEL_FAILED : i32 = - 19328 ; pub const MBEDTLS_ERR_ECP_IN_PROGRESS : i32 = - 19200 ; pub const MBEDTLS_ECP_DP_MAX : u32 = 12 ; pub const MBEDTLS_ECP_MAX_BITS : u32 = 521 ; pub const MBEDTLS_ECP_MAX_BYTES : u32 = 66 ; pub const MBEDTLS_ECP_MAX_PT_LEN : u32 = 133 ; pub const MBEDTLS_ECP_WINDOW_SIZE : u32 = 6 ; pub const MBEDTLS_ECP_FIXED_POINT_OPTIM : u32 = 1 ; pub const MBEDTLS_ECP_PF_UNCOMPRESSED : u32 = 0 ; pub const MBEDTLS_ECP_PF_COMPRESSED : u32 = 1 ; pub const MBEDTLS_ECP_TLS_NAMED_CURVE : u32 = 3 ; pub const PSA_DRV_SE_HAL_VERSION : u32 = 5 ; pub type mbedtls_iso_c_forbids_empty_translation_units = :: std :: os :: raw :: c_int ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: 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 = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __fsid_t { pub __val : [ :: std :: os :: raw :: c_int ; 2usize ] , } # [ test ] fn bindgen_test_layout___fsid_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __fsid_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __fsid_t ) , "::" , stringify ! ( __val ) ) ) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: 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 = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type psa_key_handle_t = u16 ; pub type psa_app_key_id_t = u32 ; pub type psa_key_file_id_t = psa_app_key_id_t ; pub type wchar_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ repr ( align ( 16 ) ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct max_align_t { pub __clang_max_align_nonce1 : :: std :: os :: raw :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [ test ] fn bindgen_test_layout_max_align_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < max_align_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( max_align_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < max_align_t > ( ) , 16usize , concat ! ( "Alignment of " , stringify ! ( max_align_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < max_align_t > ( ) ) ) . __clang_max_align_nonce1 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( max_align_t ) , "::" , stringify ! ( __clang_max_align_nonce1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < max_align_t > ( ) ) ) . __clang_max_align_nonce2 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( max_align_t ) , "::" , stringify ! ( __clang_max_align_nonce2 ) ) ) ; } pub type psa_status_t = i32 ; pub type psa_key_type_t = u16 ; pub type psa_ecc_curve_t = u8 ; pub type psa_dh_group_t = u8 ; pub type psa_algorithm_t = u32 ; pub type psa_key_lifetime_t = u32 ; pub type psa_key_persistence_t = u8 ; pub type psa_key_location_t = u32 ; pub type psa_key_id_t = u32 ; pub type psa_key_usage_t = u32 ; pub type psa_key_attributes_t = psa_key_attributes_s ; pub type psa_key_derivation_step_t = u16 ; extern "C" { pub fn psa_crypto_init ( ) -> psa_status_t ; } extern "C" { pub fn psa_get_key_attributes ( handle : psa_key_handle_t , attributes : * mut psa_key_attributes_t ) -> psa_status_t ; } extern "C" { pub fn psa_reset_key_attributes ( attributes : * mut psa_key_attributes_t ) ; } extern "C" { pub fn psa_open_key ( id : psa_key_id_t , handle : * mut psa_key_handle_t ) -> psa_status_t ; } extern "C" { pub fn psa_close_key ( handle : psa_key_handle_t ) -> psa_status_t ; } extern "C" { pub fn psa_copy_key ( source_handle : psa_key_handle_t , attributes : * const psa_key_attributes_t , target_handle : * mut psa_key_handle_t ) -> psa_status_t ; } extern "C" { pub fn psa_destroy_key ( handle : psa_key_handle_t ) -> psa_status_t ; } extern "C" { pub fn psa_import_key ( attributes : * const psa_key_attributes_t , data : * const u8 , data_length : usize , handle : * mut psa_key_handle_t ) -> psa_status_t ; } extern "C" { pub fn psa_export_key ( handle : psa_key_handle_t , data : * mut u8 , data_size : usize , data_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_export_public_key ( handle : psa_key_handle_t , data : * mut u8 , data_size : usize , data_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_hash_compute ( alg : psa_algorithm_t , input : * const u8 , input_length : usize , hash : * mut u8 , hash_size : usize , hash_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_hash_compare ( alg : psa_algorithm_t , input : * const u8 , input_length : usize , hash : * const u8 , hash_length : usize ) -> psa_status_t ; } pub type psa_hash_operation_t = psa_hash_operation_s ; extern "C" { pub fn psa_hash_setup ( operation : * mut psa_hash_operation_t , alg : psa_algorithm_t ) -> psa_status_t ; } extern "C" { pub fn psa_hash_update ( operation : * mut psa_hash_operation_t , input : * const u8 , input_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_hash_finish ( operation : * mut psa_hash_operation_t , hash : * mut u8 , hash_size : usize , hash_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_hash_verify ( operation : * mut psa_hash_operation_t , hash : * const u8 , hash_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_hash_abort ( operation : * mut psa_hash_operation_t ) -> psa_status_t ; } extern "C" { pub fn psa_hash_clone ( source_operation : * const psa_hash_operation_t , target_operation : * mut psa_hash_operation_t ) -> psa_status_t ; } extern "C" { pub fn psa_mac_compute ( handle : psa_key_handle_t , alg : psa_algorithm_t , input : * const u8 , input_length : usize , mac : * mut u8 , mac_size : usize , mac_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_mac_verify ( handle : psa_key_handle_t , alg : psa_algorithm_t , input : * const u8 , input_length : usize , mac : * const u8 , mac_length : usize ) -> psa_status_t ; } pub type psa_mac_operation_t = psa_mac_operation_s ; extern "C" { pub fn psa_mac_sign_setup ( operation : * mut psa_mac_operation_t , handle : psa_key_handle_t , alg : psa_algorithm_t ) -> psa_status_t ; } extern "C" { pub fn psa_mac_verify_setup ( operation : * mut psa_mac_operation_t , handle : psa_key_handle_t , alg : psa_algorithm_t ) -> psa_status_t ; } extern "C" { pub fn psa_mac_update ( operation : * mut psa_mac_operation_t , input : * const u8 , input_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_mac_sign_finish ( operation : * mut psa_mac_operation_t , mac : * mut u8 , mac_size : usize , mac_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_mac_verify_finish ( operation : * mut psa_mac_operation_t , mac : * const u8 , mac_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_mac_abort ( operation : * mut psa_mac_operation_t ) -> psa_status_t ; } extern "C" { pub fn psa_cipher_encrypt ( handle : psa_key_handle_t , alg : psa_algorithm_t , input : * const u8 , input_length : usize , output : * mut u8 , output_size : usize , output_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_cipher_decrypt ( handle : psa_key_handle_t , alg : psa_algorithm_t , input : * const u8 , input_length : usize , output : * mut u8 , output_size : usize , output_length : * mut usize ) -> psa_status_t ; } pub type psa_cipher_operation_t = psa_cipher_operation_s ; extern "C" { pub fn psa_cipher_encrypt_setup ( operation : * mut psa_cipher_operation_t , handle : psa_key_handle_t , alg : psa_algorithm_t ) -> psa_status_t ; } extern "C" { pub fn psa_cipher_decrypt_setup ( operation : * mut psa_cipher_operation_t , handle : psa_key_handle_t , alg : psa_algorithm_t ) -> psa_status_t ; } extern "C" { pub fn psa_cipher_generate_iv ( operation : * mut psa_cipher_operation_t , iv : * mut u8 , iv_size : usize , iv_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_cipher_set_iv ( operation : * mut psa_cipher_operation_t , iv : * const u8 , iv_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_cipher_update ( operation : * mut psa_cipher_operation_t , input : * const u8 , input_length : usize , output : * mut u8 , output_size : usize , output_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_cipher_finish ( operation : * mut psa_cipher_operation_t , output : * mut u8 , output_size : usize , output_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_cipher_abort ( operation : * mut psa_cipher_operation_t ) -> psa_status_t ; } extern "C" { pub fn psa_aead_encrypt ( handle : psa_key_handle_t , alg : psa_algorithm_t , nonce : * const u8 , nonce_length : usize , additional_data : * const u8 , additional_data_length : usize , plaintext : * const u8 , plaintext_length : usize , ciphertext : * mut u8 , ciphertext_size : usize , ciphertext_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_aead_decrypt ( handle : psa_key_handle_t , alg : psa_algorithm_t , nonce : * const u8 , nonce_length : usize , additional_data : * const u8 , additional_data_length : usize , ciphertext : * const u8 , ciphertext_length : usize , plaintext : * mut u8 , plaintext_size : usize , plaintext_length : * mut usize ) -> psa_status_t ; } pub type psa_aead_operation_t = psa_aead_operation_s ; extern "C" { pub fn psa_aead_encrypt_setup ( operation : * mut psa_aead_operation_t , handle : psa_key_handle_t , alg : psa_algorithm_t ) -> psa_status_t ; } extern "C" { pub fn psa_aead_decrypt_setup ( operation : * mut psa_aead_operation_t , handle : psa_key_handle_t , alg : psa_algorithm_t ) -> psa_status_t ; } extern "C" { pub fn psa_aead_generate_nonce ( operation : * mut psa_aead_operation_t , nonce : * mut u8 , nonce_size : usize , nonce_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_aead_set_nonce ( operation : * mut psa_aead_operation_t , nonce : * const u8 , nonce_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_aead_set_lengths ( operation : * mut psa_aead_operation_t , ad_length : usize , plaintext_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_aead_update_ad ( operation : * mut psa_aead_operation_t , input : * const u8 , input_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_aead_update ( operation : * mut psa_aead_operation_t , input : * const u8 , input_length : usize , output : * mut u8 , output_size : usize , output_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_aead_finish ( operation : * mut psa_aead_operation_t , ciphertext : * mut u8 , ciphertext_size : usize , ciphertext_length : * mut usize , tag : * mut u8 , tag_size : usize , tag_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_aead_verify ( operation : * mut psa_aead_operation_t , plaintext : * mut u8 , plaintext_size : usize , plaintext_length : * mut usize , tag : * const u8 , tag_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_aead_abort ( operation : * mut psa_aead_operation_t ) -> psa_status_t ; } extern "C" { pub fn psa_sign_hash ( handle : psa_key_handle_t , alg : psa_algorithm_t , hash : * const u8 , hash_length : usize , signature : * mut u8 , signature_size : usize , signature_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_verify_hash ( handle : psa_key_handle_t , alg : psa_algorithm_t , hash : * const u8 , hash_length : usize , signature : * const u8 , signature_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_asymmetric_encrypt ( handle : psa_key_handle_t , alg : psa_algorithm_t , input : * const u8 , input_length : usize , salt : * const u8 , salt_length : usize , output : * mut u8 , output_size : usize , output_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_asymmetric_decrypt ( handle : psa_key_handle_t , alg : psa_algorithm_t , input : * const u8 , input_length : usize , salt : * const u8 , salt_length : usize , output : * mut u8 , output_size : usize , output_length : * mut usize ) -> psa_status_t ; } pub type psa_key_derivation_operation_t = psa_key_derivation_s ; extern "C" { pub fn psa_key_derivation_setup ( operation : * mut psa_key_derivation_operation_t , alg : psa_algorithm_t ) -> psa_status_t ; } extern "C" { pub fn psa_key_derivation_get_capacity ( operation : * const psa_key_derivation_operation_t , capacity : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_key_derivation_set_capacity ( operation : * mut psa_key_derivation_operation_t , capacity : usize ) -> psa_status_t ; } extern "C" { pub fn psa_key_derivation_input_bytes ( operation : * mut psa_key_derivation_operation_t , step : psa_key_derivation_step_t , data : * const u8 , data_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_key_derivation_input_key ( operation : * mut psa_key_derivation_operation_t , step : psa_key_derivation_step_t , handle : psa_key_handle_t ) -> psa_status_t ; } extern "C" { pub fn psa_key_derivation_key_agreement ( operation : * mut psa_key_derivation_operation_t , step : psa_key_derivation_step_t , private_key : psa_key_handle_t , peer_key : * const u8 , peer_key_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_key_derivation_output_bytes ( operation : * mut psa_key_derivation_operation_t , output : * mut u8 , output_length : usize ) -> psa_status_t ; } extern "C" { pub fn psa_key_derivation_output_key ( attributes : * const psa_key_attributes_t , operation : * mut psa_key_derivation_operation_t , handle : * mut psa_key_handle_t ) -> psa_status_t ; } extern "C" { pub fn psa_key_derivation_abort ( operation : * mut psa_key_derivation_operation_t ) -> psa_status_t ; } extern "C" { pub fn psa_raw_key_agreement ( alg : psa_algorithm_t , private_key : psa_key_handle_t , peer_key : * const u8 , peer_key_length : usize , output : * mut u8 , output_size : usize , output_length : * mut usize ) -> psa_status_t ; } extern "C" { pub fn psa_generate_random ( output : * mut u8 , output_size : usize ) -> psa_status_t ; } extern "C" { pub fn psa_generate_key ( attributes : * const psa_key_attributes_t , handle : * mut psa_key_handle_t ) -> psa_status_t ; } pub type clock_t = __clock_t ; pub type time_t = __time_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct tm { pub tm_sec : :: std :: os :: raw :: c_int , pub tm_min : :: std :: os :: raw :: c_int , pub tm_hour : :: std :: os :: raw :: c_int , pub tm_mday : :: std :: os :: raw :: c_int , pub tm_mon : :: std :: os :: raw :: c_int , pub tm_year : :: std :: os :: raw :: c_int , pub tm_wday : :: std :: os :: raw :: c_int , pub tm_yday : :: std :: os :: raw :: c_int , pub tm_isdst : :: std :: os :: raw :: c_int , pub tm_gmtoff : :: std :: os :: raw :: c_long , pub tm_zone : * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_tm ( ) { assert_eq ! ( :: std :: mem :: size_of :: < tm > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( tm ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < tm > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( tm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_min as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_min ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_hour as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_hour ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_mday as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_mday ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_mon as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_mon ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_year as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_year ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_wday as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_wday ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_yday as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_yday ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_isdst as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_isdst ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_gmtoff as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_gmtoff ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < tm > ( ) ) ) . tm_zone as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( tm ) , "::" , stringify ! ( tm_zone ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [ test ] fn bindgen_test_layout_timespec ( ) { assert_eq ! ( :: std :: mem :: size_of :: < timespec > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( timespec ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < timespec > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( timespec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timespec > ( ) ) ) . tv_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( timespec ) , "::" , stringify ! ( tv_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < timespec > ( ) ) ) . tv_nsec as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( timespec ) , "::" , stringify ! ( tv_nsec ) ) ) ; } 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 , } # [ test ] fn bindgen_test_layout_itimerspec ( ) { assert_eq ! ( :: std :: mem :: size_of :: < itimerspec > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( itimerspec ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < itimerspec > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( itimerspec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < itimerspec > ( ) ) ) . it_interval as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( itimerspec ) , "::" , stringify ! ( it_interval ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < itimerspec > ( ) ) ) . it_value as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( itimerspec ) , "::" , stringify ! ( it_value ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct sigevent { _unused : [ u8 ; 0 ] , } pub type pid_t = __pid_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __locale_struct { pub __locales : [ * mut __locale_data ; 13usize ] , pub __ctype_b : * const :: std :: os :: raw :: c_ushort , pub __ctype_tolower : * const :: std :: os :: raw :: c_int , pub __ctype_toupper : * const :: std :: os :: raw :: c_int , pub __names : [ * const :: std :: os :: raw :: c_char ; 13usize ] , } # [ test ] fn bindgen_test_layout___locale_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __locale_struct > ( ) , 232usize , concat ! ( "Size of: " , stringify ! ( __locale_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __locale_struct > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __locale_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __locales as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __locales ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_b as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_b ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_tolower as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_tolower ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __ctype_toupper as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __ctype_toupper ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __locale_struct > ( ) ) ) . __names as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( __locale_struct ) , "::" , stringify ! ( __names ) ) ) ; } pub type __locale_t = * mut __locale_struct ; pub type locale_t = __locale_t ; extern "C" { pub fn clock ( ) -> clock_t ; } extern "C" { pub fn time ( __timer : * mut time_t ) -> time_t ; } extern "C" { pub fn difftime ( __time1 : time_t , __time0 : time_t ) -> f64 ; } extern "C" { pub fn mktime ( __tp : * mut tm ) -> time_t ; } extern "C" { pub fn strftime ( __s : * mut :: std :: os :: raw :: c_char , __maxsize : usize , __format : * const :: std :: os :: raw :: c_char , __tp : * const tm ) -> usize ; } extern "C" { pub fn strftime_l ( __s : * mut :: std :: os :: raw :: c_char , __maxsize : usize , __format : * const :: std :: os :: raw :: c_char , __tp : * const tm , __loc : locale_t ) -> usize ; } extern "C" { pub fn gmtime ( __timer : * const time_t ) -> * mut tm ; } extern "C" { pub fn localtime ( __timer : * const time_t ) -> * mut tm ; } extern "C" { pub fn gmtime_r ( __timer : * const time_t , __tp : * mut tm ) -> * mut tm ; } extern "C" { pub fn localtime_r ( __timer : * const time_t , __tp : * mut tm ) -> * mut tm ; } extern "C" { pub fn asctime ( __tp : * const tm ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ctime ( __timer : * const time_t ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn asctime_r ( __tp : * const tm , __buf : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ctime_r ( __timer : * const time_t , __buf : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub static mut __tzname : [ * mut :: std :: os :: raw :: c_char ; 2usize ] ; } extern "C" { pub static mut __daylight : :: std :: os :: raw :: c_int ; } extern "C" { pub static mut __timezone : :: std :: os :: raw :: c_long ; } extern "C" { pub static mut tzname : [ * mut :: std :: os :: raw :: c_char ; 2usize ] ; } extern "C" { pub fn tzset ( ) ; } extern "C" { pub static mut daylight : :: std :: os :: raw :: c_int ; } extern "C" { pub static mut timezone : :: std :: os :: raw :: c_long ; } extern "C" { pub fn timegm ( __tp : * mut tm ) -> time_t ; } extern "C" { pub fn timelocal ( __tp : * mut tm ) -> time_t ; } extern "C" { pub fn dysize ( __year : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nanosleep ( __requested_time : * const timespec , __remaining : * mut timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_getres ( __clock_id : clockid_t , __res : * mut timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_gettime ( __clock_id : clockid_t , __tp : * mut timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_settime ( __clock_id : clockid_t , __tp : * const timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_nanosleep ( __clock_id : clockid_t , __flags : :: std :: os :: raw :: c_int , __req : * const timespec , __rem : * mut timespec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clock_getcpuclockid ( __pid : pid_t , __clock_id : * mut clockid_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_create ( __clock_id : clockid_t , __evp : * mut sigevent , __timerid : * mut timer_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_delete ( __timerid : timer_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_settime ( __timerid : timer_t , __flags : :: std :: os :: raw :: c_int , __value : * const itimerspec , __ovalue : * mut itimerspec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_gettime ( __timerid : timer_t , __value : * mut itimerspec ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timer_getoverrun ( __timerid : timer_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn timespec_get ( __ts : * mut timespec , __base : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub type mbedtls_time_t = time_t ; extern "C" { pub fn mbedtls_platform_zeroize ( buf : * mut :: std :: os :: raw :: c_void , len : usize ) ; } extern "C" { pub fn mbedtls_platform_gmtime_r ( tt : * const mbedtls_time_t , tm_buf : * mut tm ) -> * mut tm ; } pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_NONE : mbedtls_cipher_id_t = 0 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_NULL : mbedtls_cipher_id_t = 1 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_AES : mbedtls_cipher_id_t = 2 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_DES : mbedtls_cipher_id_t = 3 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_3DES : mbedtls_cipher_id_t = 4 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_CAMELLIA : mbedtls_cipher_id_t = 5 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_BLOWFISH : mbedtls_cipher_id_t = 6 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_ARC4 : mbedtls_cipher_id_t = 7 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_ARIA : mbedtls_cipher_id_t = 8 ; pub const mbedtls_cipher_id_t_MBEDTLS_CIPHER_ID_CHACHA20 : mbedtls_cipher_id_t = 9 ; pub type mbedtls_cipher_id_t = u32 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_NONE : mbedtls_cipher_type_t = 0 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_NULL : mbedtls_cipher_type_t = 1 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_ECB : mbedtls_cipher_type_t = 2 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_ECB : mbedtls_cipher_type_t = 3 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_ECB : mbedtls_cipher_type_t = 4 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_CBC : mbedtls_cipher_type_t = 5 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_CBC : mbedtls_cipher_type_t = 6 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_CBC : mbedtls_cipher_type_t = 7 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_CFB128 : mbedtls_cipher_type_t = 8 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_CFB128 : mbedtls_cipher_type_t = 9 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_CFB128 : mbedtls_cipher_type_t = 10 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_CTR : mbedtls_cipher_type_t = 11 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_CTR : mbedtls_cipher_type_t = 12 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_CTR : mbedtls_cipher_type_t = 13 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_GCM : mbedtls_cipher_type_t = 14 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_GCM : mbedtls_cipher_type_t = 15 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_GCM : mbedtls_cipher_type_t = 16 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_128_ECB : mbedtls_cipher_type_t = 17 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_192_ECB : mbedtls_cipher_type_t = 18 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_256_ECB : mbedtls_cipher_type_t = 19 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_128_CBC : mbedtls_cipher_type_t = 20 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_192_CBC : mbedtls_cipher_type_t = 21 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_256_CBC : mbedtls_cipher_type_t = 22 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_128_CFB128 : mbedtls_cipher_type_t = 23 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_192_CFB128 : mbedtls_cipher_type_t = 24 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_256_CFB128 : mbedtls_cipher_type_t = 25 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_128_CTR : mbedtls_cipher_type_t = 26 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_192_CTR : mbedtls_cipher_type_t = 27 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_256_CTR : mbedtls_cipher_type_t = 28 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_128_GCM : mbedtls_cipher_type_t = 29 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_192_GCM : mbedtls_cipher_type_t = 30 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_256_GCM : mbedtls_cipher_type_t = 31 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_DES_ECB : mbedtls_cipher_type_t = 32 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_DES_CBC : mbedtls_cipher_type_t = 33 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_DES_EDE_ECB : mbedtls_cipher_type_t = 34 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_DES_EDE_CBC : mbedtls_cipher_type_t = 35 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_DES_EDE3_ECB : mbedtls_cipher_type_t = 36 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_DES_EDE3_CBC : mbedtls_cipher_type_t = 37 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_BLOWFISH_ECB : mbedtls_cipher_type_t = 38 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_BLOWFISH_CBC : mbedtls_cipher_type_t = 39 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_BLOWFISH_CFB64 : mbedtls_cipher_type_t = 40 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_BLOWFISH_CTR : mbedtls_cipher_type_t = 41 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARC4_128 : mbedtls_cipher_type_t = 42 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_CCM : mbedtls_cipher_type_t = 43 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_CCM : mbedtls_cipher_type_t = 44 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_CCM : mbedtls_cipher_type_t = 45 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_128_CCM : mbedtls_cipher_type_t = 46 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_192_CCM : mbedtls_cipher_type_t = 47 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CAMELLIA_256_CCM : mbedtls_cipher_type_t = 48 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_128_ECB : mbedtls_cipher_type_t = 49 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_192_ECB : mbedtls_cipher_type_t = 50 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_256_ECB : mbedtls_cipher_type_t = 51 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_128_CBC : mbedtls_cipher_type_t = 52 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_192_CBC : mbedtls_cipher_type_t = 53 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_256_CBC : mbedtls_cipher_type_t = 54 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_128_CFB128 : mbedtls_cipher_type_t = 55 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_192_CFB128 : mbedtls_cipher_type_t = 56 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_256_CFB128 : mbedtls_cipher_type_t = 57 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_128_CTR : mbedtls_cipher_type_t = 58 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_192_CTR : mbedtls_cipher_type_t = 59 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_256_CTR : mbedtls_cipher_type_t = 60 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_128_GCM : mbedtls_cipher_type_t = 61 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_192_GCM : mbedtls_cipher_type_t = 62 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_256_GCM : mbedtls_cipher_type_t = 63 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_128_CCM : mbedtls_cipher_type_t = 64 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_192_CCM : mbedtls_cipher_type_t = 65 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_ARIA_256_CCM : mbedtls_cipher_type_t = 66 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_OFB : mbedtls_cipher_type_t = 67 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_OFB : mbedtls_cipher_type_t = 68 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_OFB : mbedtls_cipher_type_t = 69 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_XTS : mbedtls_cipher_type_t = 70 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_XTS : mbedtls_cipher_type_t = 71 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CHACHA20 : mbedtls_cipher_type_t = 72 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_CHACHA20_POLY1305 : mbedtls_cipher_type_t = 73 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_KW : mbedtls_cipher_type_t = 74 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_KW : mbedtls_cipher_type_t = 75 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_KW : mbedtls_cipher_type_t = 76 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_128_KWP : mbedtls_cipher_type_t = 77 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_192_KWP : mbedtls_cipher_type_t = 78 ; pub const mbedtls_cipher_type_t_MBEDTLS_CIPHER_AES_256_KWP : mbedtls_cipher_type_t = 79 ; pub type mbedtls_cipher_type_t = u32 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_NONE : mbedtls_cipher_mode_t = 0 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_ECB : mbedtls_cipher_mode_t = 1 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_CBC : mbedtls_cipher_mode_t = 2 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_CFB : mbedtls_cipher_mode_t = 3 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_OFB : mbedtls_cipher_mode_t = 4 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_CTR : mbedtls_cipher_mode_t = 5 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_GCM : mbedtls_cipher_mode_t = 6 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_STREAM : mbedtls_cipher_mode_t = 7 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_CCM : mbedtls_cipher_mode_t = 8 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_XTS : mbedtls_cipher_mode_t = 9 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_CHACHAPOLY : mbedtls_cipher_mode_t = 10 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_KW : mbedtls_cipher_mode_t = 11 ; pub const mbedtls_cipher_mode_t_MBEDTLS_MODE_KWP : mbedtls_cipher_mode_t = 12 ; pub type mbedtls_cipher_mode_t = u32 ; pub const mbedtls_cipher_padding_t_MBEDTLS_PADDING_PKCS7 : mbedtls_cipher_padding_t = 0 ; pub const mbedtls_cipher_padding_t_MBEDTLS_PADDING_ONE_AND_ZEROS : mbedtls_cipher_padding_t = 1 ; pub const mbedtls_cipher_padding_t_MBEDTLS_PADDING_ZEROS_AND_LEN : mbedtls_cipher_padding_t = 2 ; pub const mbedtls_cipher_padding_t_MBEDTLS_PADDING_ZEROS : mbedtls_cipher_padding_t = 3 ; pub const mbedtls_cipher_padding_t_MBEDTLS_PADDING_NONE : mbedtls_cipher_padding_t = 4 ; pub type mbedtls_cipher_padding_t = u32 ; pub const mbedtls_operation_t_MBEDTLS_OPERATION_NONE : mbedtls_operation_t = - 1 ; pub const mbedtls_operation_t_MBEDTLS_DECRYPT : mbedtls_operation_t = 0 ; pub const mbedtls_operation_t_MBEDTLS_ENCRYPT : mbedtls_operation_t = 1 ; pub type mbedtls_operation_t = i32 ; pub const MBEDTLS_KEY_LENGTH_NONE : _bindgen_ty_1 = 0 ; pub const MBEDTLS_KEY_LENGTH_DES : _bindgen_ty_1 = 64 ; pub const MBEDTLS_KEY_LENGTH_DES_EDE : _bindgen_ty_1 = 128 ; pub const MBEDTLS_KEY_LENGTH_DES_EDE3 : _bindgen_ty_1 = 192 ; pub type _bindgen_ty_1 = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_cipher_base_t { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_cipher_info_t { pub type_ : mbedtls_cipher_type_t , pub mode : mbedtls_cipher_mode_t , pub key_bitlen : :: std :: os :: raw :: c_uint , pub name : * const :: std :: os :: raw :: c_char , pub iv_size : :: std :: os :: raw :: c_uint , pub flags : :: std :: os :: raw :: c_int , pub block_size : :: std :: os :: raw :: c_uint , pub base : * const mbedtls_cipher_base_t , } # [ test ] fn bindgen_test_layout_mbedtls_cipher_info_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_cipher_info_t > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( mbedtls_cipher_info_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_cipher_info_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_cipher_info_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_info_t > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_info_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_info_t > ( ) ) ) . mode as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_info_t ) , "::" , stringify ! ( mode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_info_t > ( ) ) ) . key_bitlen as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_info_t ) , "::" , stringify ! ( key_bitlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_info_t > ( ) ) ) . name as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_info_t ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_info_t > ( ) ) ) . iv_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_info_t ) , "::" , stringify ! ( iv_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_info_t > ( ) ) ) . flags as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_info_t ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_info_t > ( ) ) ) . block_size as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_info_t ) , "::" , stringify ! ( block_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_info_t > ( ) ) ) . base as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_info_t ) , "::" , stringify ! ( base ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_cipher_context_t { pub cipher_info : * const mbedtls_cipher_info_t , pub key_bitlen : :: std :: os :: raw :: c_int , pub operation : mbedtls_operation_t , pub add_padding : :: std :: option :: Option < unsafe extern "C" fn ( output : * mut :: std :: os :: raw :: c_uchar , olen : usize , data_len : usize ) > , pub get_padding : :: std :: option :: Option < unsafe extern "C" fn ( input : * mut :: std :: os :: raw :: c_uchar , ilen : usize , data_len : * mut usize ) -> :: std :: os :: raw :: c_int > , pub unprocessed_data : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub unprocessed_len : usize , pub iv : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub iv_size : usize , pub cipher_ctx : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_mbedtls_cipher_context_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_cipher_context_t > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( mbedtls_cipher_context_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_cipher_context_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_cipher_context_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . cipher_info as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( cipher_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . key_bitlen as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( key_bitlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . operation as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( operation ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . add_padding as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( add_padding ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . get_padding as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( get_padding ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . unprocessed_data as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( unprocessed_data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . unprocessed_len as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( unprocessed_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . iv as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( iv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . iv_size as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( iv_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cipher_context_t > ( ) ) ) . cipher_ctx as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cipher_context_t ) , "::" , stringify ! ( cipher_ctx ) ) ) ; } extern "C" { pub fn mbedtls_cipher_list ( ) -> * const :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_info_from_string ( cipher_name : * const :: std :: os :: raw :: c_char ) -> * const mbedtls_cipher_info_t ; } extern "C" { pub fn mbedtls_cipher_info_from_type ( cipher_type : mbedtls_cipher_type_t ) -> * const mbedtls_cipher_info_t ; } extern "C" { pub fn mbedtls_cipher_info_from_values ( cipher_id : mbedtls_cipher_id_t , key_bitlen : :: std :: os :: raw :: c_int , mode : mbedtls_cipher_mode_t ) -> * const mbedtls_cipher_info_t ; } extern "C" { pub fn mbedtls_cipher_init ( ctx : * mut mbedtls_cipher_context_t ) ; } extern "C" { pub fn mbedtls_cipher_free ( ctx : * mut mbedtls_cipher_context_t ) ; } extern "C" { pub fn mbedtls_cipher_setup ( ctx : * mut mbedtls_cipher_context_t , cipher_info : * const mbedtls_cipher_info_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_setkey ( ctx : * mut mbedtls_cipher_context_t , key : * const :: std :: os :: raw :: c_uchar , key_bitlen : :: std :: os :: raw :: c_int , operation : mbedtls_operation_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_set_padding_mode ( ctx : * mut mbedtls_cipher_context_t , mode : mbedtls_cipher_padding_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_set_iv ( ctx : * mut mbedtls_cipher_context_t , iv : * const :: std :: os :: raw :: c_uchar , iv_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_reset ( ctx : * mut mbedtls_cipher_context_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_update_ad ( ctx : * mut mbedtls_cipher_context_t , ad : * const :: std :: os :: raw :: c_uchar , ad_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_update ( ctx : * mut mbedtls_cipher_context_t , input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar , olen : * mut usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_finish ( ctx : * mut mbedtls_cipher_context_t , output : * mut :: std :: os :: raw :: c_uchar , olen : * mut usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_write_tag ( ctx : * mut mbedtls_cipher_context_t , tag : * mut :: std :: os :: raw :: c_uchar , tag_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_check_tag ( ctx : * mut mbedtls_cipher_context_t , tag : * const :: std :: os :: raw :: c_uchar , tag_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_crypt ( ctx : * mut mbedtls_cipher_context_t , iv : * const :: std :: os :: raw :: c_uchar , iv_len : usize , input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar , olen : * mut usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_auth_encrypt ( ctx : * mut mbedtls_cipher_context_t , iv : * const :: std :: os :: raw :: c_uchar , iv_len : usize , ad : * const :: std :: os :: raw :: c_uchar , ad_len : usize , input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar , olen : * mut usize , tag : * mut :: std :: os :: raw :: c_uchar , tag_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_auth_decrypt ( ctx : * mut mbedtls_cipher_context_t , iv : * const :: std :: os :: raw :: c_uchar , iv_len : usize , ad : * const :: std :: os :: raw :: c_uchar , ad_len : usize , input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar , olen : * mut usize , tag : * const :: std :: os :: raw :: c_uchar , tag_len : usize ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_cmac_context_t { pub state : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub unprocessed_block : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub unprocessed_len : usize , } # [ test ] fn bindgen_test_layout_mbedtls_cmac_context_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_cmac_context_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( mbedtls_cmac_context_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_cmac_context_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_cmac_context_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cmac_context_t > ( ) ) ) . state as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cmac_context_t ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cmac_context_t > ( ) ) ) . unprocessed_block as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cmac_context_t ) , "::" , stringify ! ( unprocessed_block ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_cmac_context_t > ( ) ) ) . unprocessed_len as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_cmac_context_t ) , "::" , stringify ! ( unprocessed_len ) ) ) ; } extern "C" { pub fn mbedtls_cipher_cmac_starts ( ctx : * mut mbedtls_cipher_context_t , key : * const :: std :: os :: raw :: c_uchar , keybits : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_cmac_update ( ctx : * mut mbedtls_cipher_context_t , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_cmac_finish ( ctx : * mut mbedtls_cipher_context_t , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_cmac_reset ( ctx : * mut mbedtls_cipher_context_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cipher_cmac ( cipher_info : * const mbedtls_cipher_info_t , key : * const :: std :: os :: raw :: c_uchar , keylen : usize , input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_aes_cmac_prf_128 ( key : * const :: std :: os :: raw :: c_uchar , key_len : usize , input : * const :: std :: os :: raw :: c_uchar , in_len : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_cmac_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_gcm_context { pub cipher_ctx : mbedtls_cipher_context_t , pub HL : [ u64 ; 16usize ] , pub HH : [ u64 ; 16usize ] , pub len : u64 , pub add_len : u64 , pub base_ectr : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub y : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub buf : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub mode : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_mbedtls_gcm_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_gcm_context > ( ) , 416usize , concat ! ( "Size of: " , stringify ! ( mbedtls_gcm_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_gcm_context > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_gcm_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . cipher_ctx as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( cipher_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . HL as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( HL ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . HH as * const _ as usize } , 216usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( HH ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . len as * const _ as usize } , 344usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . add_len as * const _ as usize } , 352usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( add_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . base_ectr as * const _ as usize } , 360usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( base_ectr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . y as * const _ as usize } , 376usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . buf as * const _ as usize } , 392usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_gcm_context > ( ) ) ) . mode as * const _ as usize } , 408usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_gcm_context ) , "::" , stringify ! ( mode ) ) ) ; } extern "C" { pub fn mbedtls_gcm_init ( ctx : * mut mbedtls_gcm_context ) ; } extern "C" { pub fn mbedtls_gcm_setkey ( ctx : * mut mbedtls_gcm_context , cipher : mbedtls_cipher_id_t , key : * const :: std :: os :: raw :: c_uchar , keybits : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_gcm_crypt_and_tag ( ctx : * mut mbedtls_gcm_context , mode : :: std :: os :: raw :: c_int , length : usize , iv : * const :: std :: os :: raw :: c_uchar , iv_len : usize , add : * const :: std :: os :: raw :: c_uchar , add_len : usize , input : * const :: std :: os :: raw :: c_uchar , output : * mut :: std :: os :: raw :: c_uchar , tag_len : usize , tag : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_gcm_auth_decrypt ( ctx : * mut mbedtls_gcm_context , length : usize , iv : * const :: std :: os :: raw :: c_uchar , iv_len : usize , add : * const :: std :: os :: raw :: c_uchar , add_len : usize , tag : * const :: std :: os :: raw :: c_uchar , tag_len : usize , input : * const :: std :: os :: raw :: c_uchar , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_gcm_starts ( ctx : * mut mbedtls_gcm_context , mode : :: std :: os :: raw :: c_int , iv : * const :: std :: os :: raw :: c_uchar , iv_len : usize , add : * const :: std :: os :: raw :: c_uchar , add_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_gcm_update ( ctx : * mut mbedtls_gcm_context , length : usize , input : * const :: std :: os :: raw :: c_uchar , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_gcm_finish ( ctx : * mut mbedtls_gcm_context , tag : * mut :: std :: os :: raw :: c_uchar , tag_len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_gcm_free ( ctx : * mut mbedtls_gcm_context ) ; } extern "C" { pub fn mbedtls_gcm_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub const mbedtls_md_type_t_MBEDTLS_MD_NONE : mbedtls_md_type_t = 0 ; pub const mbedtls_md_type_t_MBEDTLS_MD_MD2 : mbedtls_md_type_t = 1 ; pub const mbedtls_md_type_t_MBEDTLS_MD_MD4 : mbedtls_md_type_t = 2 ; pub const mbedtls_md_type_t_MBEDTLS_MD_MD5 : mbedtls_md_type_t = 3 ; pub const mbedtls_md_type_t_MBEDTLS_MD_SHA1 : mbedtls_md_type_t = 4 ; pub const mbedtls_md_type_t_MBEDTLS_MD_SHA224 : mbedtls_md_type_t = 5 ; pub const mbedtls_md_type_t_MBEDTLS_MD_SHA256 : mbedtls_md_type_t = 6 ; pub const mbedtls_md_type_t_MBEDTLS_MD_SHA384 : mbedtls_md_type_t = 7 ; pub const mbedtls_md_type_t_MBEDTLS_MD_SHA512 : mbedtls_md_type_t = 8 ; pub const mbedtls_md_type_t_MBEDTLS_MD_RIPEMD160 : mbedtls_md_type_t = 9 ; pub type mbedtls_md_type_t = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_md_info_t { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_md_context_t { pub md_info : * const mbedtls_md_info_t , pub md_ctx : * mut :: std :: os :: raw :: c_void , pub hmac_ctx : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_mbedtls_md_context_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_md_context_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( mbedtls_md_context_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_md_context_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_md_context_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md_context_t > ( ) ) ) . md_info as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md_context_t ) , "::" , stringify ! ( md_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md_context_t > ( ) ) ) . md_ctx as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md_context_t ) , "::" , stringify ! ( md_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md_context_t > ( ) ) ) . hmac_ctx as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md_context_t ) , "::" , stringify ! ( hmac_ctx ) ) ) ; } extern "C" { pub fn mbedtls_md_list ( ) -> * const :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_info_from_string ( md_name : * const :: std :: os :: raw :: c_char ) -> * const mbedtls_md_info_t ; } extern "C" { pub fn mbedtls_md_info_from_type ( md_type : mbedtls_md_type_t ) -> * const mbedtls_md_info_t ; } extern "C" { pub fn mbedtls_md_init ( ctx : * mut mbedtls_md_context_t ) ; } extern "C" { pub fn mbedtls_md_free ( ctx : * mut mbedtls_md_context_t ) ; } extern "C" { pub fn mbedtls_md_init_ctx ( ctx : * mut mbedtls_md_context_t , md_info : * const mbedtls_md_info_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_setup ( ctx : * mut mbedtls_md_context_t , md_info : * const mbedtls_md_info_t , hmac : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_clone ( dst : * mut mbedtls_md_context_t , src : * const mbedtls_md_context_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_get_size ( md_info : * const mbedtls_md_info_t ) -> :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn mbedtls_md_get_type ( md_info : * const mbedtls_md_info_t ) -> mbedtls_md_type_t ; } extern "C" { pub fn mbedtls_md_get_name ( md_info : * const mbedtls_md_info_t ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn mbedtls_md_starts ( ctx : * mut mbedtls_md_context_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_update ( ctx : * mut mbedtls_md_context_t , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_finish ( ctx : * mut mbedtls_md_context_t , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md ( md_info : * const mbedtls_md_info_t , input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_file ( md_info : * const mbedtls_md_info_t , path : * const :: std :: os :: raw :: c_char , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_hmac_starts ( ctx : * mut mbedtls_md_context_t , key : * const :: std :: os :: raw :: c_uchar , keylen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_hmac_update ( ctx : * mut mbedtls_md_context_t , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_hmac_finish ( ctx : * mut mbedtls_md_context_t , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_hmac_reset ( ctx : * mut mbedtls_md_context_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_hmac ( md_info : * const mbedtls_md_info_t , key : * const :: std :: os :: raw :: c_uchar , keylen : usize , input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md_process ( ctx : * mut mbedtls_md_context_t , data : * const :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct mbedtls_md2_context { pub cksum : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub state : [ :: std :: os :: raw :: c_uchar ; 48usize ] , pub buffer : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub left : usize , } # [ test ] fn bindgen_test_layout_mbedtls_md2_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_md2_context > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( mbedtls_md2_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_md2_context > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_md2_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md2_context > ( ) ) ) . cksum as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md2_context ) , "::" , stringify ! ( cksum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md2_context > ( ) ) ) . state as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md2_context ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md2_context > ( ) ) ) . buffer as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md2_context ) , "::" , stringify ! ( buffer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md2_context > ( ) ) ) . left as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md2_context ) , "::" , stringify ! ( left ) ) ) ; } extern "C" { pub fn mbedtls_md2_init ( ctx : * mut mbedtls_md2_context ) ; } extern "C" { pub fn mbedtls_md2_free ( ctx : * mut mbedtls_md2_context ) ; } extern "C" { pub fn mbedtls_md2_clone ( dst : * mut mbedtls_md2_context , src : * const mbedtls_md2_context ) ; } extern "C" { pub fn mbedtls_md2_starts_ret ( ctx : * mut mbedtls_md2_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md2_update_ret ( ctx : * mut mbedtls_md2_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md2_finish_ret ( ctx : * mut mbedtls_md2_context , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_internal_md2_process ( ctx : * mut mbedtls_md2_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md2_starts ( ctx : * mut mbedtls_md2_context ) ; } extern "C" { pub fn mbedtls_md2_update ( ctx : * mut mbedtls_md2_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) ; } extern "C" { pub fn mbedtls_md2_finish ( ctx : * mut mbedtls_md2_context , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_md2_process ( ctx : * mut mbedtls_md2_context ) ; } extern "C" { pub fn mbedtls_md2_ret ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md2 ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_md2_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct mbedtls_md4_context { pub total : [ u32 ; 2usize ] , pub state : [ u32 ; 4usize ] , pub buffer : [ :: std :: os :: raw :: c_uchar ; 64usize ] , } # [ test ] fn bindgen_test_layout_mbedtls_md4_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_md4_context > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( mbedtls_md4_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_md4_context > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_md4_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md4_context > ( ) ) ) . total as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md4_context ) , "::" , stringify ! ( total ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md4_context > ( ) ) ) . state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md4_context ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md4_context > ( ) ) ) . buffer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md4_context ) , "::" , stringify ! ( buffer ) ) ) ; } extern "C" { pub fn mbedtls_md4_init ( ctx : * mut mbedtls_md4_context ) ; } extern "C" { pub fn mbedtls_md4_free ( ctx : * mut mbedtls_md4_context ) ; } extern "C" { pub fn mbedtls_md4_clone ( dst : * mut mbedtls_md4_context , src : * const mbedtls_md4_context ) ; } extern "C" { pub fn mbedtls_md4_starts_ret ( ctx : * mut mbedtls_md4_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md4_update_ret ( ctx : * mut mbedtls_md4_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md4_finish_ret ( ctx : * mut mbedtls_md4_context , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_internal_md4_process ( ctx : * mut mbedtls_md4_context , data : * const :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md4_starts ( ctx : * mut mbedtls_md4_context ) ; } extern "C" { pub fn mbedtls_md4_update ( ctx : * mut mbedtls_md4_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) ; } extern "C" { pub fn mbedtls_md4_finish ( ctx : * mut mbedtls_md4_context , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_md4_process ( ctx : * mut mbedtls_md4_context , data : * const :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_md4_ret ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md4 ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_md4_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct mbedtls_md5_context { pub total : [ u32 ; 2usize ] , pub state : [ u32 ; 4usize ] , pub buffer : [ :: std :: os :: raw :: c_uchar ; 64usize ] , } # [ test ] fn bindgen_test_layout_mbedtls_md5_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_md5_context > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( mbedtls_md5_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_md5_context > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_md5_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md5_context > ( ) ) ) . total as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md5_context ) , "::" , stringify ! ( total ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md5_context > ( ) ) ) . state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md5_context ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_md5_context > ( ) ) ) . buffer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_md5_context ) , "::" , stringify ! ( buffer ) ) ) ; } extern "C" { pub fn mbedtls_md5_init ( ctx : * mut mbedtls_md5_context ) ; } extern "C" { pub fn mbedtls_md5_free ( ctx : * mut mbedtls_md5_context ) ; } extern "C" { pub fn mbedtls_md5_clone ( dst : * mut mbedtls_md5_context , src : * const mbedtls_md5_context ) ; } extern "C" { pub fn mbedtls_md5_starts_ret ( ctx : * mut mbedtls_md5_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md5_update_ret ( ctx : * mut mbedtls_md5_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md5_finish_ret ( ctx : * mut mbedtls_md5_context , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_internal_md5_process ( ctx : * mut mbedtls_md5_context , data : * const :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md5_starts ( ctx : * mut mbedtls_md5_context ) ; } extern "C" { pub fn mbedtls_md5_update ( ctx : * mut mbedtls_md5_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) ; } extern "C" { pub fn mbedtls_md5_finish ( ctx : * mut mbedtls_md5_context , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_md5_process ( ctx : * mut mbedtls_md5_context , data : * const :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_md5_ret ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_md5 ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_md5_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct mbedtls_ripemd160_context { pub total : [ u32 ; 2usize ] , pub state : [ u32 ; 5usize ] , pub buffer : [ :: std :: os :: raw :: c_uchar ; 64usize ] , } # [ test ] fn bindgen_test_layout_mbedtls_ripemd160_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_ripemd160_context > ( ) , 92usize , concat ! ( "Size of: " , stringify ! ( mbedtls_ripemd160_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_ripemd160_context > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_ripemd160_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ripemd160_context > ( ) ) ) . total as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ripemd160_context ) , "::" , stringify ! ( total ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ripemd160_context > ( ) ) ) . state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ripemd160_context ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ripemd160_context > ( ) ) ) . buffer as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ripemd160_context ) , "::" , stringify ! ( buffer ) ) ) ; } extern "C" { pub fn mbedtls_ripemd160_init ( ctx : * mut mbedtls_ripemd160_context ) ; } extern "C" { pub fn mbedtls_ripemd160_free ( ctx : * mut mbedtls_ripemd160_context ) ; } extern "C" { pub fn mbedtls_ripemd160_clone ( dst : * mut mbedtls_ripemd160_context , src : * const mbedtls_ripemd160_context ) ; } extern "C" { pub fn mbedtls_ripemd160_starts_ret ( ctx : * mut mbedtls_ripemd160_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ripemd160_update_ret ( ctx : * mut mbedtls_ripemd160_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ripemd160_finish_ret ( ctx : * mut mbedtls_ripemd160_context , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_internal_ripemd160_process ( ctx : * mut mbedtls_ripemd160_context , data : * const :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ripemd160_starts ( ctx : * mut mbedtls_ripemd160_context ) ; } extern "C" { pub fn mbedtls_ripemd160_update ( ctx : * mut mbedtls_ripemd160_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) ; } extern "C" { pub fn mbedtls_ripemd160_finish ( ctx : * mut mbedtls_ripemd160_context , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_ripemd160_process ( ctx : * mut mbedtls_ripemd160_context , data : * const :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_ripemd160_ret ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ripemd160 ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_ripemd160_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct mbedtls_sha1_context { pub total : [ u32 ; 2usize ] , pub state : [ u32 ; 5usize ] , pub buffer : [ :: std :: os :: raw :: c_uchar ; 64usize ] , } # [ test ] fn bindgen_test_layout_mbedtls_sha1_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_sha1_context > ( ) , 92usize , concat ! ( "Size of: " , stringify ! ( mbedtls_sha1_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_sha1_context > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_sha1_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha1_context > ( ) ) ) . total as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha1_context ) , "::" , stringify ! ( total ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha1_context > ( ) ) ) . state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha1_context ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha1_context > ( ) ) ) . buffer as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha1_context ) , "::" , stringify ! ( buffer ) ) ) ; } extern "C" { pub fn mbedtls_sha1_init ( ctx : * mut mbedtls_sha1_context ) ; } extern "C" { pub fn mbedtls_sha1_free ( ctx : * mut mbedtls_sha1_context ) ; } extern "C" { pub fn mbedtls_sha1_clone ( dst : * mut mbedtls_sha1_context , src : * const mbedtls_sha1_context ) ; } extern "C" { pub fn mbedtls_sha1_starts_ret ( ctx : * mut mbedtls_sha1_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha1_update_ret ( ctx : * mut mbedtls_sha1_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha1_finish_ret ( ctx : * mut mbedtls_sha1_context , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_internal_sha1_process ( ctx : * mut mbedtls_sha1_context , data : * const :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha1_starts ( ctx : * mut mbedtls_sha1_context ) ; } extern "C" { pub fn mbedtls_sha1_update ( ctx : * mut mbedtls_sha1_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) ; } extern "C" { pub fn mbedtls_sha1_finish ( ctx : * mut mbedtls_sha1_context , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_sha1_process ( ctx : * mut mbedtls_sha1_context , data : * const :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_sha1_ret ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha1 ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_sha1_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct mbedtls_sha256_context { pub total : [ u32 ; 2usize ] , pub state : [ u32 ; 8usize ] , pub buffer : [ :: std :: os :: raw :: c_uchar ; 64usize ] , pub is224 : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_mbedtls_sha256_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_sha256_context > ( ) , 108usize , concat ! ( "Size of: " , stringify ! ( mbedtls_sha256_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_sha256_context > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_sha256_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha256_context > ( ) ) ) . total as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha256_context ) , "::" , stringify ! ( total ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha256_context > ( ) ) ) . state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha256_context ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha256_context > ( ) ) ) . buffer as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha256_context ) , "::" , stringify ! ( buffer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha256_context > ( ) ) ) . is224 as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha256_context ) , "::" , stringify ! ( is224 ) ) ) ; } extern "C" { pub fn mbedtls_sha256_init ( ctx : * mut mbedtls_sha256_context ) ; } extern "C" { pub fn mbedtls_sha256_free ( ctx : * mut mbedtls_sha256_context ) ; } extern "C" { pub fn mbedtls_sha256_clone ( dst : * mut mbedtls_sha256_context , src : * const mbedtls_sha256_context ) ; } extern "C" { pub fn mbedtls_sha256_starts_ret ( ctx : * mut mbedtls_sha256_context , is224 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha256_update_ret ( ctx : * mut mbedtls_sha256_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha256_finish_ret ( ctx : * mut mbedtls_sha256_context , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_internal_sha256_process ( ctx : * mut mbedtls_sha256_context , data : * const :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha256_starts ( ctx : * mut mbedtls_sha256_context , is224 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn mbedtls_sha256_update ( ctx : * mut mbedtls_sha256_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) ; } extern "C" { pub fn mbedtls_sha256_finish ( ctx : * mut mbedtls_sha256_context , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_sha256_process ( ctx : * mut mbedtls_sha256_context , data : * const :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_sha256_ret ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar , is224 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha256 ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar , is224 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn mbedtls_sha256_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct mbedtls_sha512_context { pub total : [ u64 ; 2usize ] , pub state : [ u64 ; 8usize ] , pub buffer : [ :: std :: os :: raw :: c_uchar ; 128usize ] , pub is384 : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_mbedtls_sha512_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_sha512_context > ( ) , 216usize , concat ! ( "Size of: " , stringify ! ( mbedtls_sha512_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_sha512_context > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_sha512_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha512_context > ( ) ) ) . total as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha512_context ) , "::" , stringify ! ( total ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha512_context > ( ) ) ) . state as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha512_context ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha512_context > ( ) ) ) . buffer as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha512_context ) , "::" , stringify ! ( buffer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_sha512_context > ( ) ) ) . is384 as * const _ as usize } , 208usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_sha512_context ) , "::" , stringify ! ( is384 ) ) ) ; } extern "C" { pub fn mbedtls_sha512_init ( ctx : * mut mbedtls_sha512_context ) ; } extern "C" { pub fn mbedtls_sha512_free ( ctx : * mut mbedtls_sha512_context ) ; } extern "C" { pub fn mbedtls_sha512_clone ( dst : * mut mbedtls_sha512_context , src : * const mbedtls_sha512_context ) ; } extern "C" { pub fn mbedtls_sha512_starts_ret ( ctx : * mut mbedtls_sha512_context , is384 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha512_update_ret ( ctx : * mut mbedtls_sha512_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha512_finish_ret ( ctx : * mut mbedtls_sha512_context , output : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_internal_sha512_process ( ctx : * mut mbedtls_sha512_context , data : * const :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha512_starts ( ctx : * mut mbedtls_sha512_context , is384 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn mbedtls_sha512_update ( ctx : * mut mbedtls_sha512_context , input : * const :: std :: os :: raw :: c_uchar , ilen : usize ) ; } extern "C" { pub fn mbedtls_sha512_finish ( ctx : * mut mbedtls_sha512_context , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_sha512_process ( ctx : * mut mbedtls_sha512_context , data : * const :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn mbedtls_sha512_ret ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar , is384 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_sha512 ( input : * const :: std :: os :: raw :: c_uchar , ilen : usize , output : * mut :: std :: os :: raw :: c_uchar , is384 : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn mbedtls_sha512_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct psa_hash_operation_s { pub alg : psa_algorithm_t , pub ctx : psa_hash_operation_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union psa_hash_operation_s__bindgen_ty_1 { pub dummy : :: std :: os :: raw :: c_uint , pub md5 : mbedtls_md5_context , pub ripemd160 : mbedtls_ripemd160_context , pub sha1 : mbedtls_sha1_context , pub sha256 : mbedtls_sha256_context , pub sha512 : mbedtls_sha512_context , _bindgen_union_align : [ u64 ; 27usize ] , } # [ test ] fn bindgen_test_layout_psa_hash_operation_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_hash_operation_s__bindgen_ty_1 > ( ) , 216usize , concat ! ( "Size of: " , stringify ! ( psa_hash_operation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_hash_operation_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_hash_operation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hash_operation_s__bindgen_ty_1 > ( ) ) ) . dummy as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hash_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( dummy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hash_operation_s__bindgen_ty_1 > ( ) ) ) . md5 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hash_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( md5 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hash_operation_s__bindgen_ty_1 > ( ) ) ) . ripemd160 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hash_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( ripemd160 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hash_operation_s__bindgen_ty_1 > ( ) ) ) . sha1 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hash_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( sha1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hash_operation_s__bindgen_ty_1 > ( ) ) ) . sha256 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hash_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( sha256 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hash_operation_s__bindgen_ty_1 > ( ) ) ) . sha512 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hash_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( sha512 ) ) ) ; } # [ test ] fn bindgen_test_layout_psa_hash_operation_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_hash_operation_s > ( ) , 224usize , concat ! ( "Size of: " , stringify ! ( psa_hash_operation_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_hash_operation_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_hash_operation_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hash_operation_s > ( ) ) ) . alg as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hash_operation_s ) , "::" , stringify ! ( alg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hash_operation_s > ( ) ) ) . ctx as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_hash_operation_s ) , "::" , stringify ! ( ctx ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct psa_hmac_internal_data { pub hash_ctx : psa_hash_operation_s , pub opad : [ u8 ; 128usize ] , } # [ test ] fn bindgen_test_layout_psa_hmac_internal_data ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_hmac_internal_data > ( ) , 352usize , concat ! ( "Size of: " , stringify ! ( psa_hmac_internal_data ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_hmac_internal_data > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_hmac_internal_data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hmac_internal_data > ( ) ) ) . hash_ctx as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hmac_internal_data ) , "::" , stringify ! ( hash_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hmac_internal_data > ( ) ) ) . opad as * const _ as usize } , 224usize , concat ! ( "Offset of field: " , stringify ! ( psa_hmac_internal_data ) , "::" , stringify ! ( opad ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct psa_mac_operation_s { pub alg : psa_algorithm_t , pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > , pub mac_size : u8 , pub ctx : psa_mac_operation_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union psa_mac_operation_s__bindgen_ty_1 { pub dummy : :: std :: os :: raw :: c_uint , pub hmac : psa_hmac_internal_data , _bindgen_union_align : [ u64 ; 44usize ] , } # [ test ] fn bindgen_test_layout_psa_mac_operation_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_mac_operation_s__bindgen_ty_1 > ( ) , 352usize , concat ! ( "Size of: " , stringify ! ( psa_mac_operation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_mac_operation_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_mac_operation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_mac_operation_s__bindgen_ty_1 > ( ) ) ) . dummy as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_mac_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( dummy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_mac_operation_s__bindgen_ty_1 > ( ) ) ) . hmac as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_mac_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( hmac ) ) ) ; } # [ test ] fn bindgen_test_layout_psa_mac_operation_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_mac_operation_s > ( ) , 360usize , concat ! ( "Size of: " , stringify ! ( psa_mac_operation_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_mac_operation_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_mac_operation_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_mac_operation_s > ( ) ) ) . alg as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_mac_operation_s ) , "::" , stringify ! ( alg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_mac_operation_s > ( ) ) ) . mac_size as * const _ as usize } , 5usize , concat ! ( "Offset of field: " , stringify ! ( psa_mac_operation_s ) , "::" , stringify ! ( mac_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_mac_operation_s > ( ) ) ) . ctx as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_mac_operation_s ) , "::" , stringify ! ( ctx ) ) ) ; } impl psa_mac_operation_s { # [ inline ] pub fn key_set ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_key_set ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 1u8 , val as u64 ) } } # [ inline ] pub fn iv_required ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 1usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_iv_required ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 1usize , 1u8 , val as u64 ) } } # [ inline ] pub fn iv_set ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 2usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_iv_set ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 2usize , 1u8 , val as u64 ) } } # [ inline ] pub fn has_input ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 3usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_has_input ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 3usize , 1u8 , val as u64 ) } } # [ inline ] pub fn is_sign ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 4usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_is_sign ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 4usize , 1u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( key_set : :: std :: os :: raw :: c_uint , iv_required : :: std :: os :: raw :: c_uint , iv_set : :: std :: os :: raw :: c_uint , has_input : :: std :: os :: raw :: c_uint , is_sign : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 1u8 , { let key_set : u32 = unsafe { :: std :: mem :: transmute ( key_set ) } ; key_set as u64 } ) ; __bindgen_bitfield_unit . set ( 1usize , 1u8 , { let iv_required : u32 = unsafe { :: std :: mem :: transmute ( iv_required ) } ; iv_required as u64 } ) ; __bindgen_bitfield_unit . set ( 2usize , 1u8 , { let iv_set : u32 = unsafe { :: std :: mem :: transmute ( iv_set ) } ; iv_set as u64 } ) ; __bindgen_bitfield_unit . set ( 3usize , 1u8 , { let has_input : u32 = unsafe { :: std :: mem :: transmute ( has_input ) } ; has_input as u64 } ) ; __bindgen_bitfield_unit . set ( 4usize , 1u8 , { let is_sign : u32 = unsafe { :: std :: mem :: transmute ( is_sign ) } ; is_sign as u64 } ) ; __bindgen_bitfield_unit } } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct psa_cipher_operation_s { pub alg : psa_algorithm_t , pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > , pub iv_size : u8 , pub block_size : u8 , pub ctx : psa_cipher_operation_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union psa_cipher_operation_s__bindgen_ty_1 { pub dummy : :: std :: os :: raw :: c_uint , pub cipher : mbedtls_cipher_context_t , _bindgen_union_align : [ u64 ; 11usize ] , } # [ test ] fn bindgen_test_layout_psa_cipher_operation_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_cipher_operation_s__bindgen_ty_1 > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( psa_cipher_operation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_cipher_operation_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_cipher_operation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_cipher_operation_s__bindgen_ty_1 > ( ) ) ) . dummy as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_cipher_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( dummy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_cipher_operation_s__bindgen_ty_1 > ( ) ) ) . cipher as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_cipher_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( cipher ) ) ) ; } # [ test ] fn bindgen_test_layout_psa_cipher_operation_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_cipher_operation_s > ( ) , 96usize , concat ! ( "Size of: " , stringify ! ( psa_cipher_operation_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_cipher_operation_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_cipher_operation_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_cipher_operation_s > ( ) ) ) . alg as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_cipher_operation_s ) , "::" , stringify ! ( alg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_cipher_operation_s > ( ) ) ) . iv_size as * const _ as usize } , 5usize , concat ! ( "Offset of field: " , stringify ! ( psa_cipher_operation_s ) , "::" , stringify ! ( iv_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_cipher_operation_s > ( ) ) ) . block_size as * const _ as usize } , 6usize , concat ! ( "Offset of field: " , stringify ! ( psa_cipher_operation_s ) , "::" , stringify ! ( block_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_cipher_operation_s > ( ) ) ) . ctx as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_cipher_operation_s ) , "::" , stringify ! ( ctx ) ) ) ; } impl psa_cipher_operation_s { # [ inline ] pub fn key_set ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_key_set ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 1u8 , val as u64 ) } } # [ inline ] pub fn iv_required ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 1usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_iv_required ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 1usize , 1u8 , val as u64 ) } } # [ inline ] pub fn iv_set ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 2usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_iv_set ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 2usize , 1u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( key_set : :: std :: os :: raw :: c_uint , iv_required : :: std :: os :: raw :: c_uint , iv_set : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 1u8 , { let key_set : u32 = unsafe { :: std :: mem :: transmute ( key_set ) } ; key_set as u64 } ) ; __bindgen_bitfield_unit . set ( 1usize , 1u8 , { let iv_required : u32 = unsafe { :: std :: mem :: transmute ( iv_required ) } ; iv_required as u64 } ) ; __bindgen_bitfield_unit . set ( 2usize , 1u8 , { let iv_set : u32 = unsafe { :: std :: mem :: transmute ( iv_set ) } ; iv_set as u64 } ) ; __bindgen_bitfield_unit } } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct psa_aead_operation_s { pub alg : psa_algorithm_t , pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > , pub iv_size : u8 , pub block_size : u8 , pub ctx : psa_aead_operation_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union psa_aead_operation_s__bindgen_ty_1 { pub dummy : :: std :: os :: raw :: c_uint , pub cipher : mbedtls_cipher_context_t , _bindgen_union_align : [ u64 ; 11usize ] , } # [ test ] fn bindgen_test_layout_psa_aead_operation_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_aead_operation_s__bindgen_ty_1 > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( psa_aead_operation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_aead_operation_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_aead_operation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_aead_operation_s__bindgen_ty_1 > ( ) ) ) . dummy as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_aead_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( dummy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_aead_operation_s__bindgen_ty_1 > ( ) ) ) . cipher as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_aead_operation_s__bindgen_ty_1 ) , "::" , stringify ! ( cipher ) ) ) ; } # [ test ] fn bindgen_test_layout_psa_aead_operation_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_aead_operation_s > ( ) , 96usize , concat ! ( "Size of: " , stringify ! ( psa_aead_operation_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_aead_operation_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_aead_operation_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_aead_operation_s > ( ) ) ) . alg as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_aead_operation_s ) , "::" , stringify ! ( alg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_aead_operation_s > ( ) ) ) . iv_size as * const _ as usize } , 5usize , concat ! ( "Offset of field: " , stringify ! ( psa_aead_operation_s ) , "::" , stringify ! ( iv_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_aead_operation_s > ( ) ) ) . block_size as * const _ as usize } , 6usize , concat ! ( "Offset of field: " , stringify ! ( psa_aead_operation_s ) , "::" , stringify ! ( block_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_aead_operation_s > ( ) ) ) . ctx as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_aead_operation_s ) , "::" , stringify ! ( ctx ) ) ) ; } impl psa_aead_operation_s { # [ inline ] pub fn key_set ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_key_set ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 1u8 , val as u64 ) } } # [ inline ] pub fn iv_set ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 1usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_iv_set ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 1usize , 1u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( key_set : :: std :: os :: raw :: c_uint , iv_set : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 1u8 , { let key_set : u32 = unsafe { :: std :: mem :: transmute ( key_set ) } ; key_set as u64 } ) ; __bindgen_bitfield_unit . set ( 1usize , 1u8 , { let iv_set : u32 = unsafe { :: std :: mem :: transmute ( iv_set ) } ; iv_set as u64 } ) ; __bindgen_bitfield_unit } } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct psa_hkdf_key_derivation_t { pub info : * mut u8 , pub info_length : usize , pub hmac : psa_hmac_internal_data , pub prk : [ u8 ; 64usize ] , pub output_block : [ u8 ; 64usize ] , pub offset_in_block : u8 , pub block_number : u8 , pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > , pub __bindgen_padding_0 : [ u8 ; 5usize ] , } # [ test ] fn bindgen_test_layout_psa_hkdf_key_derivation_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_hkdf_key_derivation_t > ( ) , 504usize , concat ! ( "Size of: " , stringify ! ( psa_hkdf_key_derivation_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_hkdf_key_derivation_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_hkdf_key_derivation_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hkdf_key_derivation_t > ( ) ) ) . info as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_hkdf_key_derivation_t ) , "::" , stringify ! ( info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hkdf_key_derivation_t > ( ) ) ) . info_length as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_hkdf_key_derivation_t ) , "::" , stringify ! ( info_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hkdf_key_derivation_t > ( ) ) ) . hmac as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_hkdf_key_derivation_t ) , "::" , stringify ! ( hmac ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hkdf_key_derivation_t > ( ) ) ) . prk as * const _ as usize } , 368usize , concat ! ( "Offset of field: " , stringify ! ( psa_hkdf_key_derivation_t ) , "::" , stringify ! ( prk ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hkdf_key_derivation_t > ( ) ) ) . output_block as * const _ as usize } , 432usize , concat ! ( "Offset of field: " , stringify ! ( psa_hkdf_key_derivation_t ) , "::" , stringify ! ( output_block ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hkdf_key_derivation_t > ( ) ) ) . offset_in_block as * const _ as usize } , 496usize , concat ! ( "Offset of field: " , stringify ! ( psa_hkdf_key_derivation_t ) , "::" , stringify ! ( offset_in_block ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_hkdf_key_derivation_t > ( ) ) ) . block_number as * const _ as usize } , 497usize , concat ! ( "Offset of field: " , stringify ! ( psa_hkdf_key_derivation_t ) , "::" , stringify ! ( block_number ) ) ) ; } impl psa_hkdf_key_derivation_t { # [ inline ] pub fn state ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 2u8 ) as u32 ) } } # [ inline ] pub fn set_state ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 2u8 , val as u64 ) } } # [ inline ] pub fn info_set ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 2usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_info_set ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 2usize , 1u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( state : :: std :: os :: raw :: c_uint , info_set : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 2u8 , { let state : u32 = unsafe { :: std :: mem :: transmute ( state ) } ; state as u64 } ) ; __bindgen_bitfield_unit . set ( 2usize , 1u8 , { let info_set : u32 = unsafe { :: std :: mem :: transmute ( info_set ) } ; info_set as u64 } ) ; __bindgen_bitfield_unit } } pub const psa_tls12_prf_key_derivation_state_t_TLS12_PRF_STATE_INIT : psa_tls12_prf_key_derivation_state_t = 0 ; pub const psa_tls12_prf_key_derivation_state_t_TLS12_PRF_STATE_SEED_SET : psa_tls12_prf_key_derivation_state_t = 1 ; pub const psa_tls12_prf_key_derivation_state_t_TLS12_PRF_STATE_KEY_SET : psa_tls12_prf_key_derivation_state_t = 2 ; pub const psa_tls12_prf_key_derivation_state_t_TLS12_PRF_STATE_LABEL_SET : psa_tls12_prf_key_derivation_state_t = 3 ; pub const psa_tls12_prf_key_derivation_state_t_TLS12_PRF_STATE_OUTPUT : psa_tls12_prf_key_derivation_state_t = 4 ; pub type psa_tls12_prf_key_derivation_state_t = u32 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct psa_tls12_prf_key_derivation_s { pub left_in_block : u8 , pub block_number : u8 , pub state : psa_tls12_prf_key_derivation_state_t , pub seed : * mut u8 , pub seed_length : usize , pub label : * mut u8 , pub label_length : usize , pub hmac : psa_hmac_internal_data , pub Ai : [ u8 ; 64usize ] , pub output_block : [ u8 ; 64usize ] , } # [ test ] fn bindgen_test_layout_psa_tls12_prf_key_derivation_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_tls12_prf_key_derivation_s > ( ) , 520usize , concat ! ( "Size of: " , stringify ! ( psa_tls12_prf_key_derivation_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_tls12_prf_key_derivation_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_tls12_prf_key_derivation_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . left_in_block as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( left_in_block ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . block_number as * const _ as usize } , 1usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( block_number ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . state as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . seed as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( seed ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . seed_length as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( seed_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . label as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( label ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . label_length as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( label_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . hmac as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( hmac ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . Ai as * const _ as usize } , 392usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( Ai ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_tls12_prf_key_derivation_s > ( ) ) ) . output_block as * const _ as usize } , 456usize , concat ! ( "Offset of field: " , stringify ! ( psa_tls12_prf_key_derivation_s ) , "::" , stringify ! ( output_block ) ) ) ; } pub type psa_tls12_prf_key_derivation_t = psa_tls12_prf_key_derivation_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct psa_key_derivation_s { pub alg : psa_algorithm_t , pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > , pub capacity : usize , pub ctx : psa_key_derivation_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union psa_key_derivation_s__bindgen_ty_1 { pub dummy : u8 , pub hkdf : psa_hkdf_key_derivation_t , pub tls12_prf : psa_tls12_prf_key_derivation_t , _bindgen_union_align : [ u64 ; 65usize ] , } # [ test ] fn bindgen_test_layout_psa_key_derivation_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_key_derivation_s__bindgen_ty_1 > ( ) , 520usize , concat ! ( "Size of: " , stringify ! ( psa_key_derivation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_key_derivation_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_key_derivation_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_derivation_s__bindgen_ty_1 > ( ) ) ) . dummy as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_derivation_s__bindgen_ty_1 ) , "::" , stringify ! ( dummy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_derivation_s__bindgen_ty_1 > ( ) ) ) . hkdf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_derivation_s__bindgen_ty_1 ) , "::" , stringify ! ( hkdf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_derivation_s__bindgen_ty_1 > ( ) ) ) . tls12_prf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_derivation_s__bindgen_ty_1 ) , "::" , stringify ! ( tls12_prf ) ) ) ; } # [ test ] fn bindgen_test_layout_psa_key_derivation_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_key_derivation_s > ( ) , 536usize , concat ! ( "Size of: " , stringify ! ( psa_key_derivation_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_key_derivation_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_key_derivation_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_derivation_s > ( ) ) ) . alg as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_derivation_s ) , "::" , stringify ! ( alg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_derivation_s > ( ) ) ) . capacity as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_derivation_s ) , "::" , stringify ! ( capacity ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_derivation_s > ( ) ) ) . ctx as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_derivation_s ) , "::" , stringify ! ( ctx ) ) ) ; } impl psa_key_derivation_s { # [ inline ] pub fn can_output_key ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_can_output_key ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 1u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( can_output_key : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 1u8 , { let can_output_key : u32 = unsafe { :: std :: mem :: transmute ( can_output_key ) } ; can_output_key as u64 } ) ; __bindgen_bitfield_unit } } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_key_policy_s { pub usage : psa_key_usage_t , pub alg : psa_algorithm_t , pub alg2 : psa_algorithm_t , } # [ test ] fn bindgen_test_layout_psa_key_policy_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_key_policy_s > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( psa_key_policy_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_key_policy_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( psa_key_policy_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_policy_s > ( ) ) ) . usage as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_policy_s ) , "::" , stringify ! ( usage ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_policy_s > ( ) ) ) . alg as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_policy_s ) , "::" , stringify ! ( alg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_policy_s > ( ) ) ) . alg2 as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_policy_s ) , "::" , stringify ! ( alg2 ) ) ) ; } pub type psa_key_policy_t = psa_key_policy_s ; pub type psa_key_bits_t = u16 ; pub type psa_key_attributes_flag_t = u16 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_core_key_attributes_t { pub type_ : psa_key_type_t , pub bits : psa_key_bits_t , pub lifetime : psa_key_lifetime_t , pub id : psa_key_id_t , pub policy : psa_key_policy_t , pub flags : psa_key_attributes_flag_t , } # [ test ] fn bindgen_test_layout_psa_core_key_attributes_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_core_key_attributes_t > ( ) , 28usize , concat ! ( "Size of: " , stringify ! ( psa_core_key_attributes_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_core_key_attributes_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( psa_core_key_attributes_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_core_key_attributes_t > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_core_key_attributes_t ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_core_key_attributes_t > ( ) ) ) . bits as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( psa_core_key_attributes_t ) , "::" , stringify ! ( bits ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_core_key_attributes_t > ( ) ) ) . lifetime as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( psa_core_key_attributes_t ) , "::" , stringify ! ( lifetime ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_core_key_attributes_t > ( ) ) ) . id as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_core_key_attributes_t ) , "::" , stringify ! ( id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_core_key_attributes_t > ( ) ) ) . policy as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( psa_core_key_attributes_t ) , "::" , stringify ! ( policy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_core_key_attributes_t > ( ) ) ) . flags as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( psa_core_key_attributes_t ) , "::" , stringify ! ( flags ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_key_attributes_s { pub core : psa_core_key_attributes_t , pub domain_parameters : * mut :: std :: os :: raw :: c_void , pub domain_parameters_size : usize , } # [ test ] fn bindgen_test_layout_psa_key_attributes_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_key_attributes_s > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( psa_key_attributes_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_key_attributes_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_key_attributes_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_attributes_s > ( ) ) ) . core as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_attributes_s ) , "::" , stringify ! ( core ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_attributes_s > ( ) ) ) . domain_parameters as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_attributes_s ) , "::" , stringify ! ( domain_parameters ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_key_attributes_s > ( ) ) ) . domain_parameters_size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( psa_key_attributes_s ) , "::" , stringify ! ( domain_parameters_size ) ) ) ; } extern "C" { pub fn psa_set_key_domain_parameters ( attributes : * mut psa_key_attributes_t , type_ : psa_key_type_t , data : * const u8 , data_length : usize ) -> psa_status_t ; } pub type mbedtls_deprecated_size_t = usize ; pub type mbedtls_deprecated_psa_status_t = psa_status_t ; pub type mbedtls_deprecated_psa_key_usage_t = psa_key_usage_t ; pub type mbedtls_deprecated_psa_ecc_curve_t = psa_ecc_curve_t ; pub type mbedtls_deprecated_psa_dh_group_t = psa_dh_group_t ; extern "C" { pub fn mbedtls_psa_crypto_free ( ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_psa_stats_s { pub volatile_slots : usize , pub persistent_slots : usize , pub external_slots : usize , pub half_filled_slots : usize , pub cache_slots : usize , pub empty_slots : usize , pub max_open_internal_key_id : psa_app_key_id_t , pub max_open_external_key_id : psa_app_key_id_t , } # [ test ] fn bindgen_test_layout_mbedtls_psa_stats_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_psa_stats_s > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( mbedtls_psa_stats_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_psa_stats_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_psa_stats_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_psa_stats_s > ( ) ) ) . volatile_slots as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_psa_stats_s ) , "::" , stringify ! ( volatile_slots ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_psa_stats_s > ( ) ) ) . persistent_slots as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_psa_stats_s ) , "::" , stringify ! ( persistent_slots ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_psa_stats_s > ( ) ) ) . external_slots as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_psa_stats_s ) , "::" , stringify ! ( external_slots ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_psa_stats_s > ( ) ) ) . half_filled_slots as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_psa_stats_s ) , "::" , stringify ! ( half_filled_slots ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_psa_stats_s > ( ) ) ) . cache_slots as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_psa_stats_s ) , "::" , stringify ! ( cache_slots ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_psa_stats_s > ( ) ) ) . empty_slots as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_psa_stats_s ) , "::" , stringify ! ( empty_slots ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_psa_stats_s > ( ) ) ) . max_open_internal_key_id as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_psa_stats_s ) , "::" , stringify ! ( max_open_internal_key_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_psa_stats_s > ( ) ) ) . max_open_external_key_id as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_psa_stats_s ) , "::" , stringify ! ( max_open_external_key_id ) ) ) ; } pub type mbedtls_psa_stats_t = mbedtls_psa_stats_s ; extern "C" { pub fn mbedtls_psa_get_stats ( stats : * mut mbedtls_psa_stats_t ) ; } extern "C" { pub fn mbedtls_psa_inject_entropy ( seed : * const u8 , seed_size : usize ) -> psa_status_t ; } extern "C" { pub fn psa_get_key_domain_parameters ( attributes : * const psa_key_attributes_t , data : * mut u8 , data_size : usize , data_length : * mut usize ) -> psa_status_t ; } pub type va_list = __builtin_va_list ; pub type __gnuc_va_list = __builtin_va_list ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [ :: std :: os :: raw :: c_char ; 4usize ] , _bindgen_union_align : u32 , } # [ test ] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __mbstate_t__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t__bindgen_ty_1 > ( ) ) ) . __wch as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wch ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t__bindgen_ty_1 > ( ) ) ) . __wchb as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wchb ) ) ) ; } # [ test ] fn bindgen_test_layout___mbstate_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mbstate_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __mbstate_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mbstate_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __mbstate_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t > ( ) ) ) . __count as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t ) , "::" , stringify ! ( __count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t > ( ) ) ) . __value as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t ) , "::" , stringify ! ( __value ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _G_fpos_t { pub __pos : __off_t , pub __state : __mbstate_t , } # [ test ] fn bindgen_test_layout__G_fpos_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _G_fpos_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _G_fpos_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _G_fpos_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _G_fpos_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos_t > ( ) ) ) . __pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos_t ) , "::" , stringify ! ( __pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos_t > ( ) ) ) . __state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos_t ) , "::" , stringify ! ( __state ) ) ) ; } 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 , } # [ test ] fn bindgen_test_layout__G_fpos64_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _G_fpos64_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _G_fpos64_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _G_fpos64_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _G_fpos64_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos64_t > ( ) ) ) . __pos as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos64_t ) , "::" , stringify ! ( __pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _G_fpos64_t > ( ) ) ) . __state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _G_fpos64_t ) , "::" , stringify ! ( __state ) ) ) ; } 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 = :: std :: os :: raw :: c_void ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _flags2 : :: std :: os :: raw :: c_int , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [ :: std :: os :: raw :: 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 :: std :: os :: raw :: c_void , pub __pad5 : usize , pub _mode : :: std :: os :: raw :: c_int , pub _unused2 : [ :: std :: os :: raw :: c_char ; 20usize ] , } # [ test ] fn bindgen_test_layout__IO_FILE ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _IO_FILE > ( ) , 216usize , concat ! ( "Size of: " , stringify ! ( _IO_FILE ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _IO_FILE > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _IO_FILE ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _flags as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_ptr as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_ptr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_end as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_read_base as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_read_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_base as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_ptr as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_ptr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_write_end as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_write_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_buf_base as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_buf_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_buf_end as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_buf_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_save_base as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_save_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_backup_base as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_backup_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _IO_save_end as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _IO_save_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _markers as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _markers ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _chain as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _chain ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _fileno as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _fileno ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _flags2 as * const _ as usize } , 116usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _flags2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _old_offset as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _old_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _cur_column as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _cur_column ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _vtable_offset as * const _ as usize } , 130usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _vtable_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _shortbuf as * const _ as usize } , 131usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _shortbuf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _lock as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _offset as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _codecvt as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _codecvt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _wide_data as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _wide_data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _freeres_list as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _freeres_list ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _freeres_buf as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _freeres_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . __pad5 as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( __pad5 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _mode as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _mode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _IO_FILE > ( ) ) ) . _unused2 as * const _ as usize } , 196usize , concat ! ( "Offset of field: " , stringify ! ( _IO_FILE ) , "::" , stringify ! ( _unused2 ) ) ) ; } pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove ( __filename : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename ( __old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat ( __oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile ( ) -> * mut FILE ; } extern "C" { pub fn tmpnam ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam ( __dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fclose ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen ( __filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn freopen ( __filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE ) -> * mut FILE ; } extern "C" { pub fn fdopen ( __fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn fmemopen ( __s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn open_memstream ( __bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize ) -> * mut FILE ; } extern "C" { pub fn setbuf ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn setvbuf ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer ( __stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize ) ; } extern "C" { pub fn setlinebuf ( __stream : * mut FILE ) ; } extern "C" { pub fn fprintf ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf ( __s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf ( __s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf ( __s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf ( __s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf ( __fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf ( __fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_fscanf" ] pub fn fscanf1 ( __stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_scanf" ] pub fn scanf1 ( __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_sscanf" ] pub fn sscanf1 ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vfscanf" ] pub fn vfscanf1 ( __s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vscanf" ] pub fn vscanf1 ( __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}__isoc99_vsscanf" ] pub fn vsscanf1 ( __s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar ( __c : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked ( __c : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw ( __w : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets ( __s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn getdelim ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn getline ( __lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE ) -> __ssize_t ; } extern "C" { pub fn fputs ( __s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts ( __s : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc ( __c : :: std :: os :: raw :: c_int , __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread ( __ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE ) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite ( __ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE ) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked ( __ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE ) -> usize ; } extern "C" { pub fn fwrite_unlocked ( __ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE ) -> usize ; } extern "C" { pub fn fseek ( __stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind ( __stream : * mut FILE ) ; } extern "C" { pub fn fseeko ( __stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello ( __stream : * mut FILE ) -> __off_t ; } extern "C" { pub fn fgetpos ( __stream : * mut FILE , __pos : * mut fpos_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos ( __stream : * mut FILE , __pos : * const fpos_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr ( __stream : * mut FILE ) ; } extern "C" { pub fn feof ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked ( __stream : * mut FILE ) ; } extern "C" { pub fn feof_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror ( __s : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub static mut sys_nerr : :: std :: os :: raw :: c_int ; } extern "C" { pub static mut sys_errlist : [ * const :: std :: os :: raw :: c_char ; 0usize ] ; } extern "C" { pub fn fileno ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen ( __command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char ) -> * mut FILE ; } extern "C" { pub fn pclose ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ctermid ( __s : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile ( __stream : * mut FILE ) ; } extern "C" { pub fn ftrylockfile ( __stream : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile ( __stream : * mut FILE ) ; } extern "C" { pub fn __uflow ( arg1 : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow ( arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub type mbedtls_mpi_sint = i64 ; pub type mbedtls_mpi_uint = u64 ; pub type mbedtls_t_udbl = u128 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_mpi { pub s : :: std :: os :: raw :: c_int , pub n : usize , pub p : * mut mbedtls_mpi_uint , } # [ test ] fn bindgen_test_layout_mbedtls_mpi ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_mpi > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( mbedtls_mpi ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_mpi > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_mpi ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_mpi > ( ) ) ) . s as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_mpi ) , "::" , stringify ! ( s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_mpi > ( ) ) ) . n as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_mpi ) , "::" , stringify ! ( n ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_mpi > ( ) ) ) . p as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_mpi ) , "::" , stringify ! ( p ) ) ) ; } extern "C" { pub fn mbedtls_mpi_init ( X : * mut mbedtls_mpi ) ; } extern "C" { pub fn mbedtls_mpi_free ( X : * mut mbedtls_mpi ) ; } extern "C" { pub fn mbedtls_mpi_grow ( X : * mut mbedtls_mpi , nblimbs : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_shrink ( X : * mut mbedtls_mpi , nblimbs : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_copy ( X : * mut mbedtls_mpi , Y : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_swap ( X : * mut mbedtls_mpi , Y : * mut mbedtls_mpi ) ; } extern "C" { pub fn mbedtls_mpi_safe_cond_assign ( X : * mut mbedtls_mpi , Y : * const mbedtls_mpi , assign : :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_safe_cond_swap ( X : * mut mbedtls_mpi , Y : * mut mbedtls_mpi , assign : :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_lset ( X : * mut mbedtls_mpi , z : mbedtls_mpi_sint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_get_bit ( X : * const mbedtls_mpi , pos : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_set_bit ( X : * mut mbedtls_mpi , pos : usize , val : :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_lsb ( X : * const mbedtls_mpi ) -> usize ; } extern "C" { pub fn mbedtls_mpi_bitlen ( X : * const mbedtls_mpi ) -> usize ; } extern "C" { pub fn mbedtls_mpi_size ( X : * const mbedtls_mpi ) -> usize ; } extern "C" { pub fn mbedtls_mpi_read_string ( X : * mut mbedtls_mpi , radix : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_write_string ( X : * const mbedtls_mpi , radix : :: std :: os :: raw :: c_int , buf : * mut :: std :: os :: raw :: c_char , buflen : usize , olen : * mut usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_read_file ( X : * mut mbedtls_mpi , radix : :: std :: os :: raw :: c_int , fin : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_write_file ( p : * const :: std :: os :: raw :: c_char , X : * const mbedtls_mpi , radix : :: std :: os :: raw :: c_int , fout : * mut FILE ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_read_binary ( X : * mut mbedtls_mpi , buf : * const :: std :: os :: raw :: c_uchar , buflen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_read_binary_le ( X : * mut mbedtls_mpi , buf : * const :: std :: os :: raw :: c_uchar , buflen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_write_binary ( X : * const mbedtls_mpi , buf : * mut :: std :: os :: raw :: c_uchar , buflen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_write_binary_le ( X : * const mbedtls_mpi , buf : * mut :: std :: os :: raw :: c_uchar , buflen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_shift_l ( X : * mut mbedtls_mpi , count : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_shift_r ( X : * mut mbedtls_mpi , count : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_cmp_abs ( X : * const mbedtls_mpi , Y : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_cmp_mpi ( X : * const mbedtls_mpi , Y : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_lt_mpi_ct ( X : * const mbedtls_mpi , Y : * const mbedtls_mpi , ret : * mut :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_cmp_int ( X : * const mbedtls_mpi , z : mbedtls_mpi_sint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_add_abs ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , B : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_sub_abs ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , B : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_add_mpi ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , B : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_sub_mpi ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , B : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_add_int ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , b : mbedtls_mpi_sint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_sub_int ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , b : mbedtls_mpi_sint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_mul_mpi ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , B : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_mul_int ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , b : mbedtls_mpi_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_div_mpi ( Q : * mut mbedtls_mpi , R : * mut mbedtls_mpi , A : * const mbedtls_mpi , B : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_div_int ( Q : * mut mbedtls_mpi , R : * mut mbedtls_mpi , A : * const mbedtls_mpi , b : mbedtls_mpi_sint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_mod_mpi ( R : * mut mbedtls_mpi , A : * const mbedtls_mpi , B : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_mod_int ( r : * mut mbedtls_mpi_uint , A : * const mbedtls_mpi , b : mbedtls_mpi_sint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_exp_mod ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , E : * const mbedtls_mpi , N : * const mbedtls_mpi , _RR : * mut mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_fill_random ( X : * mut mbedtls_mpi , size : usize , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_gcd ( G : * mut mbedtls_mpi , A : * const mbedtls_mpi , B : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_inv_mod ( X : * mut mbedtls_mpi , A : * const mbedtls_mpi , N : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_is_prime ( X : * const mbedtls_mpi , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_is_prime_ext ( X : * const mbedtls_mpi , rounds : :: std :: os :: raw :: c_int , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } pub const mbedtls_mpi_gen_prime_flag_t_MBEDTLS_MPI_GEN_PRIME_FLAG_DH : mbedtls_mpi_gen_prime_flag_t = 1 ; pub const mbedtls_mpi_gen_prime_flag_t_MBEDTLS_MPI_GEN_PRIME_FLAG_LOW_ERR : mbedtls_mpi_gen_prime_flag_t = 2 ; pub type mbedtls_mpi_gen_prime_flag_t = u32 ; extern "C" { pub fn mbedtls_mpi_gen_prime ( X : * mut mbedtls_mpi , nbits : usize , flags : :: std :: os :: raw :: c_int , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_mpi_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_NONE : mbedtls_ecp_group_id = 0 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_SECP192R1 : mbedtls_ecp_group_id = 1 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_SECP224R1 : mbedtls_ecp_group_id = 2 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_SECP256R1 : mbedtls_ecp_group_id = 3 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_SECP384R1 : mbedtls_ecp_group_id = 4 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_SECP521R1 : mbedtls_ecp_group_id = 5 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_BP256R1 : mbedtls_ecp_group_id = 6 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_BP384R1 : mbedtls_ecp_group_id = 7 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_BP512R1 : mbedtls_ecp_group_id = 8 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_CURVE25519 : mbedtls_ecp_group_id = 9 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_SECP192K1 : mbedtls_ecp_group_id = 10 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_SECP224K1 : mbedtls_ecp_group_id = 11 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_SECP256K1 : mbedtls_ecp_group_id = 12 ; pub const mbedtls_ecp_group_id_MBEDTLS_ECP_DP_CURVE448 : mbedtls_ecp_group_id = 13 ; pub type mbedtls_ecp_group_id = u32 ; pub const mbedtls_ecp_curve_type_MBEDTLS_ECP_TYPE_NONE : mbedtls_ecp_curve_type = 0 ; pub const mbedtls_ecp_curve_type_MBEDTLS_ECP_TYPE_SHORT_WEIERSTRASS : mbedtls_ecp_curve_type = 1 ; pub const mbedtls_ecp_curve_type_MBEDTLS_ECP_TYPE_MONTGOMERY : mbedtls_ecp_curve_type = 2 ; pub type mbedtls_ecp_curve_type = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_ecp_curve_info { pub grp_id : mbedtls_ecp_group_id , pub tls_id : u16 , pub bit_size : u16 , pub name : * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_mbedtls_ecp_curve_info ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_ecp_curve_info > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( mbedtls_ecp_curve_info ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_ecp_curve_info > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_ecp_curve_info ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_curve_info > ( ) ) ) . grp_id as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_curve_info ) , "::" , stringify ! ( grp_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_curve_info > ( ) ) ) . tls_id as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_curve_info ) , "::" , stringify ! ( tls_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_curve_info > ( ) ) ) . bit_size as * const _ as usize } , 6usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_curve_info ) , "::" , stringify ! ( bit_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_curve_info > ( ) ) ) . name as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_curve_info ) , "::" , stringify ! ( name ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_ecp_point { pub X : mbedtls_mpi , pub Y : mbedtls_mpi , pub Z : mbedtls_mpi , } # [ test ] fn bindgen_test_layout_mbedtls_ecp_point ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_ecp_point > ( ) , 72usize , concat ! ( "Size of: " , stringify ! ( mbedtls_ecp_point ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_ecp_point > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_ecp_point ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_point > ( ) ) ) . X as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_point ) , "::" , stringify ! ( X ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_point > ( ) ) ) . Y as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_point ) , "::" , stringify ! ( Y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_point > ( ) ) ) . Z as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_point ) , "::" , stringify ! ( Z ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_ecp_group { pub id : mbedtls_ecp_group_id , pub P : mbedtls_mpi , pub A : mbedtls_mpi , pub B : mbedtls_mpi , pub G : mbedtls_ecp_point , pub N : mbedtls_mpi , pub pbits : usize , pub nbits : usize , pub h : :: std :: os :: raw :: c_uint , pub modp : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut mbedtls_mpi ) -> :: std :: os :: raw :: c_int > , pub t_pre : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut mbedtls_ecp_point , arg2 : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > , pub t_post : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut mbedtls_ecp_point , arg2 : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > , pub t_data : * mut :: std :: os :: raw :: c_void , pub T : * mut mbedtls_ecp_point , pub T_size : usize , } # [ test ] fn bindgen_test_layout_mbedtls_ecp_group ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_ecp_group > ( ) , 248usize , concat ! ( "Size of: " , stringify ! ( mbedtls_ecp_group ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_ecp_group > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_ecp_group ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . id as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . P as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( P ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . A as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( A ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . B as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( B ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . G as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( G ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . N as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( N ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . pbits as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( pbits ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . nbits as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( nbits ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . h as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . modp as * const _ as usize } , 200usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( modp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . t_pre as * const _ as usize } , 208usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( t_pre ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . t_post as * const _ as usize } , 216usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( t_post ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . t_data as * const _ as usize } , 224usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( t_data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . T as * const _ as usize } , 232usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( T ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_group > ( ) ) ) . T_size as * const _ as usize } , 240usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_group ) , "::" , stringify ! ( T_size ) ) ) ; } pub type mbedtls_ecp_restart_ctx = :: std :: os :: raw :: c_void ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mbedtls_ecp_keypair { pub grp : mbedtls_ecp_group , pub d : mbedtls_mpi , pub Q : mbedtls_ecp_point , } # [ test ] fn bindgen_test_layout_mbedtls_ecp_keypair ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mbedtls_ecp_keypair > ( ) , 344usize , concat ! ( "Size of: " , stringify ! ( mbedtls_ecp_keypair ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mbedtls_ecp_keypair > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mbedtls_ecp_keypair ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_keypair > ( ) ) ) . grp as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_keypair ) , "::" , stringify ! ( grp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_keypair > ( ) ) ) . d as * const _ as usize } , 248usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_keypair ) , "::" , stringify ! ( d ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mbedtls_ecp_keypair > ( ) ) ) . Q as * const _ as usize } , 272usize , concat ! ( "Offset of field: " , stringify ! ( mbedtls_ecp_keypair ) , "::" , stringify ! ( Q ) ) ) ; } extern "C" { pub fn mbedtls_ecp_get_type ( grp : * const mbedtls_ecp_group ) -> mbedtls_ecp_curve_type ; } extern "C" { pub fn mbedtls_ecp_curve_list ( ) -> * const mbedtls_ecp_curve_info ; } extern "C" { pub fn mbedtls_ecp_grp_id_list ( ) -> * const mbedtls_ecp_group_id ; } extern "C" { pub fn mbedtls_ecp_curve_info_from_grp_id ( grp_id : mbedtls_ecp_group_id ) -> * const mbedtls_ecp_curve_info ; } extern "C" { pub fn mbedtls_ecp_curve_info_from_tls_id ( tls_id : u16 ) -> * const mbedtls_ecp_curve_info ; } extern "C" { pub fn mbedtls_ecp_curve_info_from_name ( name : * const :: std :: os :: raw :: c_char ) -> * const mbedtls_ecp_curve_info ; } extern "C" { pub fn mbedtls_ecp_point_init ( pt : * mut mbedtls_ecp_point ) ; } extern "C" { pub fn mbedtls_ecp_group_init ( grp : * mut mbedtls_ecp_group ) ; } extern "C" { pub fn mbedtls_ecp_keypair_init ( key : * mut mbedtls_ecp_keypair ) ; } extern "C" { pub fn mbedtls_ecp_point_free ( pt : * mut mbedtls_ecp_point ) ; } extern "C" { pub fn mbedtls_ecp_group_free ( grp : * mut mbedtls_ecp_group ) ; } extern "C" { pub fn mbedtls_ecp_keypair_free ( key : * mut mbedtls_ecp_keypair ) ; } extern "C" { pub fn mbedtls_ecp_copy ( P : * mut mbedtls_ecp_point , Q : * const mbedtls_ecp_point ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_group_copy ( dst : * mut mbedtls_ecp_group , src : * const mbedtls_ecp_group ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_set_zero ( pt : * mut mbedtls_ecp_point ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_is_zero ( pt : * mut mbedtls_ecp_point ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_point_cmp ( P : * const mbedtls_ecp_point , Q : * const mbedtls_ecp_point ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_point_read_string ( P : * mut mbedtls_ecp_point , radix : :: std :: os :: raw :: c_int , x : * const :: std :: os :: raw :: c_char , y : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_point_write_binary ( grp : * const mbedtls_ecp_group , P : * const mbedtls_ecp_point , format : :: std :: os :: raw :: c_int , olen : * mut usize , buf : * mut :: std :: os :: raw :: c_uchar , buflen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_point_read_binary ( grp : * const mbedtls_ecp_group , P : * mut mbedtls_ecp_point , buf : * const :: std :: os :: raw :: c_uchar , ilen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_tls_read_point ( grp : * const mbedtls_ecp_group , pt : * mut mbedtls_ecp_point , buf : * mut * const :: std :: os :: raw :: c_uchar , len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_tls_write_point ( grp : * const mbedtls_ecp_group , pt : * const mbedtls_ecp_point , format : :: std :: os :: raw :: c_int , olen : * mut usize , buf : * mut :: std :: os :: raw :: c_uchar , blen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_group_load ( grp : * mut mbedtls_ecp_group , id : mbedtls_ecp_group_id ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_tls_read_group ( grp : * mut mbedtls_ecp_group , buf : * mut * const :: std :: os :: raw :: c_uchar , len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_tls_read_group_id ( grp : * mut mbedtls_ecp_group_id , buf : * mut * const :: std :: os :: raw :: c_uchar , len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_tls_write_group ( grp : * const mbedtls_ecp_group , olen : * mut usize , buf : * mut :: std :: os :: raw :: c_uchar , blen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_mul ( grp : * mut mbedtls_ecp_group , R : * mut mbedtls_ecp_point , m : * const mbedtls_mpi , P : * const mbedtls_ecp_point , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_mul_restartable ( grp : * mut mbedtls_ecp_group , R : * mut mbedtls_ecp_point , m : * const mbedtls_mpi , P : * const mbedtls_ecp_point , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void , rs_ctx : * mut mbedtls_ecp_restart_ctx ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_muladd ( grp : * mut mbedtls_ecp_group , R : * mut mbedtls_ecp_point , m : * const mbedtls_mpi , P : * const mbedtls_ecp_point , n : * const mbedtls_mpi , Q : * const mbedtls_ecp_point ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_muladd_restartable ( grp : * mut mbedtls_ecp_group , R : * mut mbedtls_ecp_point , m : * const mbedtls_mpi , P : * const mbedtls_ecp_point , n : * const mbedtls_mpi , Q : * const mbedtls_ecp_point , rs_ctx : * mut mbedtls_ecp_restart_ctx ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_check_pubkey ( grp : * const mbedtls_ecp_group , pt : * const mbedtls_ecp_point ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_check_privkey ( grp : * const mbedtls_ecp_group , d : * const mbedtls_mpi ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_gen_privkey ( grp : * const mbedtls_ecp_group , d : * mut mbedtls_mpi , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_gen_keypair_base ( grp : * mut mbedtls_ecp_group , G : * const mbedtls_ecp_point , d : * mut mbedtls_mpi , Q : * mut mbedtls_ecp_point , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_gen_keypair ( grp : * mut mbedtls_ecp_group , d : * mut mbedtls_mpi , Q : * mut mbedtls_ecp_point , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_gen_key ( grp_id : mbedtls_ecp_group_id , key : * mut mbedtls_ecp_keypair , f_rng : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_uchar , arg3 : usize ) -> :: std :: os :: raw :: c_int > , p_rng : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_read_key ( grp_id : mbedtls_ecp_group_id , key : * mut mbedtls_ecp_keypair , buf : * const :: std :: os :: raw :: c_uchar , buflen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_check_pub_priv ( pub_ : * const mbedtls_ecp_keypair , prv : * const mbedtls_ecp_keypair ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecp_self_test ( verbose : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbedtls_ecc_group_of_psa ( curve : psa_ecc_curve_t , byte_length : usize ) -> mbedtls_ecp_group_id ; } pub const psa_encrypt_or_decrypt_t_PSA_CRYPTO_DRIVER_DECRYPT : psa_encrypt_or_decrypt_t = 0 ; pub const psa_encrypt_or_decrypt_t_PSA_CRYPTO_DRIVER_ENCRYPT : psa_encrypt_or_decrypt_t = 1 ; pub type psa_encrypt_or_decrypt_t = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_drv_se_context_t { pub persistent_data : * const :: std :: os :: raw :: c_void , pub persistent_data_size : usize , pub transient_data : usize , } # [ test ] fn bindgen_test_layout_psa_drv_se_context_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_drv_se_context_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( psa_drv_se_context_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_drv_se_context_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_drv_se_context_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_context_t > ( ) ) ) . persistent_data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_context_t ) , "::" , stringify ! ( persistent_data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_context_t > ( ) ) ) . persistent_data_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_context_t ) , "::" , stringify ! ( persistent_data_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_context_t > ( ) ) ) . transient_data as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_context_t ) , "::" , stringify ! ( transient_data ) ) ) ; } pub type psa_drv_se_init_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , persistent_data : * mut :: std :: os :: raw :: c_void , location : psa_key_location_t ) -> psa_status_t > ; pub type psa_key_slot_number_t = u64 ; pub type psa_drv_se_mac_setup_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , op_context : * mut :: std :: os :: raw :: c_void , key_slot : psa_key_slot_number_t , algorithm : psa_algorithm_t ) -> psa_status_t > ; pub type psa_drv_se_mac_update_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , p_input : * const u8 , input_length : usize ) -> psa_status_t > ; pub type psa_drv_se_mac_finish_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , p_mac : * mut u8 , mac_size : usize , p_mac_length : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_mac_finish_verify_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , p_mac : * const u8 , mac_length : usize ) -> psa_status_t > ; pub type psa_drv_se_mac_abort_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void ) -> psa_status_t > ; pub type psa_drv_se_mac_generate_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , p_input : * const u8 , input_length : usize , key_slot : psa_key_slot_number_t , alg : psa_algorithm_t , p_mac : * mut u8 , mac_size : usize , p_mac_length : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_mac_verify_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , p_input : * const u8 , input_length : usize , key_slot : psa_key_slot_number_t , alg : psa_algorithm_t , p_mac : * const u8 , mac_length : usize ) -> psa_status_t > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_drv_se_mac_t { pub context_size : usize , pub p_setup : psa_drv_se_mac_setup_t , pub p_update : psa_drv_se_mac_update_t , pub p_finish : psa_drv_se_mac_finish_t , pub p_finish_verify : psa_drv_se_mac_finish_verify_t , pub p_abort : psa_drv_se_mac_abort_t , pub p_mac : psa_drv_se_mac_generate_t , pub p_mac_verify : psa_drv_se_mac_verify_t , } # [ test ] fn bindgen_test_layout_psa_drv_se_mac_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_drv_se_mac_t > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( psa_drv_se_mac_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_drv_se_mac_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_drv_se_mac_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_mac_t > ( ) ) ) . context_size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_mac_t ) , "::" , stringify ! ( context_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_mac_t > ( ) ) ) . p_setup as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_mac_t ) , "::" , stringify ! ( p_setup ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_mac_t > ( ) ) ) . p_update as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_mac_t ) , "::" , stringify ! ( p_update ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_mac_t > ( ) ) ) . p_finish as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_mac_t ) , "::" , stringify ! ( p_finish ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_mac_t > ( ) ) ) . p_finish_verify as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_mac_t ) , "::" , stringify ! ( p_finish_verify ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_mac_t > ( ) ) ) . p_abort as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_mac_t ) , "::" , stringify ! ( p_abort ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_mac_t > ( ) ) ) . p_mac as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_mac_t ) , "::" , stringify ! ( p_mac ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_mac_t > ( ) ) ) . p_mac_verify as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_mac_t ) , "::" , stringify ! ( p_mac_verify ) ) ) ; } pub type psa_drv_se_cipher_setup_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , op_context : * mut :: std :: os :: raw :: c_void , key_slot : psa_key_slot_number_t , algorithm : psa_algorithm_t , direction : psa_encrypt_or_decrypt_t ) -> psa_status_t > ; pub type psa_drv_se_cipher_set_iv_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , p_iv : * const u8 , iv_length : usize ) -> psa_status_t > ; pub type psa_drv_se_cipher_update_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , p_input : * const u8 , input_size : usize , p_output : * mut u8 , output_size : usize , p_output_length : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_cipher_finish_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , p_output : * mut u8 , output_size : usize , p_output_length : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_cipher_abort_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void ) -> psa_status_t > ; pub type psa_drv_se_cipher_ecb_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , algorithm : psa_algorithm_t , direction : psa_encrypt_or_decrypt_t , p_input : * const u8 , input_size : usize , p_output : * mut u8 , output_size : usize ) -> psa_status_t > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_drv_se_cipher_t { pub context_size : usize , pub p_setup : psa_drv_se_cipher_setup_t , pub p_set_iv : psa_drv_se_cipher_set_iv_t , pub p_update : psa_drv_se_cipher_update_t , pub p_finish : psa_drv_se_cipher_finish_t , pub p_abort : psa_drv_se_cipher_abort_t , pub p_ecb : psa_drv_se_cipher_ecb_t , } # [ test ] fn bindgen_test_layout_psa_drv_se_cipher_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_drv_se_cipher_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( psa_drv_se_cipher_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_drv_se_cipher_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_drv_se_cipher_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_cipher_t > ( ) ) ) . context_size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_cipher_t ) , "::" , stringify ! ( context_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_cipher_t > ( ) ) ) . p_setup as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_cipher_t ) , "::" , stringify ! ( p_setup ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_cipher_t > ( ) ) ) . p_set_iv as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_cipher_t ) , "::" , stringify ! ( p_set_iv ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_cipher_t > ( ) ) ) . p_update as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_cipher_t ) , "::" , stringify ! ( p_update ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_cipher_t > ( ) ) ) . p_finish as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_cipher_t ) , "::" , stringify ! ( p_finish ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_cipher_t > ( ) ) ) . p_abort as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_cipher_t ) , "::" , stringify ! ( p_abort ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_cipher_t > ( ) ) ) . p_ecb as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_cipher_t ) , "::" , stringify ! ( p_ecb ) ) ) ; } pub type psa_drv_se_asymmetric_sign_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , alg : psa_algorithm_t , p_hash : * const u8 , hash_length : usize , p_signature : * mut u8 , signature_size : usize , p_signature_length : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_asymmetric_verify_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , alg : psa_algorithm_t , p_hash : * const u8 , hash_length : usize , p_signature : * const u8 , signature_length : usize ) -> psa_status_t > ; pub type psa_drv_se_asymmetric_encrypt_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , alg : psa_algorithm_t , p_input : * const u8 , input_length : usize , p_salt : * const u8 , salt_length : usize , p_output : * mut u8 , output_size : usize , p_output_length : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_asymmetric_decrypt_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , alg : psa_algorithm_t , p_input : * const u8 , input_length : usize , p_salt : * const u8 , salt_length : usize , p_output : * mut u8 , output_size : usize , p_output_length : * mut usize ) -> psa_status_t > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_drv_se_asymmetric_t { pub p_sign : psa_drv_se_asymmetric_sign_t , pub p_verify : psa_drv_se_asymmetric_verify_t , pub p_encrypt : psa_drv_se_asymmetric_encrypt_t , pub p_decrypt : psa_drv_se_asymmetric_decrypt_t , } # [ test ] fn bindgen_test_layout_psa_drv_se_asymmetric_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_drv_se_asymmetric_t > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( psa_drv_se_asymmetric_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_drv_se_asymmetric_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_drv_se_asymmetric_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_asymmetric_t > ( ) ) ) . p_sign as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_asymmetric_t ) , "::" , stringify ! ( p_sign ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_asymmetric_t > ( ) ) ) . p_verify as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_asymmetric_t ) , "::" , stringify ! ( p_verify ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_asymmetric_t > ( ) ) ) . p_encrypt as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_asymmetric_t ) , "::" , stringify ! ( p_encrypt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_asymmetric_t > ( ) ) ) . p_decrypt as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_asymmetric_t ) , "::" , stringify ! ( p_decrypt ) ) ) ; } pub type psa_drv_se_aead_encrypt_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , algorithm : psa_algorithm_t , p_nonce : * const u8 , nonce_length : usize , p_additional_data : * const u8 , additional_data_length : usize , p_plaintext : * const u8 , plaintext_length : usize , p_ciphertext : * mut u8 , ciphertext_size : usize , p_ciphertext_length : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_aead_decrypt_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , algorithm : psa_algorithm_t , p_nonce : * const u8 , nonce_length : usize , p_additional_data : * const u8 , additional_data_length : usize , p_ciphertext : * const u8 , ciphertext_length : usize , p_plaintext : * mut u8 , plaintext_size : usize , p_plaintext_length : * mut usize ) -> psa_status_t > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_drv_se_aead_t { pub p_encrypt : psa_drv_se_aead_encrypt_t , pub p_decrypt : psa_drv_se_aead_decrypt_t , } # [ test ] fn bindgen_test_layout_psa_drv_se_aead_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_drv_se_aead_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( psa_drv_se_aead_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_drv_se_aead_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_drv_se_aead_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_aead_t > ( ) ) ) . p_encrypt as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_aead_t ) , "::" , stringify ! ( p_encrypt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_aead_t > ( ) ) ) . p_decrypt as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_aead_t ) , "::" , stringify ! ( p_decrypt ) ) ) ; } pub const psa_key_creation_method_t_PSA_KEY_CREATION_IMPORT : psa_key_creation_method_t = 0 ; pub const psa_key_creation_method_t_PSA_KEY_CREATION_GENERATE : psa_key_creation_method_t = 1 ; pub const psa_key_creation_method_t_PSA_KEY_CREATION_DERIVE : psa_key_creation_method_t = 2 ; pub const psa_key_creation_method_t_PSA_KEY_CREATION_COPY : psa_key_creation_method_t = 3 ; pub const psa_key_creation_method_t_PSA_KEY_CREATION_REGISTER : psa_key_creation_method_t = 4 ; pub type psa_key_creation_method_t = u32 ; pub type psa_drv_se_allocate_key_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , persistent_data : * mut :: std :: os :: raw :: c_void , attributes : * const psa_key_attributes_t , method : psa_key_creation_method_t , key_slot : * mut psa_key_slot_number_t ) -> psa_status_t > ; pub type psa_drv_se_validate_slot_number_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , persistent_data : * mut :: std :: os :: raw :: c_void , attributes : * const psa_key_attributes_t , method : psa_key_creation_method_t , key_slot : psa_key_slot_number_t ) -> psa_status_t > ; pub type psa_drv_se_import_key_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , attributes : * const psa_key_attributes_t , data : * const u8 , data_length : usize , bits : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_destroy_key_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , persistent_data : * mut :: std :: os :: raw :: c_void , key_slot : psa_key_slot_number_t ) -> psa_status_t > ; pub type psa_drv_se_export_key_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key : psa_key_slot_number_t , p_data : * mut u8 , data_size : usize , p_data_length : * mut usize ) -> psa_status_t > ; pub type psa_drv_se_generate_key_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , key_slot : psa_key_slot_number_t , attributes : * const psa_key_attributes_t , pubkey : * mut u8 , pubkey_size : usize , pubkey_length : * mut usize ) -> psa_status_t > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_drv_se_key_management_t { pub p_allocate : psa_drv_se_allocate_key_t , pub p_validate_slot_number : psa_drv_se_validate_slot_number_t , pub p_import : psa_drv_se_import_key_t , pub p_generate : psa_drv_se_generate_key_t , pub p_destroy : psa_drv_se_destroy_key_t , pub p_export : psa_drv_se_export_key_t , pub p_export_public : psa_drv_se_export_key_t , } # [ test ] fn bindgen_test_layout_psa_drv_se_key_management_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_drv_se_key_management_t > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( psa_drv_se_key_management_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_drv_se_key_management_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_drv_se_key_management_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_management_t > ( ) ) ) . p_allocate as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_management_t ) , "::" , stringify ! ( p_allocate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_management_t > ( ) ) ) . p_validate_slot_number as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_management_t ) , "::" , stringify ! ( p_validate_slot_number ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_management_t > ( ) ) ) . p_import as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_management_t ) , "::" , stringify ! ( p_import ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_management_t > ( ) ) ) . p_generate as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_management_t ) , "::" , stringify ! ( p_generate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_management_t > ( ) ) ) . p_destroy as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_management_t ) , "::" , stringify ! ( p_destroy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_management_t > ( ) ) ) . p_export as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_management_t ) , "::" , stringify ! ( p_export ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_management_t > ( ) ) ) . p_export_public as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_management_t ) , "::" , stringify ! ( p_export_public ) ) ) ; } pub type psa_drv_se_key_derivation_setup_t = :: std :: option :: Option < unsafe extern "C" fn ( drv_context : * mut psa_drv_se_context_t , op_context : * mut :: std :: os :: raw :: c_void , kdf_alg : psa_algorithm_t , source_key : psa_key_slot_number_t ) -> psa_status_t > ; pub type psa_drv_se_key_derivation_collateral_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , collateral_id : u32 , p_collateral : * const u8 , collateral_size : usize ) -> psa_status_t > ; pub type psa_drv_se_key_derivation_derive_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , dest_key : psa_key_slot_number_t ) -> psa_status_t > ; pub type psa_drv_se_key_derivation_export_t = :: std :: option :: Option < unsafe extern "C" fn ( op_context : * mut :: std :: os :: raw :: c_void , p_output : * mut u8 , output_size : usize , p_output_length : * mut usize ) -> psa_status_t > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_drv_se_key_derivation_t { pub context_size : usize , pub p_setup : psa_drv_se_key_derivation_setup_t , pub p_collateral : psa_drv_se_key_derivation_collateral_t , pub p_derive : psa_drv_se_key_derivation_derive_t , pub p_export : psa_drv_se_key_derivation_export_t , } # [ test ] fn bindgen_test_layout_psa_drv_se_key_derivation_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_drv_se_key_derivation_t > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( psa_drv_se_key_derivation_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_drv_se_key_derivation_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_drv_se_key_derivation_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_derivation_t > ( ) ) ) . context_size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_derivation_t ) , "::" , stringify ! ( context_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_derivation_t > ( ) ) ) . p_setup as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_derivation_t ) , "::" , stringify ! ( p_setup ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_derivation_t > ( ) ) ) . p_collateral as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_derivation_t ) , "::" , stringify ! ( p_collateral ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_derivation_t > ( ) ) ) . p_derive as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_derivation_t ) , "::" , stringify ! ( p_derive ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_key_derivation_t > ( ) ) ) . p_export as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_key_derivation_t ) , "::" , stringify ! ( p_export ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct psa_drv_se_t { pub hal_version : u32 , pub persistent_data_size : usize , pub p_init : psa_drv_se_init_t , pub key_management : * const psa_drv_se_key_management_t , pub mac : * const psa_drv_se_mac_t , pub cipher : * const psa_drv_se_cipher_t , pub aead : * const psa_drv_se_aead_t , pub asymmetric : * const psa_drv_se_asymmetric_t , pub derivation : * const psa_drv_se_key_derivation_t , } # [ test ] fn bindgen_test_layout_psa_drv_se_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < psa_drv_se_t > ( ) , 72usize , concat ! ( "Size of: " , stringify ! ( psa_drv_se_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < psa_drv_se_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( psa_drv_se_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . hal_version as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( hal_version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . persistent_data_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( persistent_data_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . p_init as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( p_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . key_management as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( key_management ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . mac as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( mac ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . cipher as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( cipher ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . aead as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( aead ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . asymmetric as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( asymmetric ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < psa_drv_se_t > ( ) ) ) . derivation as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( psa_drv_se_t ) , "::" , stringify ! ( derivation ) ) ) ; } extern "C" { pub fn psa_register_se_driver ( location : psa_key_location_t , methods : * const psa_drv_se_t ) -> psa_status_t ; } pub const shim_PSA_MAX_KEY_BITS : usize = 65528 ; pub const shim_PSA_KEY_BITS_TOO_LARGE : psa_key_bits_t = 65535 ; pub const shim_PSA_KEY_TYPE_NONE : psa_key_type_t = 0 ; pub const shim_PSA_KEY_TYPE_VENDOR_FLAG : psa_key_type_t = 32768 ; pub const shim_PSA_KEY_TYPE_CATEGORY_MASK : psa_key_type_t = 28672 ; pub const shim_PSA_KEY_TYPE_CATEGORY_SYMMETRIC : psa_key_type_t = 8192 ; pub const shim_PSA_KEY_TYPE_CATEGORY_RAW : psa_key_type_t = 4096 ; pub const shim_PSA_KEY_TYPE_CATEGORY_PUBLIC_KEY : psa_key_type_t = 16384 ; pub const shim_PSA_KEY_TYPE_CATEGORY_KEY_PAIR : psa_key_type_t = 28672 ; pub const shim_PSA_KEY_TYPE_CATEGORY_FLAG_PAIR : psa_key_type_t = 12288 ; pub const shim_PSA_KEY_TYPE_DSA_PUBLIC_KEY : psa_key_type_t = 16386 ; pub const shim_PSA_KEY_TYPE_ECC_PUBLIC_KEY_BASE : psa_key_type_t = 16640 ; pub const shim_PSA_KEY_TYPE_ECC_KEY_PAIR_BASE : psa_key_type_t = 28928 ; pub const shim_PSA_KEY_TYPE_ECC_CURVE_MASK : psa_key_type_t = 255 ; pub const shim_PSA_ALG_VENDOR_FLAG : psa_algorithm_t = 2147483648 ; pub const shim_PSA_ALG_CATEGORY_MASK : psa_algorithm_t = 2130706432 ; pub const shim_PSA_ALG_CATEGORY_HASH : psa_algorithm_t = 16777216 ; pub const shim_PSA_ALG_CATEGORY_MAC : psa_algorithm_t = 33554432 ; pub const shim_PSA_ALG_CATEGORY_CIPHER : psa_algorithm_t = 67108864 ; pub const shim_PSA_ALG_CATEGORY_AEAD : psa_algorithm_t = 100663296 ; pub const shim_PSA_ALG_CATEGORY_SIGN : psa_algorithm_t = 268435456 ; pub const shim_PSA_ALG_CATEGORY_ASYMMETRIC_ENCRYPTION : psa_algorithm_t = 301989888 ; pub const shim_PSA_ALG_CATEGORY_KEY_AGREEMENT : psa_algorithm_t = 805306368 ; pub const shim_PSA_ALG_CATEGORY_KEY_DERIVATION : psa_algorithm_t = 536870912 ; pub const shim_PSA_ALG_HASH_MASK : psa_algorithm_t = 255 ; pub const shim_PSA_ALG_MAC_SUBCATEGORY_MASK : psa_algorithm_t = 12582912 ; pub const shim_PSA_ALG_HMAC_BASE : psa_algorithm_t = 41943040 ; pub const shim_PSA_ALG_MAC_TRUNCATION_MASK : psa_algorithm_t = 16128 ; pub const shim_PSA_ALG_CIPHER_MAC_BASE : psa_algorithm_t = 46137344 ; pub const shim_PSA_ALG_CIPHER_STREAM_FLAG : psa_algorithm_t = 8388608 ; pub const shim_PSA_ALG_CIPHER_FROM_BLOCK_FLAG : psa_algorithm_t = 4194304 ; pub const shim_PSA_ALG_AEAD_TAG_LENGTH_MASK : psa_algorithm_t = 16128 ; pub const shim_PSA_ALG_RSA_PKCS1V15_SIGN_BASE : psa_algorithm_t = 268566528 ; pub const shim_PSA_ALG_RSA_PSS_BASE : psa_algorithm_t = 268632064 ; pub const shim_PSA_ALG_DSA_BASE : psa_algorithm_t = 268697600 ; pub const shim_PSA_ALG_DETERMINISTIC_DSA_BASE : psa_algorithm_t = 268763136 ; pub const shim_PSA_ALG_DSA_DETERMINISTIC_FLAG : psa_algorithm_t = 65536 ; pub const shim_PSA_ALG_ECDSA_BASE : psa_algorithm_t = 268828672 ; pub const shim_PSA_ALG_DETERMINISTIC_ECDSA_BASE : psa_algorithm_t = 268894208 ; pub const shim_PSA_ALG_RSA_OAEP_BASE : psa_algorithm_t = 302186496 ; pub const shim_PSA_ALG_HKDF_BASE : psa_algorithm_t = 536871168 ; pub const shim_PSA_ALG_TLS12_PRF_BASE : psa_algorithm_t = 536871424 ; pub const shim_PSA_ALG_TLS12_PSK_TO_MS_BASE : psa_algorithm_t = 536871680 ; pub const shim_PSA_ALG_KEY_DERIVATION_MASK : psa_algorithm_t = 134479871 ; extern "C" { pub fn shim_get_key_algorithm ( attributes : * const psa_key_attributes_t ) -> psa_algorithm_t ; } extern "C" { pub fn shim_get_key_attributes ( key_handle : psa_key_handle_t , attributes : * mut psa_key_attributes_t ) -> psa_status_t ; } extern "C" { pub fn shim_get_key_bits ( attributes : * const psa_key_attributes_t ) -> usize ; } extern "C" { pub fn shim_get_key_id ( attributes : * const psa_key_attributes_t ) -> psa_key_id_t ; } extern "C" { pub fn shim_get_key_lifetime ( attributes : * const psa_key_attributes_t ) -> psa_key_lifetime_t ; } extern "C" { pub fn shim_get_key_type ( attributes : * const psa_key_attributes_t ) -> psa_key_type_t ; } extern "C" { pub fn shim_get_key_usage_flags ( attributes : * const psa_key_attributes_t ) -> psa_key_usage_t ; } extern "C" { pub fn shim_key_attributes_init ( ) -> psa_key_attributes_t ; } extern "C" { pub fn shim_set_key_algorithm ( attributes : * mut psa_key_attributes_t , alg : psa_algorithm_t ) ; } extern "C" { pub fn shim_set_key_bits ( attributes : * mut psa_key_attributes_t , bits : usize ) ; } extern "C" { pub fn shim_set_key_id ( attributes : * mut psa_key_attributes_t , id : psa_key_id_t ) ; } extern "C" { pub fn shim_set_key_lifetime ( attributes : * mut psa_key_attributes_t , lifetime : psa_key_lifetime_t ) ; } extern "C" { pub fn shim_set_key_type ( attributes : * mut psa_key_attributes_t , type_ : psa_key_type_t ) ; } extern "C" { pub fn shim_set_key_usage_flags ( attributes : * mut psa_key_attributes_t , usage_flags : psa_key_usage_t ) ; } extern "C" { pub fn shim_PSA_ALG_IS_HASH ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_MAC ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_CIPHER ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_AEAD ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_SIGN ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_ASYMMETRIC_ENCRYPTION ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_KEY_AGREEMENT ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_KEY_DERIVATION ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_RSA_PKCS1V15_SIGN ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_RSA_PSS ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_ECDSA ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_IS_DETERMINISTIC_ECDSA ( alg : psa_algorithm_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_ALG_RSA_PKCS1V15_SIGN ( hash_alg : psa_algorithm_t ) -> psa_algorithm_t ; } extern "C" { pub fn shim_PSA_ALG_RSA_PSS ( hash_alg : psa_algorithm_t ) -> psa_algorithm_t ; } extern "C" { pub fn shim_PSA_ALG_ECDSA ( hash_alg : psa_algorithm_t ) -> psa_algorithm_t ; } extern "C" { pub fn shim_PSA_ALG_DETERMINISTIC_ECDSA ( hash_alg : psa_algorithm_t ) -> psa_algorithm_t ; } extern "C" { pub fn shim_PSA_ALG_SIGN_GET_HASH ( alg : psa_algorithm_t ) -> psa_algorithm_t ; } extern "C" { pub fn shim_PSA_KEY_TYPE_IS_ECC_KEY_PAIR ( key_type : psa_key_type_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_KEY_TYPE_IS_ECC_PUBLIC_KEY ( key_type : psa_key_type_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_KEY_TYPE_IS_DH_PUBLIC_KEY ( key_type : psa_key_type_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_KEY_TYPE_IS_DH_KEY_PAIR ( key_type : psa_key_type_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn shim_PSA_KEY_TYPE_GET_CURVE ( key_type : psa_key_type_t ) -> psa_ecc_curve_t ; } extern "C" { pub fn shim_PSA_KEY_TYPE_GET_GROUP ( key_type : psa_key_type_t ) -> psa_dh_group_t ; } extern "C" { pub fn shim_PSA_KEY_TYPE_ECC_KEY_PAIR ( curve : psa_ecc_curve_t ) -> psa_key_type_t ; } extern "C" { pub fn shim_PSA_KEY_TYPE_ECC_PUBLIC_KEY ( curve : psa_ecc_curve_t ) -> psa_key_type_t ; } extern "C" { pub fn shim_PSA_KEY_TYPE_DH_KEY_PAIR ( group : psa_dh_group_t ) -> psa_key_type_t ; } extern "C" { pub fn shim_PSA_KEY_TYPE_DH_PUBLIC_KEY ( group : psa_dh_group_t ) -> psa_key_type_t ; } extern "C" { pub fn shim_PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR ( key_type : psa_key_type_t ) -> psa_key_type_t ; } extern "C" { pub fn shim_PSA_SIGN_OUTPUT_SIZE ( key_type : psa_key_type_t , key_bits : usize , alg : psa_algorithm_t ) -> usize ; } extern "C" { pub fn shim_PSA_KEY_EXPORT_MAX_SIZE ( key_type : psa_key_type_t , key_bits : usize ) -> usize ; } # [ 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 : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout___va_list_tag ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __va_list_tag > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __va_list_tag ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __va_list_tag > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __va_list_tag ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . gp_offset as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( gp_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . fp_offset as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( fp_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . overflow_arg_area as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( overflow_arg_area ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . reg_save_area as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( reg_save_area ) ) ) ; }