You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

108 lines
580 KiB

/* automatically generated by rust-bindgen */
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage, Align>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
storage: Storage,
align: [Align; 0],
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
#[inline]
pub fn new(storage: Storage) -> Self {
Self {
storage,
align: [],
}
}
#[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 _STDINT_HAVE_INT_FAST32_T : u32 = 1 ; pub const __NETTLE_STDINT_H : u32 = 1 ; pub const _GENERATED_STDINT_H : & 'static [ u8 ; 2usize ] = b" \0" ; pub const _STDINT_HAVE_STDINT_H : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __DARWIN_ONLY_64_BIT_INO_T : u32 = 0 ; pub const __DARWIN_ONLY_VERS_1050 : u32 = 0 ; pub const __DARWIN_ONLY_UNIX_CONFORMANCE : u32 = 1 ; pub const __DARWIN_UNIX03 : u32 = 1 ; pub const __DARWIN_64_BIT_INO_T : u32 = 1 ; pub const __DARWIN_VERS_1050 : u32 = 1 ; pub const __DARWIN_NON_CANCELABLE : u32 = 0 ; pub const __DARWIN_SUF_64_BIT_INO_T : & 'static [ u8 ; 9usize ] = b"$INODE64\0" ; pub const __DARWIN_SUF_1050 : & 'static [ u8 ; 6usize ] = b"$1050\0" ; pub const __DARWIN_SUF_EXTSN : & 'static [ u8 ; 14usize ] = b"$DARWIN_EXTSN\0" ; pub const __DARWIN_C_ANSI : u32 = 4096 ; pub const __DARWIN_C_FULL : u32 = 900000 ; pub const __DARWIN_C_LEVEL : u32 = 900000 ; pub const __STDC_WANT_LIB_EXT1__ : u32 = 1 ; pub const __DARWIN_NO_LONG_LONG : u32 = 0 ; pub const _DARWIN_FEATURE_64_BIT_INODE : u32 = 1 ; pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE : u32 = 1 ; pub const _DARWIN_FEATURE_UNIX_CONFORMANCE : u32 = 3 ; pub const __PTHREAD_SIZE__ : u32 = 8176 ; pub const __PTHREAD_ATTR_SIZE__ : u32 = 56 ; pub const __PTHREAD_MUTEXATTR_SIZE__ : u32 = 8 ; pub const __PTHREAD_MUTEX_SIZE__ : u32 = 56 ; pub const __PTHREAD_CONDATTR_SIZE__ : u32 = 8 ; pub const __PTHREAD_COND_SIZE__ : u32 = 40 ; pub const __PTHREAD_ONCE_SIZE__ : u32 = 8 ; pub const __PTHREAD_RWLOCK_SIZE__ : u32 = 192 ; pub const __PTHREAD_RWLOCKATTR_SIZE__ : u32 = 16 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const INT64_MAX : u64 = 9223372036854775807 ; pub const INT8_MIN : i32 = -128 ; pub const INT16_MIN : i32 = -32768 ; pub const INT32_MIN : i32 = -2147483648 ; pub const INT64_MIN : i64 = -9223372036854775808 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const UINT64_MAX : i32 = -1 ; pub const INT_LEAST8_MIN : i32 = -128 ; pub const INT_LEAST16_MIN : i32 = -32768 ; pub const INT_LEAST32_MIN : i32 = -2147483648 ; pub const INT_LEAST64_MIN : i64 = -9223372036854775808 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const INT_LEAST64_MAX : u64 = 9223372036854775807 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const UINT_LEAST64_MAX : i32 = -1 ; pub const INT_FAST8_MIN : i32 = -128 ; pub const INT_FAST16_MIN : i32 = -32768 ; pub const INT_FAST32_MIN : i32 = -2147483648 ; pub const INT_FAST64_MIN : i64 = -9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u32 = 32767 ; pub const INT_FAST32_MAX : u32 = 2147483647 ; pub const INT_FAST64_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : u32 = 65535 ; pub const UINT_FAST32_MAX : u32 = 4294967295 ; pub const UINT_FAST64_MAX : i32 = -1 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const INTPTR_MIN : i64 = -9223372036854775808 ; pub const UINTPTR_MAX : i32 = -1 ; pub const INTMAX_MIN : i64 = -9223372036854775808 ; pub const INTMAX_MAX : u64 = 9223372036854775807 ; pub const UINTMAX_MAX : i32 = -1 ; pub const PTRDIFF_MIN : i64 = -9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIZE_MAX : i32 = -1 ; pub const RSIZE_MAX : i32 = -1 ; pub const WINT_MIN : i32 = -2147483648 ; pub const WINT_MAX : u32 = 2147483647 ; pub const SIG_ATOMIC_MIN : i32 = -2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const AES_BLOCK_SIZE : u32 = 16 ; pub const AES128_KEY_SIZE : u32 = 16 ; pub const AES192_KEY_SIZE : u32 = 24 ; pub const AES256_KEY_SIZE : u32 = 32 ; pub const _AES128_ROUNDS : u32 = 10 ; pub const _AES192_ROUNDS : u32 = 12 ; pub const _AES256_ROUNDS : u32 = 14 ; pub const AES_MIN_KEY_SIZE : u32 = 16 ; pub const AES_MAX_KEY_SIZE : u32 = 32 ; pub const AES_KEY_SIZE : u32 = 32 ; pub const ARCFOUR_MIN_KEY_SIZE : u32 = 1 ; pub const ARCFOUR_MAX_KEY_SIZE : u32 = 256 ; pub const ARCFOUR_KEY_SIZE : u32 = 16 ; pub const ARCFOUR128_KEY_SIZE : u32 = 16 ; pub const ARCTWO_BLOCK_SIZE : u32 = 8 ; pub const ARCTWO_MIN_KEY_SIZE : u32 = 1 ; pub const ARCTWO_MAX_KEY_SIZE : u32 = 128 ; pub const ARCTWO_KEY_SIZE : u32 = 8 ; pub const BASE64_BINARY_BLOCK_SIZE : u32 = 3 ; pub const BASE64_TEXT_BLOCK_SIZE : u32 = 4 ; pub const BASE64_ENCODE_FINAL_LENGTH : u32 = 3 ; pub const NETTLE_VERSION_MAJOR : u32 = 3 ; pub const NETTLE_VERSION_MINOR : u32 = 4 ; pub const NETTLE_USE_MINI_GMP : u32 = 0 ; pub const __GMP_HAVE_HOST_CPU_FAMILY_power : u32 = 0 ; pub const __GMP_HAVE_HOST_CPU_FAMILY_powerpc : u32 = 0 ; pub const GMP_LIMB_BITS : u32 = 64 ; pub const GMP_NAIL_BITS : u32 = 0 ; pub const GMP_NUMB_BITS : u32 = 64 ; pub const __GNU_MP__ : u32 = 6 ; pub const __DARWIN_CLK_TCK : u32 = 100 ; pub const CHAR_BIT : u32 = 8 ; pub const MB_LEN_MAX : u32 = 6 ; pub const CLK_TCK : u32 = 100 ; pub const SCHAR_MAX : u32 = 127 ; pub const SCHAR_MIN : i32 = -128 ; pub const UCHAR_MAX : u32 = 255 ; pub const CHAR_MAX : u32 = 127 ; pub const CHAR_MIN : i32 = -128 ; pub const USHRT_MAX : u32 = 65535 ; pub const SHRT_MAX : u32 = 32767 ; pub const SHRT_MIN : i32 = -32768 ; pub const UINT_MAX : u32 = 4294967295 ; pub const INT_MAX : u32 = 2147483647 ; pub const INT_MIN : i32 = -2147483648 ; pub const ULONG_MAX : i32 = -1 ; pub const LONG_MAX : u64 = 9223372036854775807 ; pub const LONG_MIN : i64 = -9223372036854775808 ; pub const ULLONG_MAX : i32 = -1 ; pub const LLONG_MAX : u64 = 9223372036854775807 ; pub const LLONG_MIN : i64 = -9223372036854775808 ; pub const LONG_BIT : u32 = 64 ; pub const SSIZE_MAX : u64 = 9223372036854775807 ; pub const WORD_BIT : u32 = 32 ; pub const SIZE_T_MAX : i32 = -1 ; pub const UQUAD_MAX : i32 = -1 ; pub const QUAD_MAX : u64 = 9223372036854775807 ; pub const QUAD_MIN : i64 = -9223372036854775808 ; pub const ARG_MAX : u32 = 262144 ; pub const CHILD_MAX : u32 = 266 ; pub const GID_MAX : u32 = 2147483647 ; pub const LINK_MAX : u32 = 32767 ; pub const MAX_CANON : u32 = 1024 ; pub const MAX_INPUT : u32 = 1024 ; pub const NAME_MAX : u32 = 255 ; pub const NGROUPS_MAX : u32 = 16 ; pub const UID_MAX : u32 = 2147483647 ; pub const OPEN_MAX : u32 = 10240 ; pub const PATH_MAX : u32 = 1024 ; pub const PIPE_BUF : u32 = 512 ; 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 CHARCLASS_NAME_MAX : u32 = 14 ; pub const COLL_WEIGHTS_MAX : u32 = 2 ; pub const EQUIV_CLASS_MAX : u32 = 2 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 255 ; pub const NZERO : u32 = 20 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; 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_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; 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_EQUIV_CLASS_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 _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; 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_TIMER_MAX : u32 = 32 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_KEYS_MAX : u32 = 512 ; pub const PTHREAD_STACK_MIN : u32 = 8192 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_SS_REPL_MAX : u32 = 4 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TRACE_EVENT_NAME_MAX : u32 = 30 ; pub const _POSIX_TRACE_NAME_MAX : u32 = 8 ; pub const _POSIX_TRACE_SYS_MAX : u32 = 8 ; pub const _POSIX_TRACE_USER_EVENT_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const OFF_MIN : i64 = -9223372036854775808 ; pub const OFF_MAX : u64 = 9223372036854775807 ; pub const PASS_MAX : u32 = 128 ; pub const NL_ARGMAX : u32 = 9 ; pub const NL_LANGMAX : u32 = 14 ; pub const NL_MSGMAX : u32 = 32767 ; pub const NL_NMAX : u32 = 1 ; pub const NL_SETMAX : u32 = 255 ; pub const NL_TEXTMAX : u32 = 2048 ; pub const _XOPEN_IOV_MAX : u32 = 16 ; pub const IOV_MAX : u32 = 1024 ; pub const _XOPEN_NAME_MAX : u32 = 255 ; pub const _XOPEN_PATH_MAX : u32 = 1024 ; pub const __GMP_LIBGMP_DLL : u32 = 0 ; pub const __GMP_MP_SIZE_T_INT : u32 = 0 ; pub const __GMP_INLINE_PROTOTYPES : u32 = 1 ; pub const __GMP_CC : & 'static [ u8 ; 15usize ] = b"/usr/bin/clang\0" ; pub const __GMP_CFLAGS : & 'static [ u8 ; 74usize ] = b"-O2 -pedantic -fomit-frame-pointer -m64 -mtune=broadwell -march=broadwell\0" ; pub const __GNU_MP_VERSION : u32 = 6 ; pub const __GNU_MP_VERSION_MINOR : u32 = 1 ; pub const __GNU_MP_VERSION_PATCHLEVEL : u32 = 2 ; pub const __GNU_MP_RELEASE : u32 = 60102 ; pub const BLOWFISH_BLOCK_SIZE : u32 = 8 ; pub const BLOWFISH_MIN_KEY_SIZE : u32 = 8 ; pub const BLOWFISH_MAX_KEY_SIZE : u32 = 56 ; pub const BLOWFISH_KEY_SIZE : u32 = 16 ; pub const BLOWFISH128_KEY_SIZE : u32 = 16 ; pub const _BLOWFISH_ROUNDS : u32 = 16 ; pub const CAMELLIA_BLOCK_SIZE : u32 = 16 ; pub const CAMELLIA128_KEY_SIZE : u32 = 16 ; pub const CAMELLIA192_KEY_SIZE : u32 = 24 ; pub const CAMELLIA256_KEY_SIZE : u32 = 32 ; pub const _CAMELLIA128_NKEYS : u32 = 24 ; pub const _CAMELLIA256_NKEYS : u32 = 32 ; pub const CAST128_BLOCK_SIZE : u32 = 8 ; pub const CAST5_MIN_KEY_SIZE : u32 = 5 ; pub const CAST5_MAX_KEY_SIZE : u32 = 16 ; pub const CAST128_KEY_SIZE : u32 = 16 ; pub const CCM_BLOCK_SIZE : u32 = 16 ; pub const CCM_DIGEST_SIZE : u32 = 16 ; pub const CCM_MIN_NONCE_SIZE : u32 = 7 ; pub const CCM_MAX_NONCE_SIZE : u32 = 14 ; pub const CHACHA_KEY_SIZE : u32 = 32 ; pub const CHACHA_BLOCK_SIZE : u32 = 64 ; pub const CHACHA_NONCE_SIZE : u32 = 8 ; pub const CHACHA_NONCE96_SIZE : u32 = 12 ; pub const _CHACHA_STATE_LENGTH : u32 = 16 ; pub const POLY1305_DIGEST_SIZE : u32 = 16 ; pub const POLY1305_BLOCK_SIZE : u32 = 16 ; pub const POLY1305_KEY_SIZE : u32 = 16 ; pub const POLY1305_AES_KEY_SIZE : u32 = 32 ; pub const POLY1305_AES_DIGEST_SIZE : u32 = 16 ; pub const POLY1305_AES_NONCE_SIZE : u32 = 16 ; pub const CHACHA_POLY1305_BLOCK_SIZE : u32 = 64 ; pub const CHACHA_POLY1305_KEY_SIZE : u32 = 32 ; pub const CHACHA_POLY1305_NONCE_SIZE : u32 = 12 ; pub const CHACHA_POLY1305_DIGEST_SIZE : u32 = 16 ; pub const CURVE25519_SIZE : u32 = 32 ; pub const NETTLE_CURVE25519_RFC7748 : u32 = 1 ; pub const DES_KEY_SIZE : u32 = 8 ; pub const DES_BLOCK_SIZE : u32 = 8 ; pub const _DES_KEY_LENGTH : u32 = 32 ; pub const DES3_KEY_SIZE : u32 = 24 ; pub const DES3_BLOCK_SIZE : u32 = 8 ; pub const DSA_SHA1_MIN_P_BITS : u32 = 512 ; pub const DSA_SHA1_Q_OCTETS : u32 = 20 ; pub const DSA_SHA1_Q_BITS : u32 = 160 ; pub const DSA_SHA256_MIN_P_BITS : u32 = 1024 ; pub const DSA_SHA256_Q_OCTETS : u32 = 32 ; pub const DSA_SHA256_Q_BITS : u32 = 256 ; pub const SHA1_DIGEST_SIZE : u32 = 20 ; pub const SHA1_BLOCK_SIZE : u32 = 64 ; pub const SHA1_DATA_SIZE : u32 = 64 ; pub const _SHA1_DIGEST_LENGTH : u32 = 5 ; pub const SHA256_DIGEST_SIZE : u32 = 32 ; pub const SHA256_BLOCK_SIZE : u32 = 64 ; pub const _SHA256_DIGEST_LENGTH : u32 = 8 ; pub const SHA224_DIGEST_SIZE : u32 = 28 ; pub const SHA224_BLOCK_SIZE : u32 = 64 ; pub const SHA512_DIGEST_SIZE : u32 = 64 ; pub const SHA512_BLOCK_SIZE : u32 = 128 ; pub const _SHA512_DIGEST_LENGTH : u32 = 8 ; pub const SHA384_DIGEST_SIZE : u32 = 48 ; pub const SHA384_BLOCK_SIZE : u32 = 128 ; pub const SHA512_224_DIGEST_SIZE : u32 = 28 ; pub const SHA512_224_BLOCK_SIZE : u32 = 128 ; pub const SHA512_256_DIGEST_SIZE : u32 = 32 ; pub const SHA512_256_BLOCK_SIZE : u32 = 128 ; pub const EAX_BLOCK_SIZE : u32 = 16 ; pub const EAX_DIGEST_SIZE : u32 = 16 ; pub const EAX_IV_SIZE : u32 = 16 ; pub const ED25519_KEY_SIZE : u32 = 32 ; pub const ED25519_SIGNATURE_SIZE : u32 = 64 ; pub const GCM_BLOCK_SIZE : u32 = 16 ; pub const GCM_IV_SIZE : u32 = 12 ; pub const GCM_DIGEST_SIZE : u32 = 16 ; pub const GCM_TABLE_BITS : u32 = 8 ; pub const GOSTHASH94_BLOCK_SIZE : u32 = 32 ; pub const GOSTHASH94_DIGEST_SIZE : u32 = 32 ; pub const GOSTHASH94_DATA_SIZE : u32 = 32 ; pub const MD5_DIGEST_SIZE : u32 = 16 ; pub const MD5_BLOCK_SIZE : u32 = 64 ; pub const MD5_DATA_SIZE : u32 = 64 ; pub const _MD5_DIGEST_LENGTH : u32 = 4 ; pub const RIPEMD160_DIGEST_SIZE : u32 = 20 ; pub const RIPEMD160_BLOCK_SIZE : u32 = 64 ; pub const RIPEMD160_DATA_SIZE : u32 = 64 ; pub const _RIPEMD160_DIGEST_LENGTH : u32 = 5 ; pub const _KNUTH_LFIB_KK : u32 = 100 ; pub const MD2_DIGEST_SIZE : u32 = 16 ; pub const MD2_BLOCK_SIZE : u32 = 16 ; pub const MD2_DATA_SIZE : u32 = 16 ; pub const MD4_DIGEST_SIZE : u32 = 16 ; pub const MD4_BLOCK_SIZE : u32 = 64 ; pub const MD4_DATA_SIZE : u32 = 64 ; pub const _MD4_DIGEST_LENGTH : u32 = 4 ; pub const __API_TO_BE_DEPRECATED : u32 = 100000 ; pub const __MAC_10_0 : u32 = 1000 ; pub const __MAC_10_1 : u32 = 1010 ; pub const __MAC_10_2 : u32 = 1020 ; pub const __MAC_10_3 : u32 = 1030 ; pub const __MAC_10_4 : u32 = 1040 ; pub const __MAC_10_5 : u32 = 1050 ; pub const __MAC_10_6 : u32 = 1060 ; pub const __MAC_10_7 : u32 = 1070 ; pub const __MAC_10_8 : u32 = 1080 ; pub const __MAC_10_9 : u32 = 1090 ; pub const __MAC_10_10 : u32 = 101000 ; pub const __MAC_10_10_2 : u32 = 101002 ; pub const __MAC_10_10_3 : u32 = 101003 ; pub const __MAC_10_11 : u32 = 101100 ; pub const __MAC_10_11_2 : u32 = 101102 ; pub const __MAC_10_11_3 : u32 = 101103 ; pub const __MAC_10_11_4 : u32 = 101104 ; pub const __MAC_10_12 : u32 = 101200 ; pub const __MAC_10_12_1 : u32 = 101201 ; pub const __MAC_10_12_2 : u32 = 101202 ; pub const __MAC_10_12_4 : u32 = 101204 ; pub const __MAC_10_13 : u32 = 101300 ; pub const __MAC_10_13_1 : u32 = 101301 ; pub const __MAC_10_13_2 : u32 = 101302 ; pub const __MAC_10_13_4 : u32 = 101304 ; pub const __MAC_10_14 : u32 = 101400 ; pub const __MAC_10_14_1 : u32 = 101401 ; pub const __MAC_10_14_4 : u32 = 101404 ; pub const __IPHONE_2_0 : u32 = 20000 ; pub const __IPHONE_2_1 : u32 = 20100 ; pub const __IPHONE_2_2 : u32 = 20200 ; pub const __IPHONE_3_0 : u32 = 30000 ; pub const __IPHONE_3_1 : u32 = 30100 ; pub const __IPHONE_3_2 : u32 = 30200 ; pub const __IPHONE_4_0 : u32 = 40000 ; pub const __IPHONE_4_1 : u32 = 40100 ; pub const __IPHONE_4_2 : u32 = 40200 ; pub const __IPHONE_4_3 : u32 = 40300 ; pub const __IPHONE_5_0 : u32 = 50000 ; pub const __IPHONE_5_1 : u32 = 50100 ; pub const __IPHONE_6_0 : u32 = 60000 ; pub const __IPHONE_6_1 : u32 = 60100 ; pub const __IPHONE_7_0 : u32 = 70000 ; pub const __IPHONE_7_1 : u32 = 70100 ; pub const __IPHONE_8_0 : u32 = 80000 ; pub const __IPHONE_8_1 : u32 = 80100 ; pub const __IPHONE_8_2 : u32 = 80200 ; pub const __IPHONE_8_3 : u32 = 80300 ; pub const __IPHONE_8_4 : u32 = 80400 ; pub const __IPHONE_9_0 : u32 = 90000 ; pub const __IPHONE_9_1 : u32 = 90100 ; pub const __IPHONE_9_2 : u32 = 90200 ; pub const __IPHONE_9_3 : u32 = 90300 ; pub const __IPHONE_10_0 : u32 = 100000 ; pub const __IPHONE_10_1 : u32 = 100100 ; pub const __IPHONE_10_2 : u32 = 100200 ; pub const __IPHONE_10_3 : u32 = 100300 ; pub const __IPHONE_11_0 : u32 = 110000 ; pub const __IPHONE_11_1 : u32 = 110100 ; pub const __IPHONE_11_2 : u32 = 110200 ; pub const __IPHONE_11_3 : u32 = 110300 ; pub const __IPHONE_11_4 : u32 = 110400 ; pub const __IPHONE_12_0 : u32 = 120000 ; pub const __IPHONE_12_1 : u32 = 120100 ; pub const __IPHONE_12_2 : u32 = 120200 ; pub const __TVOS_9_0 : u32 = 90000 ; pub const __TVOS_9_1 : u32 = 90100 ; pub const __TVOS_9_2 : u32 = 90200 ; pub const __TVOS_10_0 : u32 = 100000 ; pub const __TVOS_10_0_1 : u32 = 100001 ; pub const __TVOS_10_1 : u32 = 100100 ; pub const __TVOS_10_2 : u32 = 100200 ; pub const __TVOS_11_0 : u32 = 110000 ; pub const __TVOS_11_1 : u32 = 110100 ; pub const __TVOS_11_2 : u32 = 110200 ; pub const __TVOS_11_3 : u32 = 110300 ; pub const __TVOS_11_4 : u32 = 110400 ; pub const __TVOS_12_0 : u32 = 120000 ; pub const __TVOS_12_1 : u32 = 120100 ; pub const __TVOS_12_2 : u32 = 120200 ; pub const __WATCHOS_1_0 : u32 = 10000 ; pub const __WATCHOS_2_0 : u32 = 20000 ; pub const __WATCHOS_2_1 : u32 = 20100 ; pub const __WATCHOS_2_2 : u32 = 20200 ; pub const __WATCHOS_3_0 : u32 = 30000 ; pub const __WATCHOS_3_1 : u32 = 30100 ; pub const __WATCHOS_3_1_1 : u32 = 30101 ; pub const __WATCHOS_3_2 : u32 = 30200 ; pub const __WATCHOS_4_0 : u32 = 40000 ; pub const __WATCHOS_4_1 : u32 = 40100 ; pub const __WATCHOS_4_2 : u32 = 40200 ; pub const __WATCHOS_4_3 : u32 = 40300 ; pub const __WATCHOS_5_0 : u32 = 50000 ; pub const __WATCHOS_5_1 : u32 = 50100 ; pub const __WATCHOS_5_2 : u32 = 50200 ; pub const __MAC_OS_X_VERSION_MAX_ALLOWED : u32 = 101404 ; pub const __DARWIN_WCHAR_MIN : i32 = -2147483648 ; pub const _FORTIFY_SOURCE : u32 = 2 ; pub const __DARWIN_NSIG : u32 = 32 ; pub const NSIG : u32 = 32 ; pub const _I386_SIGNAL_H_ : u32 = 1 ; pub const SIGHUP : u32 = 1 ; pub const SIGINT : u32 = 2 ; pub const SIGQUIT : u32 = 3 ; pub const SIGILL : u32 = 4 ; pub const SIGTRAP : u32 = 5 ; pub const SIGABRT : u32 = 6 ; pub const SIGIOT : u32 = 6 ; pub const SIGEMT : u32 = 7 ; pub const SIGFPE : u32 = 8 ; pub const SIGKILL : u32 = 9 ; pub const SIGBUS : u32 = 10 ; pub const SIGSEGV : u32 = 11 ; pub const SIGSYS : u32 = 12 ; pub const SIGPIPE : u32 = 13 ; pub const SIGALRM : u32 = 14 ; pub const SIGTERM : u32 = 15 ; pub const SIGURG : u32 = 16 ; pub const SIGSTOP : u32 = 17 ; pub const SIGTSTP : u32 = 18 ; pub const SIGCONT : u32 = 19 ; pub const SIGCHLD : u32 = 20 ; pub const SIGTTIN : u32 = 21 ; pub const SIGTTOU : u32 = 22 ; pub const SIGIO : u32 = 23 ; pub const SIGXCPU : u32 = 24 ; pub const SIGXFSZ : u32 = 25 ; pub const SIGVTALRM : u32 = 26 ; pub const SIGPROF : u32 = 27 ; pub const SIGWINCH : u32 = 28 ; pub const SIGINFO : u32 = 29 ; pub const SIGUSR1 : u32 = 30 ; pub const SIGUSR2 : u32 = 31 ; pub const FP_PREC_24B : u32 = 0 ; pub const FP_PREC_53B : u32 = 2 ; pub const FP_PREC_64B : u32 = 3 ; pub const FP_RND_NEAR : u32 = 0 ; pub const FP_RND_DOWN : u32 = 1 ; pub const FP_RND_UP : u32 = 2 ; pub const FP_CHOP : u32 = 3 ; pub const FP_STATE_BYTES : u32 = 512 ; pub const SIGEV_NONE : u32 = 0 ; pub const SIGEV_SIGNAL : u32 = 1 ; pub const SIGEV_THREAD : u32 = 3 ; pub const ILL_NOOP : u32 = 0 ; pub const ILL_ILLOPC : u32 = 1 ; pub const ILL_ILLTRP : u32 = 2 ; pub const ILL_PRVOPC : u32 = 3 ; pub const ILL_ILLOPN : u32 = 4 ; pub const ILL_ILLADR : u32 = 5 ; pub const ILL_PRVREG : u32 = 6 ; pub const ILL_COPROC : u32 = 7 ; pub const ILL_BADSTK : u32 = 8 ; pub const FPE_NOOP : u32 = 0 ; pub const FPE_FLTDIV : u32 = 1 ; pub const FPE_FLTOVF : u32 = 2 ; pub const FPE_FLTUND : u32 = 3 ; pub const FPE_FLTRES : u32 = 4 ; pub const FPE_FLTINV : u32 = 5 ; pub const FPE_FLTSUB : u32 = 6 ; pub const FPE_INTDIV : u32 = 7 ; pub const FPE_INTOVF : u32 = 8 ; pub const SEGV_NOOP : u32 = 0 ; pub const SEGV_MAPERR : u32 = 1 ; pub const SEGV_ACCERR : u32 = 2 ; pub const BUS_NOOP : u32 = 0 ; pub const BUS_ADRALN : u32 = 1 ; pub const BUS_ADRERR : u32 = 2 ; pub const BUS_OBJERR : u32 = 3 ; pub const TRAP_BRKPT : u32 = 1 ; pub const TRAP_TRACE : u32 = 2 ; pub const CLD_NOOP : u32 = 0 ; pub const CLD_EXITED : u32 = 1 ; pub const CLD_KILLED : u32 = 2 ; pub const CLD_DUMPED : u32 = 3 ; pub const CLD_TRAPPED : u32 = 4 ; pub const CLD_STOPPED : u32 = 5 ; pub const CLD_CONTINUED : u32 = 6 ; pub const POLL_IN : u32 = 1 ; pub const POLL_OUT : u32 = 2 ; pub const POLL_MSG : u32 = 3 ; pub const POLL_ERR : u32 = 4 ; pub const POLL_PRI : u32 = 5 ; pub const POLL_HUP : u32 = 6 ; pub const SA_ONSTACK : u32 = 1 ; pub const SA_RESTART : u32 = 2 ; pub const SA_RESETHAND : u32 = 4 ; pub const SA_NOCLDSTOP : u32 = 8 ; pub const SA_NODEFER : u32 = 16 ; pub const SA_NOCLDWAIT : u32 = 32 ; pub const SA_SIGINFO : u32 = 64 ; pub const SA_USERTRAMP : u32 = 256 ; pub const SA_64REGSET : u32 = 512 ; pub const SA_USERSPACE_MASK : u32 = 127 ; pub const SIG_BLOCK : u32 = 1 ; pub const SIG_UNBLOCK : u32 = 2 ; pub const SIG_SETMASK : u32 = 3 ; pub const SI_USER : u32 = 65537 ; pub const SI_QUEUE : u32 = 65538 ; pub const SI_TIMER : u32 = 65539 ; pub const SI_ASYNCIO : u32 = 65540 ; pub const SI_MESGQ : u32 = 65541 ; pub const SS_ONSTACK : u32 = 1 ; pub const SS_DISABLE : u32 = 4 ; pub const MINSIGSTKSZ : u32 = 32768 ; pub const SIGSTKSZ : u32 = 131072 ; pub const SV_ONSTACK : u32 = 1 ; pub const SV_INTERRUPT : u32 = 2 ; pub const SV_RESETHAND : u32 = 4 ; pub const SV_NODEFER : u32 = 16 ; pub const SV_NOCLDSTOP : u32 = 8 ; pub const SV_SIGINFO : u32 = 64 ; pub const PRIO_PROCESS : u32 = 0 ; pub const PRIO_PGRP : u32 = 1 ; pub const PRIO_USER : u32 = 2 ; pub const PRIO_DARWIN_THREAD : u32 = 3 ; pub const PRIO_DARWIN_PROCESS : u32 = 4 ; pub const PRIO_MIN : i32 = -20 ; pub const PRIO_MAX : u32 = 20 ; pub const PRIO_DARWIN_BG : u32 = 4096 ; pub const PRIO_DARWIN_NONUI : u32 = 4097 ; pub const RUSAGE_SELF : u32 = 0 ; pub const RUSAGE_CHILDREN : i32 = -1 ; pub const RUSAGE_INFO_V0 : u32 = 0 ; pub const RUSAGE_INFO_V1 : u32 = 1 ; pub const RUSAGE_INFO_V2 : u32 = 2 ; pub const RUSAGE_INFO_V3 : u32 = 3 ; pub const RUSAGE_INFO_V4 : u32 = 4 ; pub const RUSAGE_INFO_CURRENT : u32 = 4 ; pub const RLIMIT_CPU : u32 = 0 ; pub const RLIMIT_FSIZE : u32 = 1 ; pub const RLIMIT_DATA : u32 = 2 ; pub const RLIMIT_STACK : u32 = 3 ; pub const RLIMIT_CORE : u32 = 4 ; pub const RLIMIT_AS : u32 = 5 ; pub const RLIMIT_RSS : u32 = 5 ; pub const RLIMIT_MEMLOCK : u32 = 6 ; pub const RLIMIT_NPROC : u32 = 7 ; pub const RLIMIT_NOFILE : u32 = 8 ; pub const RLIM_NLIMITS : u32 = 9 ; pub const _RLIMIT_POSIX_FLAG : u32 = 4096 ; pub const RLIMIT_WAKEUPS_MONITOR : u32 = 1 ; pub const RLIMIT_CPU_USAGE_MONITOR : u32 = 2 ; pub const RLIMIT_THREAD_CPULIMITS : u32 = 3 ; pub const RLIMIT_FOOTPRINT_INTERVAL : u32 = 4 ; pub const WAKEMON_ENABLE : u32 = 1 ; pub const WAKEMON_DISABLE : u32 = 2 ; pub const WAKEMON_GET_PARAMS : u32 = 4 ; pub const WAKEMON_SET_DEFAULTS : u32 = 8 ; pub const WAKEMON_MAKE_FATAL : u32 = 16 ; pub const CPUMON_MAKE_FATAL : u32 = 4096 ; pub const FOOTPRINT_INTERVAL_RESET : u32 = 1 ; pub const IOPOL_TYPE_DISK : u32 = 0 ; pub const IOPOL_TYPE_VFS_ATIME_UPDATES : u32 = 2 ; pub const IOPOL_SCOPE_PROCESS : u32 = 0 ; pub const IOPOL_SCOPE_THREAD : u32 = 1 ; pub const IOPOL_SCOPE_DARWIN_BG : u32 = 2 ; pub const IOPOL_DEFAULT : u32 = 0 ; pub const IOPOL_IMPORTANT : u32 = 1 ; pub const IOPOL_PASSIVE : u32 = 2 ; pub const IOPOL_THROTTLE : u32 = 3 ; pub const IOPOL_UTILITY : u32 = 4 ; pub const IOPOL_STANDARD : u32 = 5 ; pub const IOPOL_APPLICATION : u32 = 5 ; pub const IOPOL_NORMAL : u32 = 1 ; pub const IOPOL_ATIME_UPDATES_DEFAULT : u32 = 0 ; pub const IOPOL_ATIME_UPDATES_OFF : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WCOREFLAG : u32 = 128 ; pub const _WSTOPPED : u32 = 127 ; pub const WEXITED : u32 = 4 ; pub const WSTOPPED : u32 = 8 ; pub const WCONTINUED : u32 = 16 ; pub const WNOWAIT : u32 = 32 ; pub const WAIT_ANY : i32 = -1 ; pub const WAIT_MYPGRP : u32 = 0 ; pub const _QUAD_HIGHWORD : u32 = 1 ; pub const _QUAD_LOWWORD : u32 = 0 ; pub const __DARWIN_LITTLE_ENDIAN : u32 = 1234 ; pub const __DARWIN_BIG_ENDIAN : u32 = 4321 ; pub const __DARWIN_PDP_ENDIAN : u32 = 3412 ; pub const __DARWIN_BYTE_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const RAND_MAX : u32 = 2147483647 ; pub const CLOCKS_PER_SEC : u32 = 1000000 ; pub const RSA_MINIMUM_N_OCTETS : u32 = 12 ; pub const RSA_MINIMUM_N_BITS : u32 = 89 ; pub const SALSA20_128_KEY_SIZE : u32 = 16 ; pub const SALSA20_256_KEY_SIZE : u32 = 32 ; pub const SALSA20_BLOCK_SIZE : u32 = 64 ; pub const SALSA20_NONCE_SIZE : u32 = 8 ; pub const SALSA20_IV_SIZE : u32 = 8 ; pub const SALSA20_MIN_KEY_SIZE : u32 = 16 ; pub const SALSA20_MAX_KEY_SIZE : u32 = 32 ; pub const SALSA20_KEY_SIZE : u32 = 32 ; pub const _SALSA20_INPUT_LENGTH : u32 = 16 ; pub const SERPENT_BLOCK_SIZE : u32 = 16 ; pub const SERPENT_KEY_SIZE : u32 = 32 ; pub const SERPENT_MIN_KEY_SIZE : u32 = 16 ; pub const SERPENT_MAX_KEY_SIZE : u32 = 32 ; pub const SERPENT128_KEY_SIZE : u32 = 16 ; pub const SERPENT192_KEY_SIZE : u32 = 24 ; pub const SERPENT256_KEY_SIZE : u32 = 32 ; pub const __GNUC_VA_LIST : u32 = 1 ; pub const NETTLE_SHA3_FIPS202 : u32 = 1 ; pub const SHA3_STATE_LENGTH : u32 = 25 ; pub const SHA3_224_DIGEST_SIZE : u32 = 28 ; pub const SHA3_224_BLOCK_SIZE : u32 = 144 ; pub const SHA3_256_DIGEST_SIZE : u32 = 32 ; pub const SHA3_256_BLOCK_SIZE : u32 = 136 ; pub const SHA3_384_DIGEST_SIZE : u32 = 48 ; pub const SHA3_384_BLOCK_SIZE : u32 = 104 ; pub const SHA3_512_DIGEST_SIZE : u32 = 64 ; pub const SHA3_512_BLOCK_SIZE : u32 = 72 ; pub const SHA3_224_DATA_SIZE : u32 = 144 ; pub const SHA3_256_DATA_SIZE : u32 = 136 ; pub const SHA3_384_DATA_SIZE : u32 = 104 ; pub const SHA3_512_DATA_SIZE : u32 = 72 ; pub const TWOFISH_BLOCK_SIZE : u32 = 16 ; pub const TWOFISH_MIN_KEY_SIZE : u32 = 16 ; pub const TWOFISH_MAX_KEY_SIZE : u32 = 32 ; pub const TWOFISH_KEY_SIZE : u32 = 32 ; pub const TWOFISH128_KEY_SIZE : u32 = 16 ; pub const TWOFISH192_KEY_SIZE : u32 = 24 ; pub const TWOFISH256_KEY_SIZE : u32 = 32 ; pub const UMAC_KEY_SIZE : u32 = 16 ; pub const UMAC32_DIGEST_SIZE : u32 = 4 ; pub const UMAC64_DIGEST_SIZE : u32 = 8 ; pub const UMAC96_DIGEST_SIZE : u32 = 12 ; pub const UMAC128_DIGEST_SIZE : u32 = 16 ; pub const UMAC_BLOCK_SIZE : u32 = 1024 ; pub const UMAC_MIN_NONCE_SIZE : u32 = 1 ; pub const UMAC_MAX_NONCE_SIZE : u32 = 16 ; pub const UMAC_DATA_SIZE : u32 = 1024 ; pub const _UMAC_NONCE_CACHED : u32 = 128 ; pub const UMAC_POLY64_BLOCKS : u32 = 16384 ; pub const UMAC_P64_OFFSET : u32 = 59 ; pub const UMAC_P128_OFFSET : u32 = 159 ; pub const YARROW256_SEED_FILE_SIZE : u32 = 32 ; pub const YARROW_KEY_EVENT_BUFFER : u32 = 16 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = i8 ; pub type int_least16_t = i16 ; pub type int_least32_t = i32 ; pub type int_least64_t = i64 ; pub type uint_least8_t = u8 ; pub type uint_least16_t = u16 ; pub type uint_least32_t = u32 ; pub type uint_least64_t = u64 ; pub type int_fast8_t = i8 ; pub type int_fast16_t = i16 ; pub type int_fast32_t = i32 ; pub type int_fast64_t = i64 ; pub type uint_fast8_t = u8 ; pub type uint_fast16_t = u16 ; pub type uint_fast32_t = u32 ; pub type uint_fast64_t = u64 ; 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_longlong ; pub type __uint64_t = :: std :: os :: raw :: c_ulonglong ; pub type __darwin_intptr_t = :: std :: os :: raw :: c_long ; pub type __darwin_natural_t = :: std :: os :: raw :: c_uint ; pub type __darwin_ct_rune_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __mbstate_t { pub __mbstate8 : [ :: std :: os :: raw :: c_char ; 128usize ] , pub _mbstateL : :: std :: os :: raw :: c_longlong , _bindgen_union_align : [ u64 ; 16usize ] , } # [ test ] fn bindgen_test_layout___mbstate_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mbstate_t > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( __mbstate_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mbstate_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __mbstate_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t > ( ) ) ) . __mbstate8 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t ) , "::" , stringify ! ( __mbstate8 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mbstate_t > ( ) ) ) . _mbstateL as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mbstate_t ) , "::" , stringify ! ( _mbstateL ) ) ) ; } pub type __darwin_mbstate_t = __mbstate_t ; pub type __darwin_ptrdiff_t = :: std :: os :: raw :: c_long ; pub type __darwin_size_t = :: std :: os :: raw :: c_ulong ; pub type __darwin_va_list = __builtin_va_list ; pub type __darwin_wchar_t = :: std :: os :: raw :: c_int ; pub type __darwin_rune_t = __darwin_wchar_t ; pub type __darwin_wint_t = :: std :: os :: raw :: c_int ; pub type __darwin_clock_t = :: std :: os :: raw :: c_ulong ; pub type __darwin_socklen_t = __uint32_t ; pub type __darwin_ssize_t = :: std :: os :: raw :: c_long ; pub type __darwin_time_t = :: std :: os :: raw :: c_long ; pub type __darwin_blkcnt_t = __int64_t ; pub type __darwin_blksize_t = __int32_t ; pub type __darwin_dev_t = __int32_t ; pub type __darwin_fsblkcnt_t = :: std :: os :: raw :: c_uint ; pub type __darwin_fsfilcnt_t = :: std :: os :: raw :: c_uint ; pub type __darwin_gid_t = __uint32_t ; pub type __darwin_id_t = __uint32_t ; pub type __darwin_ino64_t = __uint64_t ; pub type __darwin_ino_t = __darwin_ino64_t ; pub type __darwin_mach_port_name_t = __darwin_natural_t ; pub type __darwin_mach_port_t = __darwin_mach_port_name_t ; pub type __darwin_mode_t = __uint16_t ; pub type __darwin_off_t = __int64_t ; pub type __darwin_pid_t = __int32_t ; pub type __darwin_sigset_t = __uint32_t ; pub type __darwin_suseconds_t = __int32_t ; pub type __darwin_uid_t = __uint32_t ; pub type __darwin_useconds_t = __uint32_t ; pub type __darwin_uuid_t = [ :: std :: os :: raw :: c_uchar ; 16usize ] ; pub type __darwin_uuid_string_t = [ :: std :: os :: raw :: c_char ; 37usize ] ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __darwin_pthread_handler_rec { pub __routine : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void ) > , pub __arg : * mut :: std :: os :: raw :: c_void , pub __next : * mut __darwin_pthread_handler_rec , } # [ test ] fn bindgen_test_layout___darwin_pthread_handler_rec ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __darwin_pthread_handler_rec > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __darwin_pthread_handler_rec ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __darwin_pthread_handler_rec > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __darwin_pthread_handler_rec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __darwin_pthread_handler_rec > ( ) ) ) . __routine as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __darwin_pthread_handler_rec ) , "::" , stringify ! ( __routine ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __darwin_pthread_handler_rec > ( ) ) ) . __arg as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __darwin_pthread_handler_rec ) , "::" , stringify ! ( __arg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __darwin_pthread_handler_rec > ( ) ) ) . __next as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __darwin_pthread_handler_rec ) , "::" , stringify ! ( __next ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _opaque_pthread_attr_t { pub __sig : :: std :: os :: raw :: c_long , pub __opaque : [ :: std :: os :: raw :: c_char ; 56usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_attr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_attr_t > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_attr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_attr_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_attr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_attr_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_attr_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_attr_t > ( ) ) ) . __opaque as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_attr_t ) , "::" , stringify ! ( __opaque ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _opaque_pthread_cond_t { pub __sig : :: std :: os :: raw :: c_long , pub __opaque : [ :: std :: os :: raw :: c_char ; 40usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_cond_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_cond_t > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_cond_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_cond_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_cond_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_cond_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_cond_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_cond_t > ( ) ) ) . __opaque as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_cond_t ) , "::" , stringify ! ( __opaque ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _opaque_pthread_condattr_t { pub __sig : :: std :: os :: raw :: c_long , pub __opaque : [ :: std :: os :: raw :: c_char ; 8usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_condattr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_condattr_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_condattr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_condattr_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_condattr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_condattr_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_condattr_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_condattr_t > ( ) ) ) . __opaque as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_condattr_t ) , "::" , stringify ! ( __opaque ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _opaque_pthread_mutex_t { pub __sig : :: std :: os :: raw :: c_long , pub __opaque : [ :: std :: os :: raw :: c_char ; 56usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_mutex_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_mutex_t > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_mutex_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_mutex_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_mutex_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_mutex_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_mutex_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_mutex_t > ( ) ) ) . __opaque as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_mutex_t ) , "::" , stringify ! ( __opaque ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _opaque_pthread_mutexattr_t { pub __sig : :: std :: os :: raw :: c_long , pub __opaque : [ :: std :: os :: raw :: c_char ; 8usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_mutexattr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_mutexattr_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_mutexattr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_mutexattr_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_mutexattr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_mutexattr_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_mutexattr_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_mutexattr_t > ( ) ) ) . __opaque as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_mutexattr_t ) , "::" , stringify ! ( __opaque ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _opaque_pthread_once_t { pub __sig : :: std :: os :: raw :: c_long , pub __opaque : [ :: std :: os :: raw :: c_char ; 8usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_once_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_once_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_once_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_once_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_once_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_once_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_once_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_once_t > ( ) ) ) . __opaque as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_once_t ) , "::" , stringify ! ( __opaque ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _opaque_pthread_rwlock_t { pub __sig : :: std :: os :: raw :: c_long , pub __opaque : [ :: std :: os :: raw :: c_char ; 192usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_rwlock_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_rwlock_t > ( ) , 200usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_rwlock_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_rwlock_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_rwlock_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_rwlock_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_rwlock_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_rwlock_t > ( ) ) ) . __opaque as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_rwlock_t ) , "::" , stringify ! ( __opaque ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _opaque_pthread_rwlockattr_t { pub __sig : :: std :: os :: raw :: c_long , pub __opaque : [ :: std :: os :: raw :: c_char ; 16usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_rwlockattr_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_rwlockattr_t > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_rwlockattr_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_rwlockattr_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_rwlockattr_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_rwlockattr_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_rwlockattr_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_rwlockattr_t > ( ) ) ) . __opaque as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_rwlockattr_t ) , "::" , stringify ! ( __opaque ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct _opaque_pthread_t { pub __sig : :: std :: os :: raw :: c_long , pub __cleanup_stack : * mut __darwin_pthread_handler_rec , pub __opaque : [ :: std :: os :: raw :: c_char ; 8176usize ] , } # [ test ] fn bindgen_test_layout__opaque_pthread_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < _opaque_pthread_t > ( ) , 8192usize , concat ! ( "Size of: " , stringify ! ( _opaque_pthread_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < _opaque_pthread_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( _opaque_pthread_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_t > ( ) ) ) . __sig as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_t ) , "::" , stringify ! ( __sig ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_t > ( ) ) ) . __cleanup_stack as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_t ) , "::" , stringify ! ( __cleanup_stack ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < _opaque_pthread_t > ( ) ) ) . __opaque as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( _opaque_pthread_t ) , "::" , stringify ! ( __opaque ) ) ) ; } pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t ; pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t ; pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t ; pub type __darwin_pthread_key_t = :: std :: os :: raw :: c_ulong ; pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t ; pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t ; pub type __darwin_pthread_once_t = _opaque_pthread_once_t ; pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t ; pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t ; pub type __darwin_pthread_t = * mut _opaque_pthread_t ; pub type u_int8_t = :: std :: os :: raw :: c_uchar ; pub type u_int16_t = :: std :: os :: raw :: c_ushort ; pub type u_int32_t = :: std :: os :: raw :: c_uint ; pub type u_int64_t = :: std :: os :: raw :: c_ulonglong ; pub type register_t = i64 ; pub type user_addr_t = u_int64_t ; pub type user_size_t = u_int64_t ; pub type user_ssize_t = i64 ; pub type user_long_t = i64 ; pub type user_ulong_t = u_int64_t ; pub type user_time_t = i64 ; pub type user_off_t = i64 ; pub type syscall_arg_t = u_int64_t ; pub type intmax_t = :: std :: os :: raw :: c_long ; pub type uintmax_t = :: std :: os :: raw :: c_ulong ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union nettle_block16 { pub b : [ u8 ; 16usize ] , pub w : [ :: std :: os :: raw :: c_ulong ; 2usize ] , _bindgen_union_align : [ u64 ; 2usize ] , } # [ test ] fn bindgen_test_layout_nettle_block16 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < nettle_block16 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( nettle_block16 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < nettle_block16 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( nettle_block16 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_block16 > ( ) ) ) . b as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( nettle_block16 ) , "::" , stringify ! ( b ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_block16 > ( ) ) ) . w as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( nettle_block16 ) , "::" , stringify ! ( w ) ) ) ; } pub type nettle_random_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , length : usize , dst : * mut u8 ) > ; pub type nettle_progress_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , c : :: std :: os :: raw :: c_int ) > ; pub type nettle_realloc_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , p : * mut :: std :: os :: raw :: c_void , length : usize ) -> * mut :: std :: os :: raw :: c_void > ; pub type nettle_set_key_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , key : * const u8 ) > ; pub type nettle_cipher_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * const :: std :: os :: raw :: c_void , length : usize , dst : * mut u8 , src : * const u8 ) > ; pub type nettle_crypt_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , length : usize , dst : * mut u8 , src : * const u8 ) > ; pub type nettle_hash_init_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void ) > ; pub type nettle_hash_update_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , length : usize , src : * const u8 ) > ; pub type nettle_hash_digest_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , length : usize , dst : * mut u8 ) > ; pub type nettle_armor_length_func = :: std :: option :: Option < unsafe extern "C" fn ( length : usize ) -> usize > ; pub type nettle_armor_init_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void ) > ; pub type nettle_armor_encode_update_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , dst : * mut :: std :: os :: raw :: c_char , src_length : usize , src : * const u8 ) -> usize > ; pub type nettle_armor_encode_final_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , dst : * mut :: std :: os :: raw :: c_char ) -> usize > ; pub type nettle_armor_decode_update_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void , dst_length : * mut usize , dst : * mut u8 , src_length : usize , src : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int > ; pub type nettle_armor_decode_final_func = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct aes_ctx { pub rounds : :: std :: os :: raw :: c_uint , pub keys : [ u32 ; 60usize ] , } # [ test ] fn bindgen_test_layout_aes_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < aes_ctx > ( ) , 244usize , concat ! ( "Size of: " , stringify ! ( aes_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < aes_ctx > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( aes_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < aes_ctx > ( ) ) ) . rounds as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( aes_ctx ) , "::" , stringify ! ( rounds ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < aes_ctx > ( ) ) ) . keys as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( aes_ctx ) , "::" , stringify ! ( keys ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes_set_encrypt_key" ] pub fn nettle_aes_set_encrypt_key ( ctx : * mut aes_ctx , length : usize , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes_set_decrypt_key" ] pub fn nettle_aes_set_decrypt_key ( ctx : * mut aes_ctx , length : usize , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes_invert_key" ] pub fn nettle_aes_invert_key ( dst : * mut aes_ctx , src : * const aes_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes_encrypt" ] pub fn nettle_aes_encrypt ( ctx : * const aes_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes_decrypt" ] pub fn nettle_aes_decrypt ( ctx : * const aes_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct aes128_ctx { pub keys : [ u32 ; 44usize ] , } # [ test ] fn bindgen_test_layout_aes128_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < aes128_ctx > ( ) , 176usize , concat ! ( "Size of: " , stringify ! ( aes128_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < aes128_ctx > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( aes128_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < aes128_ctx > ( ) ) ) . keys as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( aes128_ctx ) , "::" , stringify ! ( keys ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes128_set_encrypt_key" ] pub fn nettle_aes128_set_encrypt_key ( ctx : * mut aes128_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes128_set_decrypt_key" ] pub fn nettle_aes128_set_decrypt_key ( ctx : * mut aes128_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes128_invert_key" ] pub fn nettle_aes128_invert_key ( dst : * mut aes128_ctx , src : * const aes128_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes128_encrypt" ] pub fn nettle_aes128_encrypt ( ctx : * const aes128_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes128_decrypt" ] pub fn nettle_aes128_decrypt ( ctx : * const aes128_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct aes192_ctx { pub keys : [ u32 ; 52usize ] , } # [ test ] fn bindgen_test_layout_aes192_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < aes192_ctx > ( ) , 208usize , concat ! ( "Size of: " , stringify ! ( aes192_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < aes192_ctx > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( aes192_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < aes192_ctx > ( ) ) ) . keys as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( aes192_ctx ) , "::" , stringify ! ( keys ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes192_set_encrypt_key" ] pub fn nettle_aes192_set_encrypt_key ( ctx : * mut aes192_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes192_set_decrypt_key" ] pub fn nettle_aes192_set_decrypt_key ( ctx : * mut aes192_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes192_invert_key" ] pub fn nettle_aes192_invert_key ( dst : * mut aes192_ctx , src : * const aes192_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes192_encrypt" ] pub fn nettle_aes192_encrypt ( ctx : * const aes192_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes192_decrypt" ] pub fn nettle_aes192_decrypt ( ctx : * const aes192_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct aes256_ctx { pub keys : [ u32 ; 60usize ] , } # [ test ] fn bindgen_test_layout_aes256_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < aes256_ctx > ( ) , 240usize , concat ! ( "Size of: " , stringify ! ( aes256_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < aes256_ctx > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( aes256_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < aes256_ctx > ( ) ) ) . keys as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( aes256_ctx ) , "::" , stringify ! ( keys ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes256_set_encrypt_key" ] pub fn nettle_aes256_set_encrypt_key ( ctx : * mut aes256_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes256_set_decrypt_key" ] pub fn nettle_aes256_set_decrypt_key ( ctx : * mut aes256_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes256_invert_key" ] pub fn nettle_aes256_invert_key ( dst : * mut aes256_ctx , src : * const aes256_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes256_encrypt" ] pub fn nettle_aes256_encrypt ( ctx : * const aes256_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aes256_decrypt" ] pub fn nettle_aes256_decrypt ( ctx : * const aes256_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct arcfour_ctx { pub S : [ u8 ; 256usize ] , pub i : u8 , pub j : u8 , } # [ test ] fn bindgen_test_layout_arcfour_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < arcfour_ctx > ( ) , 258usize , concat ! ( "Size of: " , stringify ! ( arcfour_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < arcfour_ctx > ( ) , 1usize , concat ! ( "Alignment of " , stringify ! ( arcfour_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < arcfour_ctx > ( ) ) ) . S as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( arcfour_ctx ) , "::" , stringify ! ( S ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < arcfour_ctx > ( ) ) ) . i as * const _ as usize } , 256usize , concat ! ( "Offset of field: " , stringify ! ( arcfour_ctx ) , "::" , stringify ! ( i ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < arcfour_ctx > ( ) ) ) . j as * const _ as usize } , 257usize , concat ! ( "Offset of field: " , stringify ! ( arcfour_ctx ) , "::" , stringify ! ( j ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arcfour_set_key" ] pub fn nettle_arcfour_set_key ( ctx : * mut arcfour_ctx , length : usize , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arcfour128_set_key" ] pub fn nettle_arcfour128_set_key ( ctx : * mut arcfour_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arcfour_crypt" ] pub fn nettle_arcfour_crypt ( ctx : * mut arcfour_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct arctwo_ctx { pub S : [ u16 ; 64usize ] , } # [ test ] fn bindgen_test_layout_arctwo_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < arctwo_ctx > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( arctwo_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < arctwo_ctx > ( ) , 2usize , concat ! ( "Alignment of " , stringify ! ( arctwo_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < arctwo_ctx > ( ) ) ) . S as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( arctwo_ctx ) , "::" , stringify ! ( S ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo_set_key_ekb" ] pub fn nettle_arctwo_set_key_ekb ( ctx : * mut arctwo_ctx , length : usize , key : * const u8 , ekb : :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo_set_key" ] pub fn nettle_arctwo_set_key ( ctx : * mut arctwo_ctx , length : usize , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo40_set_key" ] pub fn nettle_arctwo40_set_key ( ctx : * mut arctwo_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo64_set_key" ] pub fn nettle_arctwo64_set_key ( ctx : * mut arctwo_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo128_set_key" ] pub fn nettle_arctwo128_set_key ( ctx : * mut arctwo_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo_set_key_gutmann" ] pub fn nettle_arctwo_set_key_gutmann ( ctx : * mut arctwo_ctx , length : usize , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo128_set_key_gutmann" ] pub fn nettle_arctwo128_set_key_gutmann ( ctx : * mut arctwo_ctx , key : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo_encrypt" ] pub fn nettle_arctwo_encrypt ( ctx : * mut arctwo_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo_decrypt" ] pub fn nettle_arctwo_decrypt ( ctx : * mut arctwo_ctx , length : usize , dst : * mut u8 , src : * const u8 ) ; } pub const ASN1_TYPE_CONSTRUCTED : _bindgen_ty_1 = 4096 ; pub const ASN1_CLASS_UNIVERSAL : _bindgen_ty_1 = 0 ; pub const ASN1_CLASS_APPLICATION : _bindgen_ty_1 = 8192 ; pub const ASN1_CLASS_CONTEXT_SPECIFIC : _bindgen_ty_1 = 16384 ; pub const ASN1_CLASS_PRIVATE : _bindgen_ty_1 = 24576 ; pub const ASN1_CLASS_MASK : _bindgen_ty_1 = 24576 ; pub const ASN1_CLASS_SHIFT : _bindgen_ty_1 = 13 ; pub type _bindgen_ty_1 = u32 ; pub const asn1_type_ASN1_BOOLEAN : asn1_type = 1 ; pub const asn1_type_ASN1_INTEGER : asn1_type = 2 ; pub const asn1_type_ASN1_BITSTRING : asn1_type = 3 ; pub const asn1_type_ASN1_OCTETSTRING : asn1_type = 4 ; pub const asn1_type_ASN1_NULL : asn1_type = 5 ; pub const asn1_type_ASN1_IDENTIFIER : asn1_type = 6 ; pub const asn1_type_ASN1_REAL : asn1_type = 9 ; pub const asn1_type_ASN1_ENUMERATED : asn1_type = 10 ; pub const asn1_type_ASN1_UTF8STRING : asn1_type = 12 ; pub const asn1_type_ASN1_SEQUENCE : asn1_type = 4112 ; pub const asn1_type_ASN1_SET : asn1_type = 4113 ; pub const asn1_type_ASN1_PRINTABLESTRING : asn1_type = 19 ; pub const asn1_type_ASN1_TELETEXSTRING : asn1_type = 20 ; pub const asn1_type_ASN1_IA5STRING : asn1_type = 22 ; pub const asn1_type_ASN1_UTC : asn1_type = 23 ; pub const asn1_type_ASN1_UNIVERSALSTRING : asn1_type = 28 ; pub const asn1_type_ASN1_BMPSTRING : asn1_type = 30 ; pub type asn1_type = u32 ; pub const asn1_iterator_result_ASN1_ITERATOR_ERROR : asn1_iterator_result = 0 ; pub const asn1_iterator_result_ASN1_ITERATOR_PRIMITIVE : asn1_iterator_result = 1 ; pub const asn1_iterator_result_ASN1_ITERATOR_CONSTRUCTED : asn1_iterator_result = 2 ; pub const asn1_iterator_result_ASN1_ITERATOR_END : asn1_iterator_result = 3 ; pub type asn1_iterator_result = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct asn1_der_iterator { pub buffer_length : usize , pub buffer : * const u8 , pub pos : usize , pub type_ : asn1_type , pub length : usize , pub data : * const u8 , } # [ test ] fn bindgen_test_layout_asn1_der_iterator ( ) { assert_eq ! ( :: std :: mem :: size_of :: < asn1_der_iterator > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( asn1_der_iterator ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < asn1_der_iterator > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( asn1_der_iterator ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < asn1_der_iterator > ( ) ) ) . buffer_length as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( asn1_der_iterator ) , "::" , stringify ! ( buffer_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < asn1_der_iterator > ( ) ) ) . buffer as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( asn1_der_iterator ) , "::" , stringify ! ( buffer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < asn1_der_iterator > ( ) ) ) . pos as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( asn1_der_iterator ) , "::" , stringify ! ( pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < asn1_der_iterator > ( ) ) ) . type_ as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( asn1_der_iterator ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < asn1_der_iterator > ( ) ) ) . length as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( asn1_der_iterator ) , "::" , stringify ! ( length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < asn1_der_iterator > ( ) ) ) . data as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( asn1_der_iterator ) , "::" , stringify ! ( data ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_asn1_der_iterator_first" ] pub fn nettle_asn1_der_iterator_first ( iterator : * mut asn1_der_iterator , length : usize , input : * const u8 ) -> asn1_iterator_result ; } extern "C" { # [ link_name = "\u{1}_nettle_asn1_der_iterator_next" ] pub fn nettle_asn1_der_iterator_next ( iterator : * mut asn1_der_iterator ) -> asn1_iterator_result ; } extern "C" { # [ link_name = "\u{1}_nettle_asn1_der_decode_constructed" ] pub fn nettle_asn1_der_decode_constructed ( i : * mut asn1_der_iterator , contents : * mut asn1_der_iterator ) -> asn1_iterator_result ; } extern "C" { # [ link_name = "\u{1}_nettle_asn1_der_decode_constructed_last" ] pub fn nettle_asn1_der_decode_constructed_last ( i : * mut asn1_der_iterator ) -> asn1_iterator_result ; } extern "C" { # [ link_name = "\u{1}_nettle_asn1_der_decode_bitstring" ] pub fn nettle_asn1_der_decode_bitstring ( i : * mut asn1_der_iterator , contents : * mut asn1_der_iterator ) -> asn1_iterator_result ; } extern "C" { # [ link_name = "\u{1}_nettle_asn1_der_decode_bitstring_last" ] pub fn nettle_asn1_der_decode_bitstring_last ( i : * mut asn1_der_iterator ) -> asn1_iterator_result ; } extern "C" { # [ link_name = "\u{1}_nettle_asn1_der_get_uint32" ] pub fn nettle_asn1_der_get_uint32 ( i : * mut asn1_der_iterator , x : * mut u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}_nettle_base16_encode_single" ] pub fn nettle_base16_encode_single ( dst : * mut :: std :: os :: raw :: c_char , src : u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base16_encode_update" ] pub fn nettle_base16_encode_update ( dst : * mut :: std :: os :: raw :: c_char , length : usize , src : * const u8 ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct base16_decode_ctx { pub word : :: std :: os :: raw :: c_uchar , pub bits : :: std :: os :: raw :: c_uchar , } # [ test ] fn bindgen_test_layout_base16_decode_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < base16_decode_ctx > ( ) , 2usize , concat ! ( "Size of: " , stringify ! ( base16_decode_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < base16_decode_ctx > ( ) , 1usize , concat ! ( "Alignment of " , stringify ! ( base16_decode_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base16_decode_ctx > ( ) ) ) . word as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( base16_decode_ctx ) , "::" , stringify ! ( word ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base16_decode_ctx > ( ) ) ) . bits as * const _ as usize } , 1usize , concat ! ( "Offset of field: " , stringify ! ( base16_decode_ctx ) , "::" , stringify ! ( bits ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base16_decode_init" ] pub fn nettle_base16_decode_init ( ctx : * mut base16_decode_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base16_decode_single" ] pub fn nettle_base16_decode_single ( ctx : * mut base16_decode_ctx , dst : * mut u8 , src : :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}_nettle_base16_decode_update" ] pub fn nettle_base16_decode_update ( ctx : * mut base16_decode_ctx , dst_length : * mut usize , dst : * mut u8 , src_length : usize , src : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}_nettle_base16_decode_final" ] pub fn nettle_base16_decode_final ( ctx : * mut base16_decode_ctx ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct base64_encode_ctx { pub alphabet : * const :: std :: os :: raw :: c_char , pub word : :: std :: os :: raw :: c_ushort , pub bits : :: std :: os :: raw :: c_uchar , } # [ test ] fn bindgen_test_layout_base64_encode_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < base64_encode_ctx > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( base64_encode_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < base64_encode_ctx > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( base64_encode_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base64_encode_ctx > ( ) ) ) . alphabet as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( base64_encode_ctx ) , "::" , stringify ! ( alphabet ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base64_encode_ctx > ( ) ) ) . word as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( base64_encode_ctx ) , "::" , stringify ! ( word ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base64_encode_ctx > ( ) ) ) . bits as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( base64_encode_ctx ) , "::" , stringify ! ( bits ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_encode_init" ] pub fn nettle_base64_encode_init ( ctx : * mut base64_encode_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base64url_encode_init" ] pub fn nettle_base64url_encode_init ( ctx : * mut base64_encode_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_encode_single" ] pub fn nettle_base64_encode_single ( ctx : * mut base64_encode_ctx , dst : * mut :: std :: os :: raw :: c_char , src : u8 ) -> usize ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_encode_update" ] pub fn nettle_base64_encode_update ( ctx : * mut base64_encode_ctx , dst : * mut :: std :: os :: raw :: c_char , length : usize , src : * const u8 ) -> usize ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_encode_final" ] pub fn nettle_base64_encode_final ( ctx : * mut base64_encode_ctx , dst : * mut :: std :: os :: raw :: c_char ) -> usize ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_encode_raw" ] pub fn nettle_base64_encode_raw ( dst : * mut :: std :: os :: raw :: c_char , length : usize , src : * const u8 ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_encode_group" ] pub fn nettle_base64_encode_group ( dst : * mut :: std :: os :: raw :: c_char , group : u32 ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct base64_decode_ctx { pub table : * const :: std :: os :: raw :: c_schar , pub word : :: std :: os :: raw :: c_ushort , pub bits : :: std :: os :: raw :: c_uchar , pub padding : :: std :: os :: raw :: c_uchar , } # [ test ] fn bindgen_test_layout_base64_decode_ctx ( ) { assert_eq ! ( :: std :: mem :: size_of :: < base64_decode_ctx > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( base64_decode_ctx ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < base64_decode_ctx > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( base64_decode_ctx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base64_decode_ctx > ( ) ) ) . table as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( base64_decode_ctx ) , "::" , stringify ! ( table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base64_decode_ctx > ( ) ) ) . word as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( base64_decode_ctx ) , "::" , stringify ! ( word ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base64_decode_ctx > ( ) ) ) . bits as * const _ as usize } , 10usize , concat ! ( "Offset of field: " , stringify ! ( base64_decode_ctx ) , "::" , stringify ! ( bits ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < base64_decode_ctx > ( ) ) ) . padding as * const _ as usize } , 11usize , concat ! ( "Offset of field: " , stringify ! ( base64_decode_ctx ) , "::" , stringify ! ( padding ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_decode_init" ] pub fn nettle_base64_decode_init ( ctx : * mut base64_decode_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base64url_decode_init" ] pub fn nettle_base64url_decode_init ( ctx : * mut base64_decode_ctx ) ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_decode_single" ] pub fn nettle_base64_decode_single ( ctx : * mut base64_decode_ctx , dst : * mut u8 , src : :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_decode_update" ] pub fn nettle_base64_decode_update ( ctx : * mut base64_decode_ctx , dst_length : * mut usize , dst : * mut u8 , src_length : usize , src : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}_nettle_base64_decode_final" ] pub fn nettle_base64_decode_final ( ctx : * mut base64_decode_ctx ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct nettle_cipher { pub name : * const :: std :: os :: raw :: c_char , pub context_size : :: std :: os :: raw :: c_uint , pub block_size : :: std :: os :: raw :: c_uint , pub key_size : :: std :: os :: raw :: c_uint , pub set_encrypt_key : nettle_set_key_func , pub set_decrypt_key : nettle_set_key_func , pub encrypt : nettle_cipher_func , pub decrypt : nettle_cipher_func , } # [ test ] fn bindgen_test_layout_nettle_cipher ( ) { assert_eq ! ( :: std :: mem :: size_of :: < nettle_cipher > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( nettle_cipher ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < nettle_cipher > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( nettle_cipher ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_cipher > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( nettle_cipher ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_cipher > ( ) ) ) . context_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( nettle_cipher ) , "::" , stringify ! ( context_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_cipher > ( ) ) ) . block_size as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( nettle_cipher ) , "::" , stringify ! ( block_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_cipher > ( ) ) ) . key_size as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( nettle_cipher ) , "::" , stringify ! ( key_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_cipher > ( ) ) ) . set_encrypt_key as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( nettle_cipher ) , "::" , stringify ! ( set_encrypt_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_cipher > ( ) ) ) . set_decrypt_key as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( nettle_cipher ) , "::" , stringify ! ( set_decrypt_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_cipher > ( ) ) ) . encrypt as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( nettle_cipher ) , "::" , stringify ! ( encrypt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_cipher > ( ) ) ) . decrypt as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( nettle_cipher ) , "::" , stringify ! ( decrypt ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_ciphers" ] pub static mut nettle_ciphers : [ * const nettle_cipher ; 0usize ] ; } extern "C" { # [ link_name = "\u{1}_nettle_get_ciphers" ] pub fn nettle_get_ciphers ( ) -> * const * const nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_aes128" ] pub static nettle_aes128 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_aes192" ] pub static nettle_aes192 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_aes256" ] pub static nettle_aes256 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_camellia128" ] pub static nettle_camellia128 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_camellia192" ] pub static nettle_camellia192 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_camellia256" ] pub static nettle_camellia256 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_cast128" ] pub static nettle_cast128 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_serpent128" ] pub static nettle_serpent128 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_serpent192" ] pub static nettle_serpent192 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_serpent256" ] pub static nettle_serpent256 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_twofish128" ] pub static nettle_twofish128 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_twofish192" ] pub static nettle_twofish192 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_twofish256" ] pub static nettle_twofish256 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo40" ] pub static nettle_arctwo40 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo64" ] pub static nettle_arctwo64 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo128" ] pub static nettle_arctwo128 : nettle_cipher ; } extern "C" { # [ link_name = "\u{1}_nettle_arctwo_gutmann128" ] pub static nettle_arctwo_gutmann128 : nettle_cipher ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct nettle_hash { pub name : * const :: std :: os :: raw :: c_char , pub context_size : :: std :: os :: raw :: c_uint , pub digest_size : :: std :: os :: raw :: c_uint , pub block_size : :: std :: os :: raw :: c_uint , pub init : nettle_hash_init_func , pub update : nettle_hash_update_func , pub digest : nettle_hash_digest_func , } # [ test ] fn bindgen_test_layout_nettle_hash ( ) { assert_eq ! ( :: std :: mem :: size_of :: < nettle_hash > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( nettle_hash ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < nettle_hash > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( nettle_hash ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_hash > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( nettle_hash ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_hash > ( ) ) ) . context_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( nettle_hash ) , "::" , stringify ! ( context_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_hash > ( ) ) ) . digest_size as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( nettle_hash ) , "::" , stringify ! ( digest_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_hash > ( ) ) ) . block_size as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( nettle_hash ) , "::" , stringify ! ( block_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_hash > ( ) ) ) . init as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( nettle_hash ) , "::" , stringify ! ( init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_hash > ( ) ) ) . update as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( nettle_hash ) , "::" , stringify ! ( update ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_hash > ( ) ) ) . digest as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( nettle_hash ) , "::" , stringify ! ( digest ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_hashes" ] pub static mut nettle_hashes : [ * const nettle_hash ; 0usize ] ; } extern "C" { # [ link_name = "\u{1}_nettle_get_hashes" ] pub fn nettle_get_hashes ( ) -> * const * const nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_lookup_hash" ] pub fn nettle_lookup_hash ( name : * const :: std :: os :: raw :: c_char ) -> * const nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_md2" ] pub static nettle_md2 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_md4" ] pub static nettle_md4 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_md5" ] pub static nettle_md5 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_gosthash94" ] pub static nettle_gosthash94 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_ripemd160" ] pub static nettle_ripemd160 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha1" ] pub static nettle_sha1 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha224" ] pub static nettle_sha224 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha256" ] pub static nettle_sha256 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha384" ] pub static nettle_sha384 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha512" ] pub static nettle_sha512 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha512_224" ] pub static nettle_sha512_224 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha512_256" ] pub static nettle_sha512_256 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha3_224" ] pub static nettle_sha3_224 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha3_256" ] pub static nettle_sha3_256 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha3_384" ] pub static nettle_sha3_384 : nettle_hash ; } extern "C" { # [ link_name = "\u{1}_nettle_sha3_512" ] pub static nettle_sha3_512 : nettle_hash ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct nettle_aead { pub name : * const :: std :: os :: raw :: c_char , pub context_size : :: std :: os :: raw :: c_uint , pub block_size : :: std :: os :: raw :: c_uint , pub key_size : :: std :: os :: raw :: c_uint , pub nonce_size : :: std :: os :: raw :: c_uint , pub digest_size : :: std :: os :: raw :: c_uint , pub set_encrypt_key : nettle_set_key_func , pub set_decrypt_key : nettle_set_key_func , pub set_nonce : nettle_set_key_func , pub update : nettle_hash_update_func , pub encrypt : nettle_crypt_func , pub decrypt : nettle_crypt_func , pub digest : nettle_hash_digest_func , } # [ test ] fn bindgen_test_layout_nettle_aead ( ) { assert_eq ! ( :: std :: mem :: size_of :: < nettle_aead > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( nettle_aead ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < nettle_aead > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( nettle_aead ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . context_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( context_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . block_size as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( block_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . key_size as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( key_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . nonce_size as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( nonce_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . digest_size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( digest_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . set_encrypt_key as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( set_encrypt_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . set_decrypt_key as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( set_decrypt_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . set_nonce as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( set_nonce ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . update as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( update ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . encrypt as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( encrypt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . decrypt as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( decrypt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_aead > ( ) ) ) . digest as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( nettle_aead ) , "::" , stringify ! ( digest ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_aeads" ] pub static mut nettle_aeads : [ * const nettle_aead ; 0usize ] ; } extern "C" { # [ link_name = "\u{1}_nettle_get_aeads" ] pub fn nettle_get_aeads ( ) -> * const * const nettle_aead ; } extern "C" { # [ link_name = "\u{1}_nettle_gcm_aes128" ] pub static nettle_gcm_aes128 : nettle_aead ; } extern "C" { # [ link_name = "\u{1}_nettle_gcm_aes192" ] pub static nettle_gcm_aes192 : nettle_aead ; } extern "C" { # [ link_name = "\u{1}_nettle_gcm_aes256" ] pub static nettle_gcm_aes256 : nettle_aead ; } extern "C" { # [ link_name = "\u{1}_nettle_gcm_camellia128" ] pub static nettle_gcm_camellia128 : nettle_aead ; } extern "C" { # [ link_name = "\u{1}_nettle_gcm_camellia256" ] pub static nettle_gcm_camellia256 : nettle_aead ; } extern "C" { # [ link_name = "\u{1}_nettle_eax_aes128" ] pub static nettle_eax_aes128 : nettle_aead ; } extern "C" { # [ link_name = "\u{1}_nettle_chacha_poly1305" ] pub static nettle_chacha_poly1305 : nettle_aead ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct nettle_armor { pub name : * const :: std :: os :: raw :: c_char , pub encode_context_size : :: std :: os :: raw :: c_uint , pub decode_context_size : :: std :: os :: raw :: c_uint , pub encode_final_length : :: std :: os :: raw :: c_uint , pub encode_init : nettle_armor_init_func , pub encode_length : nettle_armor_length_func , pub encode_update : nettle_armor_encode_update_func , pub encode_final : nettle_armor_encode_final_func , pub decode_init : nettle_armor_init_func , pub decode_length : nettle_armor_length_func , pub decode_update : nettle_armor_decode_update_func , pub decode_final : nettle_armor_decode_final_func , } # [ test ] fn bindgen_test_layout_nettle_armor ( ) { assert_eq ! ( :: std :: mem :: size_of :: < nettle_armor > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( nettle_armor ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < nettle_armor > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( nettle_armor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . encode_context_size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( encode_context_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . decode_context_size as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( decode_context_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . encode_final_length as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( encode_final_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . encode_init as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( encode_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . encode_length as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( encode_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . encode_update as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( encode_update ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . encode_final as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( encode_final ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . decode_init as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( decode_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . decode_length as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( decode_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . decode_update as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( decode_update ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < nettle_armor > ( ) ) ) . decode_final as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( nettle_armor ) , "::" , stringify ! ( decode_final ) ) ) ; } extern "C" { # [ link_name = "\u{1}_nettle_armors" ] pub static mut nettle_armors : [ * const nettle_armor ; 0usize ] ; } extern "C" { # [ link_name = "\u{1}_nettle_get_armors" ] pub fn nettle_get_armors ( ) -> * const * const nettle_armor ; } extern "C" { # [ link_name = "\u{1}_nettle_base64" ] pub static nettle_base64 : nettle_armor ; } extern "C" { # [ link_name = "\u{1}_nettle_base64url" ] pub static nettle_base64url : nettle_armor ; } extern "C" { # [ link_name = "\u{1}_nettle_base16" ] pub static nettle_base16 : nettle_armor ; } extern "C" { # [ link_name = "\u{1}_nettle_version_major" ] pub fn nettle_version_major ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}_nettle_version_minor" ] pub fn nettle_version_minor ( ) -> :: std :: os :: raw :: c_int ; } pub type mp_limb_t = :: std :: os :: raw :: c_ulong ; pub type mp_limb_signed_t = :: std :: os :: raw :: c_long ; pub type mp_bitcnt_t = :: std :: os :: raw :: c_ulong ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __mpz_struct { pub _mp_alloc : :: std :: os :: raw :: c_int , pub _mp_size : :: std :: os :: raw :: c_int , pub _mp_d : * mut mp_limb_t , } # [ test ] fn bindgen_test_layout___mpz_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mpz_struct > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( __mpz_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mpz_struct > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __mpz_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpz_struct > ( ) ) ) . _mp_alloc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mpz_struct ) , "::" , stringify ! ( _mp_alloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpz_struct > ( ) ) ) . _mp_size as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __mpz_struct ) , "::" , stringify ! ( _mp_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpz_struct > ( ) ) ) . _mp_d as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __mpz_struct ) , "::" , stringify ! ( _mp_d ) ) ) ; } pub type MP_INT = __mpz_struct ; pub type mpz_t = [ __mpz_struct ; 1usize ] ; pub type mp_ptr = * mut mp_limb_t ; pub type mp_srcptr = * const mp_limb_t ; pub type mp_size_t = :: std :: os :: raw :: c_long ; pub type mp_exp_t = :: std :: os :: raw :: c_long ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __mpq_struct { pub _mp_num : __mpz_struct , pub _mp_den : __mpz_struct , } # [ test ] fn bindgen_test_layout___mpq_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mpq_struct > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __mpq_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mpq_struct > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __mpq_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpq_struct > ( ) ) ) . _mp_num as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mpq_struct ) , "::" , stringify ! ( _mp_num ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpq_struct > ( ) ) ) . _mp_den as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __mpq_struct ) , "::" , stringify ! ( _mp_den ) ) ) ; } pub type MP_RAT = __mpq_struct ; pub type mpq_t = [ __mpq_struct ; 1usize ] ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __mpf_struct { pub _mp_prec : :: std :: os :: raw :: c_int , pub _mp_size : :: std :: os :: raw :: c_int , pub _mp_exp : mp_exp_t , pub _mp_d : * mut mp_limb_t , } # [ test ] fn bindgen_test_layout___mpf_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __mpf_struct > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __mpf_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __mpf_struct > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __mpf_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpf_struct > ( ) ) ) . _mp_prec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __mpf_struct ) , "::" , stringify ! ( _mp_prec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpf_struct > ( ) ) ) . _mp_size as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __mpf_struct ) , "::" , stringify ! ( _mp_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpf_struct > ( ) ) ) . _mp_exp as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __mpf_struct ) , "::" , stringify ! ( _mp_exp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __mpf_struct > ( ) ) ) . _mp_d as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __mpf_struct ) , "::" , stringify ! ( _mp_d ) ) ) ; } pub type mpf_t = [ __mpf_struct ; 1usize ] ; pub const gmp_randalg_t_GMP_RAND_ALG_DEFAULT : gmp_randalg_t = 0 ; pub const gmp_randalg_t_GMP_RAND_ALG_LC : gmp_randalg_t = 0 ; pub type gmp_randalg_t = u32 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct __gmp_randstate_struct { pub _mp_seed : mpz_t , pub _mp_alg : gmp_randalg_t , pub _mp_algdata : __gmp_randstate_struct__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union __gmp_randstate_struct__bindgen_ty_1 { pub _mp_lc : * mut :: std :: os :: raw :: c_void , _bindgen_union_align : u64 , } # [ test ] fn bindgen_test_layout___gmp_randstate_struct__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __gmp_randstate_struct__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __gmp_randstate_struct__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __gmp_randstate_struct__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __gmp_randstate_struct__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __gmp_randstate_struct__bindgen_ty_1 > ( ) ) ) . _mp_lc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __gmp_randstate_struct__bindgen_ty_1 ) , "::" , stringify ! ( _mp_lc ) ) ) ; } # [ test ] fn bindgen_test_layout___gmp_randstate_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __gmp_randstate_struct > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( __gmp_randstate_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __gmp_randstate_struct > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __gmp_randstate_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __gmp_randstate_struct > ( ) ) ) . _mp_seed as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __gmp_randstate_struct ) , "::" , stringify ! ( _mp_seed ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __gmp_randstate_struct > ( ) ) ) . _mp_alg as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __gmp_randstate_struct ) , "::" , stringify ! ( _mp_alg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __gmp_randstate_struct > ( ) ) ) . _mp_algdata as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( __gmp_randstate_struct ) , "::" , stringify ! ( _mp_algdata ) ) ) ; } pub type gmp_randstate_t = [ __gmp_randstate_struct ; 1usize ] ; pub type mpz_srcptr = * const __mpz_struct ; pub type mpz_ptr = * mut __mpz_struct ; pub type mpf_srcptr = * const __mpf_struct ; pub type mpf_ptr = * mut __mpf_struct ; pub type mpq_srcptr = * const __mpq_struct ; pub type mpq_ptr = * mut __mpq_struct ; extern "C" { # [ link_name = "\u{1}___gmp_set_memory_functions" ] pub fn __gmp_set_memory_functions ( arg1 : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : usize ) -> * mut :: std :: os :: raw :: c_void > , arg2 : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : usize , arg3 : usize ) -> * mut :: std :: os :: raw :: c_void > , arg3 : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : usize ) > ) ; } extern "C" { # [ link_name = "\u{1}___gmp_get_memory_functions" ] pub fn __gmp_get_memory_functions ( arg1 : * mut :: std :: option :: Option < unsafe extern "C" fn ( arg1 : usize ) -> * mut :: std :: os :: raw :: c_void > , arg2 : * mut :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : usize , arg3 : usize ) -> * mut :: std :: os :: raw :: c_void > , arg3 : * mut :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : usize ) > ) ; } extern "C" { # [ link_name = "\u{1}___gmp_bits_per_limb" ] pub static __gmp_bits_per_limb : :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmp_errno" ] pub static mut __gmp_errno : :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmp_version" ] pub static __gmp_version : * const :: std :: os :: raw :: c_char ; } extern "C" { # [ link_name = "\u{1}___gmp_randinit" ] pub fn __gmp_randinit ( arg1 : * mut __gmp_randstate_struct , arg2 : gmp_randalg_t , ... ) ; } extern "C" { # [ link_name = "\u{1}___gmp_randinit_default" ] pub fn __gmp_randinit_default ( arg1 : * mut __gmp_randstate_struct ) ; } extern "C" { # [ link_name = "\u{1}___gmp_randinit_lc_2exp" ] pub fn __gmp_randinit_lc_2exp ( arg1 : * mut __gmp_randstate_struct , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong , arg4 : mp_bitcnt_t ) ; } extern "C" { # [ link_name = "\u{1}___gmp_randinit_lc_2exp_size" ] pub fn __gmp_randinit_lc_2exp_size ( arg1 : * mut __gmp_randstate_struct , arg2 : mp_bitcnt_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmp_randinit_mt" ] pub fn __gmp_randinit_mt ( arg1 : * mut __gmp_randstate_struct ) ; } extern "C" { # [ link_name = "\u{1}___gmp_randinit_set" ] pub fn __gmp_randinit_set ( arg1 : * mut __gmp_randstate_struct , arg2 : * const __gmp_randstate_struct ) ; } extern "C" { # [ link_name = "\u{1}___gmp_randseed" ] pub fn __gmp_randseed ( arg1 : * mut __gmp_randstate_struct , arg2 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmp_randseed_ui" ] pub fn __gmp_randseed_ui ( arg1 : * mut __gmp_randstate_struct , arg2 : :: std :: os :: raw :: c_ulong ) ; } extern "C" { # [ link_name = "\u{1}___gmp_randclear" ] pub fn __gmp_randclear ( arg1 : * mut __gmp_randstate_struct ) ; } extern "C" { # [ link_name = "\u{1}___gmp_urandomb_ui" ] pub fn __gmp_urandomb_ui ( arg1 : * mut __gmp_randstate_struct , arg2 : :: std :: os :: raw :: c_ulong ) -> :: std :: os :: raw :: c_ulong ; } extern "C" { # [ link_name = "\u{1}___gmp_urandomm_ui" ] pub fn __gmp_urandomm_ui ( arg1 : * mut __gmp_randstate_struct , arg2 : :: std :: os :: raw :: c_ulong ) -> :: std :: os :: raw :: c_ulong ; } extern "C" { # [ link_name = "\u{1}___gmp_asprintf" ] pub fn __gmp_asprintf ( arg1 : * mut * mut :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmp_printf" ] pub fn __gmp_printf ( arg1 : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmp_snprintf" ] pub fn __gmp_snprintf ( arg1 : * mut :: std :: os :: raw :: c_char , arg2 : usize , arg3 : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmp_sprintf" ] pub fn __gmp_sprintf ( arg1 : * mut :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmp_scanf" ] pub fn __gmp_scanf ( arg1 : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmp_sscanf" ] pub fn __gmp_sscanf ( arg1 : * const :: std :: os :: raw :: c_char , arg2 : * const :: std :: os :: raw :: c_char , ... ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmpz_realloc" ] pub fn __gmpz_realloc ( arg1 : mpz_ptr , arg2 : mp_size_t ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { # [ link_name = "\u{1}___gmpz_abs" ] pub fn __gmpz_abs ( arg1 : mpz_ptr , arg2 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_add" ] pub fn __gmpz_add ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_add_ui" ] pub fn __gmpz_add_ui ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_addmul" ] pub fn __gmpz_addmul ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_addmul_ui" ] pub fn __gmpz_addmul_ui ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_and" ] pub fn __gmpz_and ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_array_init" ] pub fn __gmpz_array_init ( arg1 : mpz_ptr , arg2 : mp_size_t , arg3 : mp_size_t ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_bin_ui" ] pub fn __gmpz_bin_ui ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_bin_uiui" ] pub fn __gmpz_bin_uiui ( arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : :: std :: os :: raw :: c_ulong ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_q" ] pub fn __gmpz_cdiv_q ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_q_2exp" ] pub fn __gmpz_cdiv_q_2exp ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_q_ui" ] pub fn __gmpz_cdiv_q_ui ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong ) -> :: std :: os :: raw :: c_ulong ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_qr" ] pub fn __gmpz_cdiv_qr ( arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr , arg4 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_qr_ui" ] pub fn __gmpz_cdiv_qr_ui ( arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr , arg4 : :: std :: os :: raw :: c_ulong ) -> :: std :: os :: raw :: c_ulong ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_r" ] pub fn __gmpz_cdiv_r ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_r_2exp" ] pub fn __gmpz_cdiv_r_2exp ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_r_ui" ] pub fn __gmpz_cdiv_r_ui ( arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong ) -> :: std :: os :: raw :: c_ulong ; } extern "C" { # [ link_name = "\u{1}___gmpz_cdiv_ui" ] pub fn __gmpz_cdiv_ui ( arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong ) -> :: std :: os :: raw :: c_ulong ; } extern "C" { # [ link_name = "\u{1}___gmpz_clear" ] pub fn __gmpz_clear ( arg1 : mpz_ptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_clears" ] pub fn __gmpz_clears ( arg1 : mpz_ptr , ... ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_clrbit" ] pub fn __gmpz_clrbit ( arg1 : mpz_ptr , arg2 : mp_bitcnt_t ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_cmp" ] pub fn __gmpz_cmp ( arg1 : mpz_srcptr , arg2 : mpz_srcptr ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmpz_cmp_d" ] pub fn __gmpz_cmp_d ( arg1 : mpz_srcptr , arg2 : f64 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmpz_cmp_si" ] pub fn __gmpz_cmp_si ( arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_long ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmpz_cmp_ui" ] pub fn __gmpz_cmp_ui ( arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmpz_cmpabs" ] pub fn __gmpz_cmpabs ( arg1 : mpz_srcptr , arg2 : mpz_srcptr ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmpz_cmpabs_d" ] pub fn __gmpz_cmpabs_d ( arg1 : mpz_srcptr , arg2 : f64 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmpz_cmpabs_ui" ] pub fn __gmpz_cmpabs_ui ( arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ link_name = "\u{1}___gmpz_com" ] pub fn __gmpz_com ( arg1 : mpz_ptr , arg2 : mpz_srcptr ) ; } extern "C" { # [ link_name = "\u{1}___gmpz_combit" ] pub fn __gmpz_combit ( arg1 : mpz_ptr , arg2 : mp_bitcnt_t ) ;