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

pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 31 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __LONG_DOUBLE_USES_FLOAT128 : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const __TIMESIZE : u32 = 64 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const 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 = 7 ; 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 _LIBC_LIMITS_H_ : u32 = 1 ; pub const MB_LEN_MAX : u32 = 16 ; pub const _BITS_POSIX1_LIM_H : u32 = 1 ; pub const _POSIX_AIO_LISTIO_MAX : u32 = 2 ; pub const _POSIX_AIO_MAX : u32 = 1 ; pub const _POSIX_ARG_MAX : u32 = 4096 ; pub const _POSIX_CHILD_MAX : u32 = 25 ; pub const _POSIX_DELAYTIMER_MAX : u32 = 32 ; pub const _POSIX_HOST_NAME_MAX : u32 = 255 ; pub const _POSIX_LINK_MAX : u32 = 8 ; pub const _POSIX_LOGIN_NAME_MAX : u32 = 9 ; pub const _POSIX_MAX_CANON : u32 = 255 ; pub const _POSIX_MAX_INPUT : u32 = 255 ; pub const _POSIX_MQ_OPEN_MAX : u32 = 8 ; pub const _POSIX_MQ_PRIO_MAX : u32 = 32 ; pub const _POSIX_NAME_MAX : u32 = 14 ; pub const _POSIX_NGROUPS_MAX : u32 = 8 ; pub const _POSIX_OPEN_MAX : u32 = 20 ; pub const _POSIX_PATH_MAX : u32 = 256 ; pub const _POSIX_PIPE_BUF : u32 = 512 ; pub const _POSIX_RE_DUP_MAX : u32 = 255 ; pub const _POSIX_RTSIG_MAX : u32 = 8 ; pub const _POSIX_SEM_NSEMS_MAX : u32 = 256 ; pub const _POSIX_SEM_VALUE_MAX : u32 = 32767 ; pub const _POSIX_SIGQUEUE_MAX : u32 = 32 ; pub const _POSIX_SSIZE_MAX : u32 = 32767 ; pub const _POSIX_STREAM_MAX : u32 = 8 ; pub const _POSIX_SYMLINK_MAX : u32 = 255 ; pub const _POSIX_SYMLOOP_MAX : u32 = 8 ; pub const _POSIX_TIMER_MAX : u32 = 32 ; pub const _POSIX_TTY_NAME_MAX : u32 = 9 ; pub const _POSIX_TZNAME_MAX : u32 = 6 ; pub const _POSIX_CLOCKRES_MIN : u32 = 20000000 ; pub const NR_OPEN : u32 = 1024 ; pub const NGROUPS_MAX : u32 = 65536 ; pub const ARG_MAX : u32 = 131072 ; pub const LINK_MAX : u32 = 127 ; pub const MAX_CANON : u32 = 255 ; pub const MAX_INPUT : u32 = 255 ; pub const NAME_MAX : u32 = 255 ; pub const PATH_MAX : u32 = 4096 ; pub const PIPE_BUF : u32 = 4096 ; pub const XATTR_NAME_MAX : u32 = 255 ; pub const XATTR_SIZE_MAX : u32 = 65536 ; pub const XATTR_LIST_MAX : u32 = 65536 ; pub const RTSIG_MAX : u32 = 32 ; pub const _POSIX_THREAD_KEYS_MAX : u32 = 128 ; pub const PTHREAD_KEYS_MAX : u32 = 1024 ; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const PTHREAD_DESTRUCTOR_ITERATIONS : u32 = 4 ; pub const _POSIX_THREAD_THREADS_MAX : u32 = 64 ; pub const AIO_PRIO_DELTA_MAX : u32 = 20 ; pub const PTHREAD_STACK_MIN : u32 = 16384 ; pub const DELAYTIMER_MAX : u32 = 2147483647 ; pub const TTY_NAME_MAX : u32 = 32 ; pub const LOGIN_NAME_MAX : u32 = 256 ; pub const HOST_NAME_MAX : u32 = 64 ; pub const MQ_PRIO_MAX : u32 = 32768 ; pub const SEM_VALUE_MAX : u32 = 2147483647 ; pub const _BITS_POSIX2_LIM_H : u32 = 1 ; pub const _POSIX2_BC_BASE_MAX : u32 = 99 ; pub const _POSIX2_BC_DIM_MAX : u32 = 2048 ; pub const _POSIX2_BC_SCALE_MAX : u32 = 99 ; pub const _POSIX2_BC_STRING_MAX : u32 = 1000 ; pub const _POSIX2_COLL_WEIGHTS_MAX : u32 = 2 ; pub const _POSIX2_EXPR_NEST_MAX : u32 = 32 ; pub const _POSIX2_LINE_MAX : u32 = 2048 ; pub const _POSIX2_RE_DUP_MAX : u32 = 255 ; pub const _POSIX2_CHARCLASS_NAME_MAX : u32 = 14 ; pub const BC_BASE_MAX : u32 = 99 ; pub const BC_DIM_MAX : u32 = 2048 ; pub const BC_SCALE_MAX : u32 = 99 ; pub const BC_STRING_MAX : u32 = 1000 ; pub const COLL_WEIGHTS_MAX : u32 = 255 ; pub const EXPR_NEST_MAX : u32 = 32 ; pub const LINE_MAX : u32 = 2048 ; pub const CHARCLASS_NAME_MAX : u32 = 2048 ; pub const RE_DUP_MAX : u32 = 32767 ; pub const __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 ; 21usize] = b"x86_64-linux-gnu-gcc\0" ; pub const __GMP_CFLAGS : & 'static [u8 ; 123usize] = b"-g -O2 -fdebug-prefix-map=/build/gmp-OPP3sK/gmp-6.2.1+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -O3\0" ; pub const __GNU_MP_VERSION : u32 = 6 ; pub const __GNU_MP_VERSION_MINOR : u32 = 2 ; pub const __GNU_MP_VERSION_PATCHLEVEL : u32 = 1 ; pub const __GNU_MP_RELEASE : u32 = 60201 ; 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 BLOWFISH_BCRYPT_HASH_SIZE : u32 = 61 ; pub const BLOWFISH_BCRYPT_BINSALT_SIZE : 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_COUNTER_SIZE : u32 = 8 ; pub const CHACHA_COUNTER32_SIZE : u32 = 4 ; pub const _CHACHA_STATE_LENGTH : u32 = 16 ; pub const POLY1305_BLOCK_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 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 ED448_KEY_SIZE : u32 = 57 ; pub const ED448_SIGNATURE_SIZE : u32 = 114 ; 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 GOSTHASH94CP_BLOCK_SIZE : u32 = 32 ; pub const GOSTHASH94CP_DIGEST_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 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 STREEBOG512_DIGEST_SIZE : u32 = 64 ; pub const STREEBOG512_BLOCK_SIZE : u32 = 64 ; pub const _STREEBOG512_DIGEST_LENGTH : u32 = 8 ; pub const STREEBOG256_DIGEST_SIZE : u32 = 32 ; pub const STREEBOG256_BLOCK_SIZE : u32 = 64 ; 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 _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __ENUM_IDTYPE_T : u32 = 1 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __HAVE_FLOAT128 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 0 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __BIT_TYPES_DEFINED__ : u32 = 1 ; pub const _ENDIAN_H : u32 = 1 ; pub const _BITS_ENDIAN_H : u32 = 1 ; pub const __LITTLE_ENDIAN : u32 = 1234 ; pub const __BIG_ENDIAN : u32 = 4321 ; pub const __PDP_ENDIAN : u32 = 3412 ; pub const _BITS_ENDIANNESS_H : u32 = 1 ; pub const __BYTE_ORDER : u32 = 1234 ; pub const __FLOAT_WORD_ORDER : u32 = 1234 ; pub const LITTLE_ENDIAN : u32 = 1234 ; pub const BIG_ENDIAN : u32 = 4321 ; pub const PDP_ENDIAN : u32 = 3412 ; pub const BYTE_ORDER : u32 = 1234 ; pub const _BITS_BYTESWAP_H : u32 = 1 ; pub const _BITS_UINTN_IDENTITY_H : u32 = 1 ; pub const _SYS_SELECT_H : u32 = 1 ; pub const __FD_ZERO_STOS : & 'static [u8 ; 6usize] = b"stosq\0" ; pub const __sigset_t_defined : u32 = 1 ; pub const __timeval_defined : u32 = 1 ; pub const _STRUCT_TIMESPEC : u32 = 1 ; pub const FD_SETSIZE : u32 = 1024 ; pub const _BITS_PTHREADTYPES_COMMON_H : u32 = 1 ; pub const _THREAD_SHARED_TYPES_H : u32 = 1 ; pub const _BITS_PTHREADTYPES_ARCH_H : u32 = 1 ; pub const __SIZEOF_PTHREAD_MUTEX_T : u32 = 40 ; pub const __SIZEOF_PTHREAD_ATTR_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_RWLOCK_T : u32 = 56 ; pub const __SIZEOF_PTHREAD_BARRIER_T : u32 = 32 ; pub const __SIZEOF_PTHREAD_MUTEXATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_COND_T : u32 = 48 ; pub const __SIZEOF_PTHREAD_CONDATTR_T : u32 = 4 ; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T : u32 = 8 ; pub const __SIZEOF_PTHREAD_BARRIERATTR_T : u32 = 4 ; pub const _THREAD_MUTEX_INTERNAL_H : u32 = 1 ; pub const __PTHREAD_MUTEX_HAVE_PREV : u32 = 1 ; pub const __have_pthread_attr_t : u32 = 1 ; pub const _ALLOCA_H : u32 = 1 ; pub const _TIME_H : u32 = 1 ; pub const _BITS_TIME_H : u32 = 1 ; pub const CLOCK_REALTIME : u32 = 0 ; pub const CLOCK_MONOTONIC : u32 = 1 ; pub const CLOCK_PROCESS_CPUTIME_ID : u32 = 2 ; pub const CLOCK_THREAD_CPUTIME_ID : u32 = 3 ; pub const CLOCK_MONOTONIC_RAW : u32 = 4 ; pub const CLOCK_REALTIME_COARSE : u32 = 5 ; pub const CLOCK_MONOTONIC_COARSE : u32 = 6 ; pub const CLOCK_BOOTTIME : u32 = 7 ; pub const CLOCK_REALTIME_ALARM : u32 = 8 ; pub const CLOCK_BOOTTIME_ALARM : u32 = 9 ; pub const CLOCK_TAI : u32 = 11 ; pub const TIMER_ABSTIME : u32 = 1 ; pub const __struct_tm_defined : u32 = 1 ; pub const __itimerspec_defined : u32 = 1 ; pub const _BITS_TYPES_LOCALE_T_H : u32 = 1 ; pub const _BITS_TYPES___LOCALE_T_H : u32 = 1 ; pub const TIME_UTC : u32 = 1 ; pub const 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 __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __fsid_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Copy , Clone)] pub union nettle_block16 { pub b : [u8 ; 16usize] , pub w : [:: std :: os :: raw :: c_ulong ; 2usize] , pub u64_ : [u64 ; 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))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_block16 > ())) . u64_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (nettle_block16) , "::" , stringify ! (u64_))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union nettle_block8 { pub b : [u8 ; 8usize] , pub u64_ : u64 , _bindgen_union_align : u64 , } # [test] fn bindgen_test_layout_nettle_block8 () { assert_eq ! (:: std :: mem :: size_of :: < nettle_block8 > () , 8usize , concat ! ("Size of: " , stringify ! (nettle_block8))) ; assert_eq ! (:: std :: mem :: align_of :: < nettle_block8 > () , 8usize , concat ! ("Alignment of " , stringify ! (nettle_block8))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_block8 > ())) . b as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (nettle_block8) , "::" , stringify ! (b))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_block8 > ())) . u64_ as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (nettle_block8) , "::" , stringify ! (u64_))) ; } 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 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" { pub fn nettle_aes128_set_encrypt_key (ctx : * mut aes128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_aes128_set_decrypt_key (ctx : * mut aes128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_aes128_invert_key (dst : * mut aes128_ctx , src : * const aes128_ctx) ; } extern "C" { pub fn nettle_aes128_encrypt (ctx : * const aes128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { 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" { pub fn nettle_aes192_set_encrypt_key (ctx : * mut aes192_ctx , key : * const u8) ; } extern "C" { pub fn nettle_aes192_set_decrypt_key (ctx : * mut aes192_ctx , key : * const u8) ; } extern "C" { pub fn nettle_aes192_invert_key (dst : * mut aes192_ctx , src : * const aes192_ctx) ; } extern "C" { pub fn nettle_aes192_encrypt (ctx : * const aes192_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { 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" { pub fn nettle_aes256_set_encrypt_key (ctx : * mut aes256_ctx , key : * const u8) ; } extern "C" { pub fn nettle_aes256_set_decrypt_key (ctx : * mut aes256_ctx , key : * const u8) ; } extern "C" { pub fn nettle_aes256_invert_key (dst : * mut aes256_ctx , src : * const aes256_ctx) ; } extern "C" { pub fn nettle_aes256_encrypt (ctx : * const aes256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_aes256_decrypt (ctx : * const aes256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct aes_ctx { pub key_size : :: std :: os :: raw :: c_uint , pub u : aes_ctx__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union aes_ctx__bindgen_ty_1 { pub ctx128 : aes128_ctx , pub ctx192 : aes192_ctx , pub ctx256 : aes256_ctx , _bindgen_union_align : [u32 ; 60usize] , } # [test] fn bindgen_test_layout_aes_ctx__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < aes_ctx__bindgen_ty_1 > () , 240usize , concat ! ("Size of: " , stringify ! (aes_ctx__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < aes_ctx__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (aes_ctx__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < aes_ctx__bindgen_ty_1 > ())) . ctx128 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (aes_ctx__bindgen_ty_1) , "::" , stringify ! (ctx128))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < aes_ctx__bindgen_ty_1 > ())) . ctx192 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (aes_ctx__bindgen_ty_1) , "::" , stringify ! (ctx192))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < aes_ctx__bindgen_ty_1 > ())) . ctx256 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (aes_ctx__bindgen_ty_1) , "::" , stringify ! (ctx256))) ; } # [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 > ())) . key_size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (aes_ctx) , "::" , stringify ! (key_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < aes_ctx > ())) . u as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (aes_ctx) , "::" , stringify ! (u))) ; } extern "C" { pub fn nettle_aes_set_encrypt_key (ctx : * mut aes_ctx , length : usize , key : * const u8) ; } extern "C" { pub fn nettle_aes_set_decrypt_key (ctx : * mut aes_ctx , length : usize , key : * const u8) ; } extern "C" { pub fn nettle_aes_invert_key (dst : * mut aes_ctx , src : * const aes_ctx) ; } extern "C" { pub fn nettle_aes_encrypt (ctx : * const aes_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_aes_decrypt (ctx : * const aes_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" { pub fn nettle_arcfour_set_key (ctx : * mut arcfour_ctx , length : usize , key : * const u8) ; } extern "C" { pub fn nettle_arcfour128_set_key (ctx : * mut arcfour_ctx , key : * const u8) ; } extern "C" { 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" { pub fn nettle_arctwo_set_key_ekb (ctx : * mut arctwo_ctx , length : usize , key : * const u8 , ekb : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn nettle_arctwo_set_key (ctx : * mut arctwo_ctx , length : usize , key : * const u8) ; } extern "C" { pub fn nettle_arctwo40_set_key (ctx : * mut arctwo_ctx , key : * const u8) ; } extern "C" { pub fn nettle_arctwo64_set_key (ctx : * mut arctwo_ctx , key : * const u8) ; } extern "C" { pub fn nettle_arctwo128_set_key (ctx : * mut arctwo_ctx , key : * const u8) ; } extern "C" { pub fn nettle_arctwo_set_key_gutmann (ctx : * mut arctwo_ctx , length : usize , key : * const u8) ; } extern "C" { pub fn nettle_arctwo128_set_key_gutmann (ctx : * mut arctwo_ctx , key : * const u8) ; } extern "C" { pub fn nettle_arctwo_encrypt (ctx : * mut arctwo_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_arctwo_decrypt (ctx : * mut arctwo_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } pub const ASN1_TYPE_CONSTRUCTED : :: std :: os :: raw :: c_uint = 4096 ; pub const ASN1_CLASS_UNIVERSAL : :: std :: os :: raw :: c_uint = 0 ; pub const ASN1_CLASS_APPLICATION : :: std :: os :: raw :: c_uint = 8192 ; pub const ASN1_CLASS_CONTEXT_SPECIFIC : :: std :: os :: raw :: c_uint = 16384 ; pub const ASN1_CLASS_PRIVATE : :: std :: os :: raw :: c_uint = 24576 ; pub const ASN1_CLASS_MASK : :: std :: os :: raw :: c_uint = 24576 ; pub const ASN1_CLASS_SHIFT : :: std :: os :: raw :: c_uint = 13 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_uint ; 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 = :: std :: os :: raw :: c_uint ; 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 = :: std :: os :: raw :: c_uint ; # [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" { pub fn nettle_asn1_der_iterator_first (iterator : * mut asn1_der_iterator , length : usize , input : * const u8) -> asn1_iterator_result ; } extern "C" { pub fn nettle_asn1_der_iterator_next (iterator : * mut asn1_der_iterator) -> asn1_iterator_result ; } extern "C" { pub fn nettle_asn1_der_decode_constructed (i : * mut asn1_der_iterator , contents : * mut asn1_der_iterator) -> asn1_iterator_result ; } extern "C" { pub fn nettle_asn1_der_decode_constructed_last (i : * mut asn1_der_iterator) -> asn1_iterator_result ; } extern "C" { pub fn nettle_asn1_der_decode_bitstring (i : * mut asn1_der_iterator , contents : * mut asn1_der_iterator) -> asn1_iterator_result ; } extern "C" { pub fn nettle_asn1_der_decode_bitstring_last (i : * mut asn1_der_iterator) -> asn1_iterator_result ; } extern "C" { pub fn nettle_asn1_der_get_uint32 (i : * mut asn1_der_iterator , x : * mut u32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_base16_encode_single (dst : * mut :: std :: os :: raw :: c_char , src : u8) ; } extern "C" { 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" { pub fn nettle_base16_decode_init (ctx : * mut base16_decode_ctx) ; } extern "C" { 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" { 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" { 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" { pub fn nettle_base64_encode_init (ctx : * mut base64_encode_ctx) ; } extern "C" { pub fn nettle_base64url_encode_init (ctx : * mut base64_encode_ctx) ; } extern "C" { pub fn nettle_base64_encode_single (ctx : * mut base64_encode_ctx , dst : * mut :: std :: os :: raw :: c_char , src : u8) -> usize ; } extern "C" { 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" { pub fn nettle_base64_encode_final (ctx : * mut base64_encode_ctx , dst : * mut :: std :: os :: raw :: c_char) -> usize ; } extern "C" { pub fn nettle_base64_encode_raw (dst : * mut :: std :: os :: raw :: c_char , length : usize , src : * const u8) ; } extern "C" { 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" { pub fn nettle_base64_decode_init (ctx : * mut base64_decode_ctx) ; } extern "C" { pub fn nettle_base64url_decode_init (ctx : * mut base64_decode_ctx) ; } extern "C" { 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" { 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" { pub fn nettle_base64_decode_final (ctx : * mut base64_decode_ctx) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_version_major () -> :: std :: os :: raw :: c_int ; } extern "C" { 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 = :: std :: os :: raw :: c_uint ; # [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" { 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" { 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" { pub static __gmp_bits_per_limb : :: std :: os :: raw :: c_int ; } extern "C" { pub static mut __gmp_errno : :: std :: os :: raw :: c_int ; } extern "C" { pub static __gmp_version : * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn __gmp_randinit (arg1 : * mut __gmp_randstate_struct , arg2 : gmp_randalg_t , ...) ; } extern "C" { pub fn __gmp_randinit_default (arg1 : * mut __gmp_randstate_struct) ; } extern "C" { 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" { pub fn __gmp_randinit_lc_2exp_size (arg1 : * mut __gmp_randstate_struct , arg2 : mp_bitcnt_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmp_randinit_mt (arg1 : * mut __gmp_randstate_struct) ; } extern "C" { pub fn __gmp_randinit_set (arg1 : * mut __gmp_randstate_struct , arg2 : * const __gmp_randstate_struct) ; } extern "C" { pub fn __gmp_randseed (arg1 : * mut __gmp_randstate_struct , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmp_randseed_ui (arg1 : * mut __gmp_randstate_struct , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmp_randclear (arg1 : * mut __gmp_randstate_struct) ; } extern "C" { pub fn __gmp_urandomb_ui (arg1 : * mut __gmp_randstate_struct , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmp_urandomm_ui (arg1 : * mut __gmp_randstate_struct , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { 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" { pub fn __gmp_printf (arg1 : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { 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" { 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" { pub fn __gmp_scanf (arg1 : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { 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" { pub fn __gmpz_realloc (arg1 : mpz_ptr , arg2 : mp_size_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn __gmpz_abs (arg1 : mpz_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_add (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_add_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_addmul (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_addmul_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_and (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_array_init (arg1 : mpz_ptr , arg2 : mp_size_t , arg3 : mp_size_t) ; } extern "C" { pub fn __gmpz_bin_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_bin_uiui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_cdiv_q (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_cdiv_q_2exp (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { 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" { pub fn __gmpz_cdiv_qr (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr , arg4 : mpz_srcptr) ; } extern "C" { 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" { pub fn __gmpz_cdiv_r (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_cdiv_r_2exp (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { 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" { pub fn __gmpz_cdiv_ui (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_clear (arg1 : mpz_ptr) ; } extern "C" { pub fn __gmpz_clears (arg1 : mpz_ptr , ...) ; } extern "C" { pub fn __gmpz_clrbit (arg1 : mpz_ptr , arg2 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_cmp (arg1 : mpz_srcptr , arg2 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_cmp_d (arg1 : mpz_srcptr , arg2 : f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_cmp_si (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_cmp_ui (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_cmpabs (arg1 : mpz_srcptr , arg2 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_cmpabs_d (arg1 : mpz_srcptr , arg2 : f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_cmpabs_ui (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_com (arg1 : mpz_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_combit (arg1 : mpz_ptr , arg2 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_congruent_p (arg1 : mpz_srcptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_congruent_2exp_p (arg1 : mpz_srcptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_congruent_ui_p (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_divexact (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_divexact_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_divisible_p (arg1 : mpz_srcptr , arg2 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_divisible_ui_p (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_divisible_2exp_p (arg1 : mpz_srcptr , arg2 : mp_bitcnt_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_dump (arg1 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_export (arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut usize , arg3 : :: std :: os :: raw :: c_int , arg4 : usize , arg5 : :: std :: os :: raw :: c_int , arg6 : usize , arg7 : mpz_srcptr) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn __gmpz_fac_ui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_2fac_ui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_mfac_uiui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_primorial_ui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_fdiv_q (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_fdiv_q_2exp (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_fdiv_q_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_fdiv_qr (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr , arg4 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_fdiv_qr_ui (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr , arg4 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_fdiv_r (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_fdiv_r_2exp (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_fdiv_r_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_fdiv_ui (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_fib_ui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_fib2_ui (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_fits_sint_p (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_fits_slong_p (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_fits_sshort_p (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_fits_uint_p (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_fits_ulong_p (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_fits_ushort_p (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_gcd (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_gcd_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_gcdext (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_ptr , arg4 : mpz_srcptr , arg5 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_get_d (arg1 : mpz_srcptr) -> f64 ; } extern "C" { pub fn __gmpz_get_d_2exp (arg1 : * mut :: std :: os :: raw :: c_long , arg2 : mpz_srcptr) -> f64 ; } extern "C" { pub fn __gmpz_get_si (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn __gmpz_get_str (arg1 : * mut :: std :: os :: raw :: c_char , arg2 : :: std :: os :: raw :: c_int , arg3 : mpz_srcptr) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __gmpz_get_ui (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_getlimbn (arg1 : mpz_srcptr , arg2 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpz_hamdist (arg1 : mpz_srcptr , arg2 : mpz_srcptr) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpz_import (arg1 : mpz_ptr , arg2 : usize , arg3 : :: std :: os :: raw :: c_int , arg4 : usize , arg5 : :: std :: os :: raw :: c_int , arg6 : usize , arg7 : * const :: std :: os :: raw :: c_void) ; } extern "C" { pub fn __gmpz_init (arg1 : mpz_ptr) ; } extern "C" { pub fn __gmpz_init2 (arg1 : mpz_ptr , arg2 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_inits (arg1 : mpz_ptr , ...) ; } extern "C" { pub fn __gmpz_init_set (arg1 : mpz_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_init_set_d (arg1 : mpz_ptr , arg2 : f64) ; } extern "C" { pub fn __gmpz_init_set_si (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn __gmpz_init_set_str (arg1 : mpz_ptr , arg2 : * const :: std :: os :: raw :: c_char , arg3 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_init_set_ui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_invert (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_ior (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_jacobi (arg1 : mpz_srcptr , arg2 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_kronecker_si (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_kronecker_ui (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_si_kronecker (arg1 : :: std :: os :: raw :: c_long , arg2 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_ui_kronecker (arg1 : :: std :: os :: raw :: c_ulong , arg2 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_lcm (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_lcm_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_lucnum_ui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_lucnum2_ui (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_millerrabin (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_mod (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_mul (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_mul_2exp (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_mul_si (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn __gmpz_mul_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_neg (arg1 : mpz_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_nextprime (arg1 : mpz_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_perfect_power_p (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_perfect_square_p (arg1 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_popcount (arg1 : mpz_srcptr) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpz_pow_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_powm (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr , arg4 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_powm_sec (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr , arg4 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_powm_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong , arg4 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_probab_prime_p (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_random (arg1 : mpz_ptr , arg2 : mp_size_t) ; } extern "C" { pub fn __gmpz_random2 (arg1 : mpz_ptr , arg2 : mp_size_t) ; } extern "C" { pub fn __gmpz_realloc2 (arg1 : mpz_ptr , arg2 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_remove (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpz_root (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_rootrem (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr , arg4 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_rrandomb (arg1 : mpz_ptr , arg2 : * mut __gmp_randstate_struct , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_scan0 (arg1 : mpz_srcptr , arg2 : mp_bitcnt_t) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpz_scan1 (arg1 : mpz_srcptr , arg2 : mp_bitcnt_t) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpz_set (arg1 : mpz_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_set_d (arg1 : mpz_ptr , arg2 : f64) ; } extern "C" { pub fn __gmpz_set_f (arg1 : mpz_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpz_set_q (arg1 : mpz_ptr , arg2 : mpq_srcptr) ; } extern "C" { pub fn __gmpz_set_si (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn __gmpz_set_str (arg1 : mpz_ptr , arg2 : * const :: std :: os :: raw :: c_char , arg3 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_set_ui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_setbit (arg1 : mpz_ptr , arg2 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_size (arg1 : mpz_srcptr) -> usize ; } extern "C" { pub fn __gmpz_sizeinbase (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_int) -> usize ; } extern "C" { pub fn __gmpz_sqrt (arg1 : mpz_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_sqrtrem (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_sub (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_sub_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_ui_sub (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_submul (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_submul_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_swap (arg1 : mpz_ptr , arg2 : mpz_ptr) ; } extern "C" { pub fn __gmpz_tdiv_ui (arg1 : mpz_srcptr , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_tdiv_q (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_tdiv_q_2exp (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_tdiv_q_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_tdiv_qr (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr , arg4 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_tdiv_qr_ui (arg1 : mpz_ptr , arg2 : mpz_ptr , arg3 : mpz_srcptr , arg4 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_tdiv_r (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_tdiv_r_2exp (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_tdiv_r_ui (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpz_tstbit (arg1 : mpz_srcptr , arg2 : mp_bitcnt_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpz_ui_pow_ui (arg1 : mpz_ptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpz_urandomb (arg1 : mpz_ptr , arg2 : * mut __gmp_randstate_struct , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpz_urandomm (arg1 : mpz_ptr , arg2 : * mut __gmp_randstate_struct , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_xor (arg1 : mpz_ptr , arg2 : mpz_srcptr , arg3 : mpz_srcptr) ; } extern "C" { pub fn __gmpz_limbs_read (arg1 : mpz_srcptr) -> mp_srcptr ; } extern "C" { pub fn __gmpz_limbs_write (arg1 : mpz_ptr , arg2 : mp_size_t) -> mp_ptr ; } extern "C" { pub fn __gmpz_limbs_modify (arg1 : mpz_ptr , arg2 : mp_size_t) -> mp_ptr ; } extern "C" { pub fn __gmpz_limbs_finish (arg1 : mpz_ptr , arg2 : mp_size_t) ; } extern "C" { pub fn __gmpz_roinit_n (arg1 : mpz_ptr , arg2 : mp_srcptr , arg3 : mp_size_t) -> mpz_srcptr ; } extern "C" { pub fn __gmpq_abs (arg1 : mpq_ptr , arg2 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_add (arg1 : mpq_ptr , arg2 : mpq_srcptr , arg3 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_canonicalize (arg1 : mpq_ptr) ; } extern "C" { pub fn __gmpq_clear (arg1 : mpq_ptr) ; } extern "C" { pub fn __gmpq_clears (arg1 : mpq_ptr , ...) ; } extern "C" { pub fn __gmpq_cmp (arg1 : mpq_srcptr , arg2 : mpq_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpq_cmp_si (arg1 : mpq_srcptr , arg2 : :: std :: os :: raw :: c_long , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpq_cmp_ui (arg1 : mpq_srcptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpq_cmp_z (arg1 : mpq_srcptr , arg2 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpq_div (arg1 : mpq_ptr , arg2 : mpq_srcptr , arg3 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_div_2exp (arg1 : mpq_ptr , arg2 : mpq_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpq_equal (arg1 : mpq_srcptr , arg2 : mpq_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpq_get_num (arg1 : mpz_ptr , arg2 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_get_den (arg1 : mpz_ptr , arg2 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_get_d (arg1 : mpq_srcptr) -> f64 ; } extern "C" { pub fn __gmpq_get_str (arg1 : * mut :: std :: os :: raw :: c_char , arg2 : :: std :: os :: raw :: c_int , arg3 : mpq_srcptr) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __gmpq_init (arg1 : mpq_ptr) ; } extern "C" { pub fn __gmpq_inits (arg1 : mpq_ptr , ...) ; } extern "C" { pub fn __gmpq_inv (arg1 : mpq_ptr , arg2 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_mul (arg1 : mpq_ptr , arg2 : mpq_srcptr , arg3 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_mul_2exp (arg1 : mpq_ptr , arg2 : mpq_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpq_neg (arg1 : mpq_ptr , arg2 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_set (arg1 : mpq_ptr , arg2 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_set_d (arg1 : mpq_ptr , arg2 : f64) ; } extern "C" { pub fn __gmpq_set_den (arg1 : mpq_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpq_set_f (arg1 : mpq_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpq_set_num (arg1 : mpq_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpq_set_si (arg1 : mpq_ptr , arg2 : :: std :: os :: raw :: c_long , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpq_set_str (arg1 : mpq_ptr , arg2 : * const :: std :: os :: raw :: c_char , arg3 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpq_set_ui (arg1 : mpq_ptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpq_set_z (arg1 : mpq_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpq_sub (arg1 : mpq_ptr , arg2 : mpq_srcptr , arg3 : mpq_srcptr) ; } extern "C" { pub fn __gmpq_swap (arg1 : mpq_ptr , arg2 : mpq_ptr) ; } extern "C" { pub fn __gmpf_abs (arg1 : mpf_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_add (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_add_ui (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpf_ceil (arg1 : mpf_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_clear (arg1 : mpf_ptr) ; } extern "C" { pub fn __gmpf_clears (arg1 : mpf_ptr , ...) ; } extern "C" { pub fn __gmpf_cmp (arg1 : mpf_srcptr , arg2 : mpf_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_cmp_z (arg1 : mpf_srcptr , arg2 : mpz_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_cmp_d (arg1 : mpf_srcptr , arg2 : f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_cmp_si (arg1 : mpf_srcptr , arg2 : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_cmp_ui (arg1 : mpf_srcptr , arg2 : :: std :: os :: raw :: c_ulong) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_div (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_div_2exp (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpf_div_ui (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpf_dump (arg1 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_eq (arg1 : mpf_srcptr , arg2 : mpf_srcptr , arg3 : mp_bitcnt_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_fits_sint_p (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_fits_slong_p (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_fits_sshort_p (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_fits_uint_p (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_fits_ulong_p (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_fits_ushort_p (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_floor (arg1 : mpf_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_get_d (arg1 : mpf_srcptr) -> f64 ; } extern "C" { pub fn __gmpf_get_d_2exp (arg1 : * mut :: std :: os :: raw :: c_long , arg2 : mpf_srcptr) -> f64 ; } extern "C" { pub fn __gmpf_get_default_prec () -> mp_bitcnt_t ; } extern "C" { pub fn __gmpf_get_prec (arg1 : mpf_srcptr) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpf_get_si (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn __gmpf_get_str (arg1 : * mut :: std :: os :: raw :: c_char , arg2 : * mut mp_exp_t , arg3 : :: std :: os :: raw :: c_int , arg4 : usize , arg5 : mpf_srcptr) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __gmpf_get_ui (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn __gmpf_init (arg1 : mpf_ptr) ; } extern "C" { pub fn __gmpf_init2 (arg1 : mpf_ptr , arg2 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpf_inits (arg1 : mpf_ptr , ...) ; } extern "C" { pub fn __gmpf_init_set (arg1 : mpf_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_init_set_d (arg1 : mpf_ptr , arg2 : f64) ; } extern "C" { pub fn __gmpf_init_set_si (arg1 : mpf_ptr , arg2 : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn __gmpf_init_set_str (arg1 : mpf_ptr , arg2 : * const :: std :: os :: raw :: c_char , arg3 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_init_set_ui (arg1 : mpf_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpf_integer_p (arg1 : mpf_srcptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_mul (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_mul_2exp (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpf_mul_ui (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpf_neg (arg1 : mpf_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_pow_ui (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpf_random2 (arg1 : mpf_ptr , arg2 : mp_size_t , arg3 : mp_exp_t) ; } extern "C" { pub fn __gmpf_reldiff (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_set (arg1 : mpf_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_set_d (arg1 : mpf_ptr , arg2 : f64) ; } extern "C" { pub fn __gmpf_set_default_prec (arg1 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpf_set_prec (arg1 : mpf_ptr , arg2 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpf_set_prec_raw (arg1 : mpf_ptr , arg2 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpf_set_q (arg1 : mpf_ptr , arg2 : mpq_srcptr) ; } extern "C" { pub fn __gmpf_set_si (arg1 : mpf_ptr , arg2 : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn __gmpf_set_str (arg1 : mpf_ptr , arg2 : * const :: std :: os :: raw :: c_char , arg3 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpf_set_ui (arg1 : mpf_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpf_set_z (arg1 : mpf_ptr , arg2 : mpz_srcptr) ; } extern "C" { pub fn __gmpf_size (arg1 : mpf_srcptr) -> usize ; } extern "C" { pub fn __gmpf_sqrt (arg1 : mpf_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_sqrt_ui (arg1 : mpf_ptr , arg2 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpf_sub (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_sub_ui (arg1 : mpf_ptr , arg2 : mpf_srcptr , arg3 : :: std :: os :: raw :: c_ulong) ; } extern "C" { pub fn __gmpf_swap (arg1 : mpf_ptr , arg2 : mpf_ptr) ; } extern "C" { pub fn __gmpf_trunc (arg1 : mpf_ptr , arg2 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_ui_div (arg1 : mpf_ptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_ui_sub (arg1 : mpf_ptr , arg2 : :: std :: os :: raw :: c_ulong , arg3 : mpf_srcptr) ; } extern "C" { pub fn __gmpf_urandomb (arg1 : * mut __mpf_struct , arg2 : * mut __gmp_randstate_struct , arg3 : mp_bitcnt_t) ; } extern "C" { pub fn __gmpn_add (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_srcptr , arg5 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_add_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_add_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_addmul_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_cmp (arg1 : mp_srcptr , arg2 : mp_srcptr , arg3 : mp_size_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpn_zero_p (arg1 : mp_srcptr , arg2 : mp_size_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpn_divexact_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t) ; } extern "C" { pub fn __gmpn_divexact_by3c (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_divrem (arg1 : mp_ptr , arg2 : mp_size_t , arg3 : mp_ptr , arg4 : mp_size_t , arg5 : mp_srcptr , arg6 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_divrem_1 (arg1 : mp_ptr , arg2 : mp_size_t , arg3 : mp_srcptr , arg4 : mp_size_t , arg5 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_divrem_2 (arg1 : mp_ptr , arg2 : mp_size_t , arg3 : mp_ptr , arg4 : mp_size_t , arg5 : mp_srcptr) -> mp_limb_t ; } extern "C" { pub fn __gmpn_div_qr_1 (arg1 : mp_ptr , arg2 : * mut mp_limb_t , arg3 : mp_srcptr , arg4 : mp_size_t , arg5 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_div_qr_2 (arg1 : mp_ptr , arg2 : mp_ptr , arg3 : mp_srcptr , arg4 : mp_size_t , arg5 : mp_srcptr) -> mp_limb_t ; } extern "C" { pub fn __gmpn_gcd (arg1 : mp_ptr , arg2 : mp_ptr , arg3 : mp_size_t , arg4 : mp_ptr , arg5 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_gcd_11 (arg1 : mp_limb_t , arg2 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_gcd_1 (arg1 : mp_srcptr , arg2 : mp_size_t , arg3 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_gcdext_1 (arg1 : * mut mp_limb_signed_t , arg2 : * mut mp_limb_signed_t , arg3 : mp_limb_t , arg4 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_gcdext (arg1 : mp_ptr , arg2 : mp_ptr , arg3 : * mut mp_size_t , arg4 : mp_ptr , arg5 : mp_size_t , arg6 : mp_ptr , arg7 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_get_str (arg1 : * mut :: std :: os :: raw :: c_uchar , arg2 : :: std :: os :: raw :: c_int , arg3 : mp_ptr , arg4 : mp_size_t) -> usize ; } extern "C" { pub fn __gmpn_hamdist (arg1 : mp_srcptr , arg2 : mp_srcptr , arg3 : mp_size_t) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpn_lshift (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : :: std :: os :: raw :: c_uint) -> mp_limb_t ; } extern "C" { pub fn __gmpn_mod_1 (arg1 : mp_srcptr , arg2 : mp_size_t , arg3 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_mul (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_srcptr , arg5 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_mul_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_mul_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_sqr (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t) ; } extern "C" { pub fn __gmpn_neg (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_com (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t) ; } extern "C" { pub fn __gmpn_perfect_square_p (arg1 : mp_srcptr , arg2 : mp_size_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpn_perfect_power_p (arg1 : mp_srcptr , arg2 : mp_size_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpn_popcount (arg1 : mp_srcptr , arg2 : mp_size_t) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpn_pow_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t , arg5 : mp_ptr) -> mp_size_t ; } extern "C" { pub fn __gmpn_preinv_mod_1 (arg1 : mp_srcptr , arg2 : mp_size_t , arg3 : mp_limb_t , arg4 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_random (arg1 : mp_ptr , arg2 : mp_size_t) ; } extern "C" { pub fn __gmpn_random2 (arg1 : mp_ptr , arg2 : mp_size_t) ; } extern "C" { pub fn __gmpn_rshift (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : :: std :: os :: raw :: c_uint) -> mp_limb_t ; } extern "C" { pub fn __gmpn_scan0 (arg1 : mp_srcptr , arg2 : mp_bitcnt_t) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpn_scan1 (arg1 : mp_srcptr , arg2 : mp_bitcnt_t) -> mp_bitcnt_t ; } extern "C" { pub fn __gmpn_set_str (arg1 : mp_ptr , arg2 : * const :: std :: os :: raw :: c_uchar , arg3 : usize , arg4 : :: std :: os :: raw :: c_int) -> mp_size_t ; } extern "C" { pub fn __gmpn_sizeinbase (arg1 : mp_srcptr , arg2 : mp_size_t , arg3 : :: std :: os :: raw :: c_int) -> usize ; } extern "C" { pub fn __gmpn_sqrtrem (arg1 : mp_ptr , arg2 : mp_ptr , arg3 : mp_srcptr , arg4 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_sub (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_srcptr , arg5 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_sub_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_sub_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_submul_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_tdiv_qr (arg1 : mp_ptr , arg2 : mp_ptr , arg3 : mp_size_t , arg4 : mp_srcptr , arg5 : mp_size_t , arg6 : mp_srcptr , arg7 : mp_size_t) ; } extern "C" { pub fn __gmpn_and_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_andn_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_nand_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_ior_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_iorn_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_nior_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_xor_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_xnor_n (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_srcptr , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_copyi (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t) ; } extern "C" { pub fn __gmpn_copyd (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t) ; } extern "C" { pub fn __gmpn_zero (arg1 : mp_ptr , arg2 : mp_size_t) ; } extern "C" { pub fn __gmpn_cnd_add_n (arg1 : mp_limb_t , arg2 : mp_ptr , arg3 : mp_srcptr , arg4 : mp_srcptr , arg5 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_cnd_sub_n (arg1 : mp_limb_t , arg2 : mp_ptr , arg3 : mp_srcptr , arg4 : mp_srcptr , arg5 : mp_size_t) -> mp_limb_t ; } extern "C" { pub fn __gmpn_sec_add_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t , arg5 : mp_ptr) -> mp_limb_t ; } extern "C" { pub fn __gmpn_sec_add_1_itch (arg1 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_sec_sub_1 (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_limb_t , arg5 : mp_ptr) -> mp_limb_t ; } extern "C" { pub fn __gmpn_sec_sub_1_itch (arg1 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_cnd_swap (arg1 : mp_limb_t , arg2 : * mut mp_limb_t , arg3 : * mut mp_limb_t , arg4 : mp_size_t) ; } extern "C" { pub fn __gmpn_sec_mul (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_srcptr , arg5 : mp_size_t , arg6 : mp_ptr) ; } extern "C" { pub fn __gmpn_sec_mul_itch (arg1 : mp_size_t , arg2 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_sec_sqr (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_ptr) ; } extern "C" { pub fn __gmpn_sec_sqr_itch (arg1 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_sec_powm (arg1 : mp_ptr , arg2 : mp_srcptr , arg3 : mp_size_t , arg4 : mp_srcptr , arg5 : mp_bitcnt_t , arg6 : mp_srcptr , arg7 : mp_size_t , arg8 : mp_ptr) ; } extern "C" { pub fn __gmpn_sec_powm_itch (arg1 : mp_size_t , arg2 : mp_bitcnt_t , arg3 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_sec_tabselect (arg1 : * mut mp_limb_t , arg2 : * const mp_limb_t , arg3 : mp_size_t , arg4 : mp_size_t , arg5 : mp_size_t) ; } extern "C" { pub fn __gmpn_sec_div_qr (arg1 : mp_ptr , arg2 : mp_ptr , arg3 : mp_size_t , arg4 : mp_srcptr , arg5 : mp_size_t , arg6 : mp_ptr) -> mp_limb_t ; } extern "C" { pub fn __gmpn_sec_div_qr_itch (arg1 : mp_size_t , arg2 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_sec_div_r (arg1 : mp_ptr , arg2 : mp_size_t , arg3 : mp_srcptr , arg4 : mp_size_t , arg5 : mp_ptr) ; } extern "C" { pub fn __gmpn_sec_div_r_itch (arg1 : mp_size_t , arg2 : mp_size_t) -> mp_size_t ; } extern "C" { pub fn __gmpn_sec_invert (arg1 : mp_ptr , arg2 : mp_ptr , arg3 : mp_srcptr , arg4 : mp_size_t , arg5 : mp_bitcnt_t , arg6 : mp_ptr) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __gmpn_sec_invert_itch (arg1 : mp_size_t) -> mp_size_t ; } pub const GMP_ERROR_NONE : :: std :: os :: raw :: c_uint = 0 ; pub const GMP_ERROR_UNSUPPORTED_ARGUMENT : :: std :: os :: raw :: c_uint = 1 ; pub const GMP_ERROR_DIVISION_BY_ZERO : :: std :: os :: raw :: c_uint = 2 ; pub const GMP_ERROR_SQRT_OF_NEGATIVE : :: std :: os :: raw :: c_uint = 4 ; pub const GMP_ERROR_INVALID_ARGUMENT : :: std :: os :: raw :: c_uint = 8 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn nettle_mpz_sizeinbase_256_s (x : * mut __mpz_struct) -> usize ; } extern "C" { pub fn nettle_mpz_sizeinbase_256_u (x : * mut __mpz_struct) -> usize ; } extern "C" { pub fn nettle_mpz_get_str_256 (length : usize , s : * mut u8 , x : * mut __mpz_struct) ; } extern "C" { pub fn nettle_mpz_set_str_256_s (x : * mut __mpz_struct , length : usize , s : * const u8) ; } extern "C" { pub fn nettle_mpz_init_set_str_256_s (x : * mut __mpz_struct , length : usize , s : * const u8) ; } extern "C" { pub fn nettle_mpz_set_str_256_u (x : * mut __mpz_struct , length : usize , s : * const u8) ; } extern "C" { pub fn nettle_mpz_init_set_str_256_u (x : * mut __mpz_struct , length : usize , s : * const u8) ; } extern "C" { pub fn nettle_mpz_random_size (x : * mut __mpz_struct , ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func , bits : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn nettle_mpz_random (x : * mut __mpz_struct , ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func , n : * mut __mpz_struct) ; } extern "C" { pub fn nettle_random_prime (p : * mut __mpz_struct , bits : :: std :: os :: raw :: c_uint , top_bits_set : :: std :: os :: raw :: c_int , ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func , progress_ctx : * mut :: std :: os :: raw :: c_void , progress : nettle_progress_func) ; } extern "C" { pub fn nettle_mpz_set_sexp (x : * mut __mpz_struct , limit : :: std :: os :: raw :: c_uint , i : * mut sexp_iterator) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_asn1_der_get_bignum (iterator : * mut asn1_der_iterator , x : * mut __mpz_struct , max_bits : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct blowfish_ctx { pub s : [[u32 ; 256usize] ; 4usize] , pub p : [u32 ; 18usize] , } # [test] fn bindgen_test_layout_blowfish_ctx () { assert_eq ! (:: std :: mem :: size_of :: < blowfish_ctx > () , 4168usize , concat ! ("Size of: " , stringify ! (blowfish_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < blowfish_ctx > () , 4usize , concat ! ("Alignment of " , stringify ! (blowfish_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < blowfish_ctx > ())) . s as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (blowfish_ctx) , "::" , stringify ! (s))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < blowfish_ctx > ())) . p as * const _ as usize } , 4096usize , concat ! ("Offset of field: " , stringify ! (blowfish_ctx) , "::" , stringify ! (p))) ; } extern "C" { pub fn nettle_blowfish_set_key (ctx : * mut blowfish_ctx , length : usize , key : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_blowfish128_set_key (ctx : * mut blowfish_ctx , key : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_blowfish_encrypt (ctx : * const blowfish_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_blowfish_decrypt (ctx : * const blowfish_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_blowfish_bcrypt_hash (dst : * mut u8 , lenkey : usize , key : * const u8 , lenscheme : usize , scheme : * const u8 , log2rounds : :: std :: os :: raw :: c_int , salt : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_blowfish_bcrypt_verify (lenkey : usize , key : * const u8 , lenhashed : usize , hashed : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_realloc (ctx : * mut :: std :: os :: raw :: c_void , p : * mut :: std :: os :: raw :: c_void , length : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn nettle_xrealloc (ctx : * mut :: std :: os :: raw :: c_void , p : * mut :: std :: os :: raw :: c_void , length : usize) -> * mut :: std :: os :: raw :: c_void ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct nettle_buffer { pub contents : * mut u8 , pub alloc : usize , pub realloc_ctx : * mut :: std :: os :: raw :: c_void , pub realloc : nettle_realloc_func , pub size : usize , } # [test] fn bindgen_test_layout_nettle_buffer () { assert_eq ! (:: std :: mem :: size_of :: < nettle_buffer > () , 40usize , concat ! ("Size of: " , stringify ! (nettle_buffer))) ; assert_eq ! (:: std :: mem :: align_of :: < nettle_buffer > () , 8usize , concat ! ("Alignment of " , stringify ! (nettle_buffer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_buffer > ())) . contents as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (nettle_buffer) , "::" , stringify ! (contents))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_buffer > ())) . alloc as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (nettle_buffer) , "::" , stringify ! (alloc))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_buffer > ())) . realloc_ctx as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (nettle_buffer) , "::" , stringify ! (realloc_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_buffer > ())) . realloc as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (nettle_buffer) , "::" , stringify ! (realloc))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_buffer > ())) . size as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (nettle_buffer) , "::" , stringify ! (size))) ; } extern "C" { pub fn nettle_buffer_init (buffer : * mut nettle_buffer) ; } extern "C" { pub fn nettle_buffer_init_realloc (buffer : * mut nettle_buffer , realloc_ctx : * mut :: std :: os :: raw :: c_void , realloc : nettle_realloc_func) ; } extern "C" { pub fn nettle_buffer_init_size (buffer : * mut nettle_buffer , length : usize , space : * mut u8) ; } extern "C" { pub fn nettle_buffer_clear (buffer : * mut nettle_buffer) ; } extern "C" { pub fn nettle_buffer_reset (buffer : * mut nettle_buffer) ; } extern "C" { pub fn nettle_buffer_grow (buffer : * mut nettle_buffer , length : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_buffer_write (buffer : * mut nettle_buffer , length : usize , data : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_buffer_space (buffer : * mut nettle_buffer , length : usize) -> * mut u8 ; } extern "C" { pub fn nettle_buffer_copy (dst : * mut nettle_buffer , src : * const nettle_buffer) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct camellia128_ctx { pub keys : [u64 ; 24usize] , } # [test] fn bindgen_test_layout_camellia128_ctx () { assert_eq ! (:: std :: mem :: size_of :: < camellia128_ctx > () , 192usize , concat ! ("Size of: " , stringify ! (camellia128_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < camellia128_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (camellia128_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < camellia128_ctx > ())) . keys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (camellia128_ctx) , "::" , stringify ! (keys))) ; } extern "C" { pub fn nettle_camellia128_set_encrypt_key (ctx : * mut camellia128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_camellia_set_decrypt_key (ctx : * mut camellia128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_camellia128_invert_key (dst : * mut camellia128_ctx , src : * const camellia128_ctx) ; } extern "C" { pub fn nettle_camellia128_crypt (ctx : * const camellia128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct camellia256_ctx { pub keys : [u64 ; 32usize] , } # [test] fn bindgen_test_layout_camellia256_ctx () { assert_eq ! (:: std :: mem :: size_of :: < camellia256_ctx > () , 256usize , concat ! ("Size of: " , stringify ! (camellia256_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < camellia256_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (camellia256_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < camellia256_ctx > ())) . keys as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (camellia256_ctx) , "::" , stringify ! (keys))) ; } extern "C" { pub fn nettle_camellia256_set_encrypt_key (ctx : * mut camellia256_ctx , key : * const u8) ; } extern "C" { pub fn nettle_camellia256_set_decrypt_key (ctx : * mut camellia256_ctx , key : * const u8) ; } extern "C" { pub fn nettle_camellia256_invert_key (dst : * mut camellia256_ctx , src : * const camellia256_ctx) ; } extern "C" { pub fn nettle_camellia256_crypt (ctx : * const camellia256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_camellia192_set_encrypt_key (ctx : * mut camellia256_ctx , key : * const u8) ; } extern "C" { pub fn nettle_camellia192_set_decrypt_key (ctx : * mut camellia256_ctx , key : * const u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct cast128_ctx { pub rounds : :: std :: os :: raw :: c_uint , pub Kr : [:: std :: os :: raw :: c_uchar ; 16usize] , pub Km : [u32 ; 16usize] , } # [test] fn bindgen_test_layout_cast128_ctx () { assert_eq ! (:: std :: mem :: size_of :: < cast128_ctx > () , 84usize , concat ! ("Size of: " , stringify ! (cast128_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < cast128_ctx > () , 4usize , concat ! ("Alignment of " , stringify ! (cast128_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < cast128_ctx > ())) . rounds as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (cast128_ctx) , "::" , stringify ! (rounds))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < cast128_ctx > ())) . Kr as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (cast128_ctx) , "::" , stringify ! (Kr))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < cast128_ctx > ())) . Km as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (cast128_ctx) , "::" , stringify ! (Km))) ; } extern "C" { pub fn nettle_cast5_set_key (ctx : * mut cast128_ctx , length : usize , key : * const u8) ; } extern "C" { pub fn nettle_cast128_set_key (ctx : * mut cast128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_cast128_encrypt (ctx : * const cast128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_cast128_decrypt (ctx : * const cast128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_cbc_encrypt (ctx : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , block_size : usize , iv : * mut u8 , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_cbc_decrypt (ctx : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , block_size : usize , iv : * mut u8 , length : usize , dst : * mut u8 , src : * const u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ccm_ctx { pub ctr : nettle_block16 , pub tag : nettle_block16 , pub blength : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout_ccm_ctx () { assert_eq ! (:: std :: mem :: size_of :: < ccm_ctx > () , 40usize , concat ! ("Size of: " , stringify ! (ccm_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < ccm_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (ccm_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_ctx > ())) . ctr as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ccm_ctx) , "::" , stringify ! (ctr))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_ctx > ())) . tag as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (ccm_ctx) , "::" , stringify ! (tag))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_ctx > ())) . blength as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ccm_ctx) , "::" , stringify ! (blength))) ; } extern "C" { pub fn nettle_ccm_set_nonce (ctx : * mut ccm_ctx , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , noncelen : usize , nonce : * const u8 , authlen : usize , msglen : usize , taglen : usize) ; } extern "C" { pub fn nettle_ccm_update (ctx : * mut ccm_ctx , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_ccm_encrypt (ctx : * mut ccm_ctx , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_decrypt (ctx : * mut ccm_ctx , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_digest (ctx : * mut ccm_ctx , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_ccm_encrypt_message (cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , nlength : usize , nonce : * const u8 , alength : usize , adata : * const u8 , tlength : usize , clength : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_decrypt_message (cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , nlength : usize , nonce : * const u8 , alength : usize , adata : * const u8 , tlength : usize , mlength : usize , dst : * mut u8 , src : * const u8) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ccm_aes128_ctx { pub ccm : ccm_ctx , pub cipher : aes128_ctx , } # [test] fn bindgen_test_layout_ccm_aes128_ctx () { assert_eq ! (:: std :: mem :: size_of :: < ccm_aes128_ctx > () , 216usize , concat ! ("Size of: " , stringify ! (ccm_aes128_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < ccm_aes128_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (ccm_aes128_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_aes128_ctx > ())) . ccm as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ccm_aes128_ctx) , "::" , stringify ! (ccm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_aes128_ctx > ())) . cipher as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (ccm_aes128_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_ccm_aes128_set_key (ctx : * mut ccm_aes128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_ccm_aes128_set_nonce (ctx : * mut ccm_aes128_ctx , length : usize , nonce : * const u8 , authlen : usize , msglen : usize , taglen : usize) ; } extern "C" { pub fn nettle_ccm_aes128_update (ctx : * mut ccm_aes128_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_ccm_aes128_encrypt (ctx : * mut ccm_aes128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes128_decrypt (ctx : * mut ccm_aes128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes128_digest (ctx : * mut ccm_aes128_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_ccm_aes128_encrypt_message (ctx : * mut ccm_aes128_ctx , nlength : usize , nonce : * const u8 , alength : usize , adata : * const u8 , tlength : usize , clength : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes128_decrypt_message (ctx : * mut ccm_aes128_ctx , nlength : usize , nonce : * const u8 , alength : usize , adata : * const u8 , tlength : usize , mlength : usize , dst : * mut u8 , src : * const u8) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ccm_aes192_ctx { pub ccm : ccm_ctx , pub cipher : aes192_ctx , } # [test] fn bindgen_test_layout_ccm_aes192_ctx () { assert_eq ! (:: std :: mem :: size_of :: < ccm_aes192_ctx > () , 248usize , concat ! ("Size of: " , stringify ! (ccm_aes192_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < ccm_aes192_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (ccm_aes192_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_aes192_ctx > ())) . ccm as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ccm_aes192_ctx) , "::" , stringify ! (ccm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_aes192_ctx > ())) . cipher as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (ccm_aes192_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_ccm_aes192_set_key (ctx : * mut ccm_aes192_ctx , key : * const u8) ; } extern "C" { pub fn nettle_ccm_aes192_set_nonce (ctx : * mut ccm_aes192_ctx , length : usize , nonce : * const u8 , authlen : usize , msglen : usize , taglen : usize) ; } extern "C" { pub fn nettle_ccm_aes192_update (ctx : * mut ccm_aes192_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_ccm_aes192_encrypt (ctx : * mut ccm_aes192_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes192_decrypt (ctx : * mut ccm_aes192_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes192_digest (ctx : * mut ccm_aes192_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_ccm_aes192_encrypt_message (ctx : * mut ccm_aes192_ctx , nlength : usize , nonce : * const u8 , alength : usize , adata : * const u8 , tlength : usize , clength : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes192_decrypt_message (ctx : * mut ccm_aes192_ctx , nlength : usize , nonce : * const u8 , alength : usize , adata : * const u8 , tlength : usize , mlength : usize , dst : * mut u8 , src : * const u8) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ccm_aes256_ctx { pub ccm : ccm_ctx , pub cipher : aes256_ctx , } # [test] fn bindgen_test_layout_ccm_aes256_ctx () { assert_eq ! (:: std :: mem :: size_of :: < ccm_aes256_ctx > () , 280usize , concat ! ("Size of: " , stringify ! (ccm_aes256_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < ccm_aes256_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (ccm_aes256_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_aes256_ctx > ())) . ccm as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ccm_aes256_ctx) , "::" , stringify ! (ccm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ccm_aes256_ctx > ())) . cipher as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (ccm_aes256_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_ccm_aes256_set_key (ctx : * mut ccm_aes256_ctx , key : * const u8) ; } extern "C" { pub fn nettle_ccm_aes256_set_nonce (ctx : * mut ccm_aes256_ctx , length : usize , nonce : * const u8 , authlen : usize , msglen : usize , taglen : usize) ; } extern "C" { pub fn nettle_ccm_aes256_update (ctx : * mut ccm_aes256_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_ccm_aes256_encrypt (ctx : * mut ccm_aes256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes256_decrypt (ctx : * mut ccm_aes256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes256_digest (ctx : * mut ccm_aes256_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_ccm_aes256_encrypt_message (ctx : * mut ccm_aes256_ctx , nlength : usize , nonce : * const u8 , alength : usize , adata : * const u8 , tlength : usize , clength : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_ccm_aes256_decrypt_message (ctx : * mut ccm_aes256_ctx , nlength : usize , nonce : * const u8 , alength : usize , adata : * const u8 , tlength : usize , mlength : usize , dst : * mut u8 , src : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_cfb_encrypt (ctx : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , block_size : usize , iv : * mut u8 , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_cfb_decrypt (ctx : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , block_size : usize , iv : * mut u8 , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_cfb8_encrypt (ctx : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , block_size : usize , iv : * mut u8 , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_cfb8_decrypt (ctx : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , block_size : usize , iv : * mut u8 , length : usize , dst : * mut u8 , src : * const u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct chacha_ctx { pub state : [u32 ; 16usize] , } # [test] fn bindgen_test_layout_chacha_ctx () { assert_eq ! (:: std :: mem :: size_of :: < chacha_ctx > () , 64usize , concat ! ("Size of: " , stringify ! (chacha_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < chacha_ctx > () , 4usize , concat ! ("Alignment of " , stringify ! (chacha_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < chacha_ctx > ())) . state as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (chacha_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_chacha_set_key (ctx : * mut chacha_ctx , key : * const u8) ; } extern "C" { pub fn nettle_chacha_set_nonce (ctx : * mut chacha_ctx , nonce : * const u8) ; } extern "C" { pub fn nettle_chacha_set_nonce96 (ctx : * mut chacha_ctx , nonce : * const u8) ; } extern "C" { pub fn nettle_chacha_set_counter (ctx : * mut chacha_ctx , counter : * const u8) ; } extern "C" { pub fn nettle_chacha_set_counter32 (ctx : * mut chacha_ctx , counter : * const u8) ; } extern "C" { pub fn nettle_chacha_crypt (ctx : * mut chacha_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_chacha_crypt32 (ctx : * mut chacha_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct poly1305_ctx { pub r : poly1305_ctx__bindgen_ty_1 , pub s32 : [u32 ; 3usize] , pub hh : u32 , pub h : poly1305_ctx__bindgen_ty_2 , } # [repr (C)] # [derive (Copy , Clone)] pub union poly1305_ctx__bindgen_ty_1 { pub r32 : [u32 ; 6usize] , pub r64 : [u64 ; 3usize] , _bindgen_union_align : [u64 ; 3usize] , } # [test] fn bindgen_test_layout_poly1305_ctx__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < poly1305_ctx__bindgen_ty_1 > () , 24usize , concat ! ("Size of: " , stringify ! (poly1305_ctx__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < poly1305_ctx__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (poly1305_ctx__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_ctx__bindgen_ty_1 > ())) . r32 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (poly1305_ctx__bindgen_ty_1) , "::" , stringify ! (r32))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_ctx__bindgen_ty_1 > ())) . r64 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (poly1305_ctx__bindgen_ty_1) , "::" , stringify ! (r64))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union poly1305_ctx__bindgen_ty_2 { pub h32 : [u32 ; 4usize] , pub h64 : [u64 ; 2usize] , _bindgen_union_align : [u64 ; 2usize] , } # [test] fn bindgen_test_layout_poly1305_ctx__bindgen_ty_2 () { assert_eq ! (:: std :: mem :: size_of :: < poly1305_ctx__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (poly1305_ctx__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < poly1305_ctx__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (poly1305_ctx__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_ctx__bindgen_ty_2 > ())) . h32 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (poly1305_ctx__bindgen_ty_2) , "::" , stringify ! (h32))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_ctx__bindgen_ty_2 > ())) . h64 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (poly1305_ctx__bindgen_ty_2) , "::" , stringify ! (h64))) ; } # [test] fn bindgen_test_layout_poly1305_ctx () { assert_eq ! (:: std :: mem :: size_of :: < poly1305_ctx > () , 56usize , concat ! ("Size of: " , stringify ! (poly1305_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < poly1305_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (poly1305_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_ctx > ())) . r as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (poly1305_ctx) , "::" , stringify ! (r))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_ctx > ())) . s32 as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (poly1305_ctx) , "::" , stringify ! (s32))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_ctx > ())) . hh as * const _ as usize } , 36usize , concat ! ("Offset of field: " , stringify ! (poly1305_ctx) , "::" , stringify ! (hh))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_ctx > ())) . h as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (poly1305_ctx) , "::" , stringify ! (h))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct poly1305_aes_ctx { pub pctx : poly1305_ctx , pub block : [u8 ; 16usize] , pub index : :: std :: os :: raw :: c_uint , pub nonce : [u8 ; 16usize] , pub aes : aes128_ctx , } # [test] fn bindgen_test_layout_poly1305_aes_ctx () { assert_eq ! (:: std :: mem :: size_of :: < poly1305_aes_ctx > () , 272usize , concat ! ("Size of: " , stringify ! (poly1305_aes_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < poly1305_aes_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (poly1305_aes_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_aes_ctx > ())) . pctx as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (poly1305_aes_ctx) , "::" , stringify ! (pctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_aes_ctx > ())) . block as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (poly1305_aes_ctx) , "::" , stringify ! (block))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_aes_ctx > ())) . index as * const _ as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (poly1305_aes_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_aes_ctx > ())) . nonce as * const _ as usize } , 76usize , concat ! ("Offset of field: " , stringify ! (poly1305_aes_ctx) , "::" , stringify ! (nonce))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < poly1305_aes_ctx > ())) . aes as * const _ as usize } , 92usize , concat ! ("Offset of field: " , stringify ! (poly1305_aes_ctx) , "::" , stringify ! (aes))) ; } extern "C" { pub fn nettle_poly1305_aes_set_key (ctx : * mut poly1305_aes_ctx , key : * const u8) ; } extern "C" { pub fn nettle_poly1305_aes_set_nonce (ctx : * mut poly1305_aes_ctx , nonce : * const u8) ; } extern "C" { pub fn nettle_poly1305_aes_update (ctx : * mut poly1305_aes_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_poly1305_aes_digest (ctx : * mut poly1305_aes_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct chacha_poly1305_ctx { pub chacha : chacha_ctx , pub poly1305 : poly1305_ctx , pub s : nettle_block16 , pub auth_size : u64 , pub data_size : u64 , pub block : [u8 ; 16usize] , pub index : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout_chacha_poly1305_ctx () { assert_eq ! (:: std :: mem :: size_of :: < chacha_poly1305_ctx > () , 176usize , concat ! ("Size of: " , stringify ! (chacha_poly1305_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < chacha_poly1305_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (chacha_poly1305_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < chacha_poly1305_ctx > ())) . chacha as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (chacha_poly1305_ctx) , "::" , stringify ! (chacha))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < chacha_poly1305_ctx > ())) . poly1305 as * const _ as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (chacha_poly1305_ctx) , "::" , stringify ! (poly1305))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < chacha_poly1305_ctx > ())) . s as * const _ as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (chacha_poly1305_ctx) , "::" , stringify ! (s))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < chacha_poly1305_ctx > ())) . auth_size as * const _ as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (chacha_poly1305_ctx) , "::" , stringify ! (auth_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < chacha_poly1305_ctx > ())) . data_size as * const _ as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (chacha_poly1305_ctx) , "::" , stringify ! (data_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < chacha_poly1305_ctx > ())) . block as * const _ as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (chacha_poly1305_ctx) , "::" , stringify ! (block))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < chacha_poly1305_ctx > ())) . index as * const _ as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (chacha_poly1305_ctx) , "::" , stringify ! (index))) ; } extern "C" { pub fn nettle_chacha_poly1305_set_key (ctx : * mut chacha_poly1305_ctx , key : * const u8) ; } extern "C" { pub fn nettle_chacha_poly1305_set_nonce (ctx : * mut chacha_poly1305_ctx , nonce : * const u8) ; } extern "C" { pub fn nettle_chacha_poly1305_update (ctx : * mut chacha_poly1305_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_chacha_poly1305_encrypt (ctx : * mut chacha_poly1305_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_chacha_poly1305_decrypt (ctx : * mut chacha_poly1305_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_chacha_poly1305_digest (ctx : * mut chacha_poly1305_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_ctr_crypt (ctx : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , block_size : usize , ctr : * mut u8 , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_curve25519_mul_g (q : * mut u8 , n : * const u8) ; } extern "C" { pub fn nettle_curve25519_mul (q : * mut u8 , n : * const u8 , p : * const u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct des_ctx { pub key : [u32 ; 32usize] , } # [test] fn bindgen_test_layout_des_ctx () { assert_eq ! (:: std :: mem :: size_of :: < des_ctx > () , 128usize , concat ! ("Size of: " , stringify ! (des_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < des_ctx > () , 4usize , concat ! ("Alignment of " , stringify ! (des_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < des_ctx > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (des_ctx) , "::" , stringify ! (key))) ; } extern "C" { pub fn nettle_des_set_key (ctx : * mut des_ctx , key : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_des_encrypt (ctx : * const des_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_des_decrypt (ctx : * const des_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_des_check_parity (length : usize , key : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_des_fix_parity (length : usize , dst : * mut u8 , src : * const u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct des3_ctx { pub des : [des_ctx ; 3usize] , } # [test] fn bindgen_test_layout_des3_ctx () { assert_eq ! (:: std :: mem :: size_of :: < des3_ctx > () , 384usize , concat ! ("Size of: " , stringify ! (des3_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < des3_ctx > () , 4usize , concat ! ("Alignment of " , stringify ! (des3_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < des3_ctx > ())) . des as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (des3_ctx) , "::" , stringify ! (des))) ; } extern "C" { pub fn nettle_des3_set_key (ctx : * mut des3_ctx , key : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_des3_encrypt (ctx : * const des3_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_des3_decrypt (ctx : * const des3_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dsa_params { pub p : mpz_t , pub q : mpz_t , pub g : mpz_t , } # [test] fn bindgen_test_layout_dsa_params () { assert_eq ! (:: std :: mem :: size_of :: < dsa_params > () , 48usize , concat ! ("Size of: " , stringify ! (dsa_params))) ; assert_eq ! (:: std :: mem :: align_of :: < dsa_params > () , 8usize , concat ! ("Alignment of " , stringify ! (dsa_params))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < dsa_params > ())) . p as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (dsa_params) , "::" , stringify ! (p))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < dsa_params > ())) . q as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (dsa_params) , "::" , stringify ! (q))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < dsa_params > ())) . g as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (dsa_params) , "::" , stringify ! (g))) ; } extern "C" { pub fn nettle_dsa_params_init (params : * mut dsa_params) ; } extern "C" { pub fn nettle_dsa_params_clear (params : * mut dsa_params) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct dsa_signature { pub r : mpz_t , pub s : mpz_t , } # [test] fn bindgen_test_layout_dsa_signature () { assert_eq ! (:: std :: mem :: size_of :: < dsa_signature > () , 32usize , concat ! ("Size of: " , stringify ! (dsa_signature))) ; assert_eq ! (:: std :: mem :: align_of :: < dsa_signature > () , 8usize , concat ! ("Alignment of " , stringify ! (dsa_signature))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < dsa_signature > ())) . r as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (dsa_signature) , "::" , stringify ! (r))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < dsa_signature > ())) . s as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (dsa_signature) , "::" , stringify ! (s))) ; } extern "C" { pub fn nettle_dsa_signature_init (signature : * mut dsa_signature) ; } extern "C" { pub fn nettle_dsa_signature_clear (signature : * mut dsa_signature) ; } extern "C" { pub fn nettle_dsa_sign (params : * const dsa_params , x : * mut __mpz_struct , random_ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func , digest_size : usize , digest : * const u8 , signature : * mut dsa_signature) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_verify (params : * const dsa_params , y : * mut __mpz_struct , digest_size : usize , digest : * const u8 , signature : * const dsa_signature) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_generate_params (params : * mut dsa_params , random_ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func , progress_ctx : * mut :: std :: os :: raw :: c_void , progress : nettle_progress_func , p_bits : :: std :: os :: raw :: c_uint , q_bits : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_generate_keypair (params : * const dsa_params , pub_ : * mut __mpz_struct , key : * mut __mpz_struct , random_ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func) ; } extern "C" { pub fn nettle_dsa_keypair_to_sexp (buffer : * mut nettle_buffer , algorithm_name : * const :: std :: os :: raw :: c_char , params : * const dsa_params , pub_ : * mut __mpz_struct , priv_ : * mut __mpz_struct) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_signature_from_sexp (rs : * mut dsa_signature , i : * mut sexp_iterator , q_bits : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_keypair_from_sexp_alist (params : * mut dsa_params , pub_ : * mut __mpz_struct , priv_ : * mut __mpz_struct , p_max_bits : :: std :: os :: raw :: c_uint , q_bits : :: std :: os :: raw :: c_uint , i : * mut sexp_iterator) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_sha1_keypair_from_sexp (params : * mut dsa_params , pub_ : * mut __mpz_struct , priv_ : * mut __mpz_struct , p_max_bits : :: std :: os :: raw :: c_uint , length : usize , expr : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_sha256_keypair_from_sexp (params : * mut dsa_params , pub_ : * mut __mpz_struct , priv_ : * mut __mpz_struct , p_max_bits : :: std :: os :: raw :: c_uint , length : usize , expr : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_params_from_der_iterator (params : * mut dsa_params , max_bits : :: std :: os :: raw :: c_uint , q_bits : :: std :: os :: raw :: c_uint , i : * mut asn1_der_iterator) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_public_key_from_der_iterator (params : * const dsa_params , pub_ : * mut __mpz_struct , i : * mut asn1_der_iterator) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_dsa_openssl_private_key_from_der_iterator (params : * mut dsa_params , pub_ : * mut __mpz_struct , priv_ : * mut __mpz_struct , p_max_bits : :: std :: os :: raw :: c_uint , i : * mut asn1_der_iterator) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_openssl_provate_key_from_der (params : * mut dsa_params , pub_ : * mut __mpz_struct , priv_ : * mut __mpz_struct , p_max_bits : :: std :: os :: raw :: c_uint , length : usize , data : * const u8) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct eax_key { pub pad_block : nettle_block16 , pub pad_partial : nettle_block16 , } # [test] fn bindgen_test_layout_eax_key () { assert_eq ! (:: std :: mem :: size_of :: < eax_key > () , 32usize , concat ! ("Size of: " , stringify ! (eax_key))) ; assert_eq ! (:: std :: mem :: align_of :: < eax_key > () , 8usize , concat ! ("Alignment of " , stringify ! (eax_key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_key > ())) . pad_block as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (eax_key) , "::" , stringify ! (pad_block))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_key > ())) . pad_partial as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (eax_key) , "::" , stringify ! (pad_partial))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct eax_ctx { pub omac_nonce : nettle_block16 , pub omac_data : nettle_block16 , pub omac_message : nettle_block16 , pub ctr : nettle_block16 , } # [test] fn bindgen_test_layout_eax_ctx () { assert_eq ! (:: std :: mem :: size_of :: < eax_ctx > () , 64usize , concat ! ("Size of: " , stringify ! (eax_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < eax_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (eax_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_ctx > ())) . omac_nonce as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (eax_ctx) , "::" , stringify ! (omac_nonce))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_ctx > ())) . omac_data as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (eax_ctx) , "::" , stringify ! (omac_data))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_ctx > ())) . omac_message as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (eax_ctx) , "::" , stringify ! (omac_message))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_ctx > ())) . ctr as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (eax_ctx) , "::" , stringify ! (ctr))) ; } extern "C" { pub fn nettle_eax_set_key (key : * mut eax_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func) ; } extern "C" { pub fn nettle_eax_set_nonce (eax : * mut eax_ctx , key : * const eax_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , nonce_length : usize , nonce : * const u8) ; } extern "C" { pub fn nettle_eax_update (eax : * mut eax_ctx , key : * const eax_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , data_length : usize , data : * const u8) ; } extern "C" { pub fn nettle_eax_encrypt (eax : * mut eax_ctx , key : * const eax_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_eax_decrypt (eax : * mut eax_ctx , key : * const eax_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_eax_digest (eax : * mut eax_ctx , key : * const eax_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct eax_aes128_ctx { pub key : eax_key , pub eax : eax_ctx , pub cipher : aes128_ctx , } # [test] fn bindgen_test_layout_eax_aes128_ctx () { assert_eq ! (:: std :: mem :: size_of :: < eax_aes128_ctx > () , 272usize , concat ! ("Size of: " , stringify ! (eax_aes128_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < eax_aes128_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (eax_aes128_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_aes128_ctx > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (eax_aes128_ctx) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_aes128_ctx > ())) . eax as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (eax_aes128_ctx) , "::" , stringify ! (eax))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < eax_aes128_ctx > ())) . cipher as * const _ as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (eax_aes128_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_eax_aes128_set_key (ctx : * mut eax_aes128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_eax_aes128_set_nonce (ctx : * mut eax_aes128_ctx , length : usize , iv : * const u8) ; } extern "C" { pub fn nettle_eax_aes128_update (ctx : * mut eax_aes128_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_eax_aes128_encrypt (ctx : * mut eax_aes128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_eax_aes128_decrypt (ctx : * mut eax_aes128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_eax_aes128_digest (ctx : * mut eax_aes128_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_curve { _unused : [u8 ; 0] , } extern "C" { pub fn nettle_get_gost_gc256b () -> * const ecc_curve ; } extern "C" { pub fn nettle_get_gost_gc512a () -> * const ecc_curve ; } extern "C" { pub fn nettle_get_secp_192r1 () -> * const ecc_curve ; } extern "C" { pub fn nettle_get_secp_224r1 () -> * const ecc_curve ; } extern "C" { pub fn nettle_get_secp_256r1 () -> * const ecc_curve ; } extern "C" { pub fn nettle_get_secp_384r1 () -> * const ecc_curve ; } extern "C" { pub fn nettle_get_secp_521r1 () -> * const ecc_curve ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_point { pub ecc : * const ecc_curve , pub p : * mut mp_limb_t , } # [test] fn bindgen_test_layout_ecc_point () { assert_eq ! (:: std :: mem :: size_of :: < ecc_point > () , 16usize , concat ! ("Size of: " , stringify ! (ecc_point))) ; assert_eq ! (:: std :: mem :: align_of :: < ecc_point > () , 8usize , concat ! ("Alignment of " , stringify ! (ecc_point))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ecc_point > ())) . ecc as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ecc_point) , "::" , stringify ! (ecc))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ecc_point > ())) . p as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ecc_point) , "::" , stringify ! (p))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ecc_scalar { pub ecc : * const ecc_curve , pub p : * mut mp_limb_t , } # [test] fn bindgen_test_layout_ecc_scalar () { assert_eq ! (:: std :: mem :: size_of :: < ecc_scalar > () , 16usize , concat ! ("Size of: " , stringify ! (ecc_scalar))) ; assert_eq ! (:: std :: mem :: align_of :: < ecc_scalar > () , 8usize , concat ! ("Alignment of " , stringify ! (ecc_scalar))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ecc_scalar > ())) . ecc as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ecc_scalar) , "::" , stringify ! (ecc))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ecc_scalar > ())) . p as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ecc_scalar) , "::" , stringify ! (p))) ; } extern "C" { pub fn nettle_ecc_point_init (p : * mut ecc_point , ecc : * const ecc_curve) ; } extern "C" { pub fn nettle_ecc_point_clear (p : * mut ecc_point) ; } extern "C" { pub fn nettle_ecc_point_set (p : * mut ecc_point , x : * mut __mpz_struct , y : * mut __mpz_struct) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_ecc_point_get (p : * const ecc_point , x : * mut __mpz_struct , y : * mut __mpz_struct) ; } extern "C" { pub fn nettle_ecc_scalar_init (s : * mut ecc_scalar , ecc : * const ecc_curve) ; } extern "C" { pub fn nettle_ecc_scalar_clear (s : * mut ecc_scalar) ; } extern "C" { pub fn nettle_ecc_scalar_set (s : * mut ecc_scalar , z : * mut __mpz_struct) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_ecc_scalar_get (s : * const ecc_scalar , z : * mut __mpz_struct) ; } extern "C" { pub fn nettle_ecc_scalar_random (s : * mut ecc_scalar , random_ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func) ; } extern "C" { pub fn nettle_ecc_point_mul (r : * mut ecc_point , n : * const ecc_scalar , p : * const ecc_point) ; } extern "C" { pub fn nettle_ecc_point_mul_g (r : * mut ecc_point , n : * const ecc_scalar) ; } extern "C" { pub fn nettle_ecc_bit_size (ecc : * const ecc_curve) -> :: std :: os :: raw :: c_uint ; } extern "C" { pub fn nettle_ecc_size (ecc : * const ecc_curve) -> mp_size_t ; } extern "C" { pub fn nettle_ecc_size_a (ecc : * const ecc_curve) -> mp_size_t ; } extern "C" { pub fn nettle_ecc_size_j (ecc : * const ecc_curve) -> mp_size_t ; } extern "C" { pub fn nettle_ecdsa_sign (key : * const ecc_scalar , random_ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func , digest_length : usize , digest : * const u8 , signature : * mut dsa_signature) ; } extern "C" { pub fn nettle_ecdsa_verify (pub_ : * const ecc_point , length : usize , digest : * const u8 , signature : * const dsa_signature) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_ecdsa_generate_keypair (pub_ : * mut ecc_point , key : * mut ecc_scalar , random_ctx : * mut :: std :: os :: raw :: c_void , random : nettle_random_func) ; } extern "C" { pub fn nettle_ecc_ecdsa_sign_itch (ecc : * const ecc_curve) -> mp_size_t ; } extern "C" { pub fn nettle_ecc_ecdsa_sign (ecc : * const ecc_curve , zp : * const mp_limb_t , kp : * const mp_limb_t , length : usize , digest : * const u8 , rp : * mut mp_limb_t , sp : * mut mp_limb_t , scratch : * mut mp_limb_t) ; } extern "C" { pub fn nettle_ecc_ecdsa_verify_itch (ecc : * const ecc_curve) -> mp_size_t ; } extern "C" { pub fn nettle_ecc_ecdsa_verify (ecc : * const ecc_curve , pp : * const mp_limb_t , length : usize , digest : * const u8 , rp : * const mp_limb_t , sp : * const mp_limb_t , scratch : * mut mp_limb_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_ed25519_sha512_public_key (pub_ : * mut u8 , priv_ : * const u8) ; } extern "C" { pub fn nettle_ed25519_sha512_sign (pub_ : * const u8 , priv_ : * const u8 , length : usize , msg : * const u8 , signature : * mut u8) ; } extern "C" { pub fn nettle_ed25519_sha512_verify (pub_ : * const u8 , length : usize , msg : * const u8 , signature : * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nettle_ed448_shake256_public_key (pub_ : * mut u8 , priv_ : * const u8) ; } extern "C" { pub fn nettle_ed448_shake256_sign (pub_ : * const u8 , priv_ : * const u8 , length : usize , msg : * const u8 , signature : * mut u8) ; } extern "C" { pub fn nettle_ed448_shake256_verify (pub_ : * const u8 , length : usize , msg : * const u8 , signature : * const u8) -> :: std :: os :: raw :: c_int ; } # [repr (C)] # [derive (Copy , Clone)] pub struct gcm_key { pub h : [nettle_block16 ; 256usize] , } # [test] fn bindgen_test_layout_gcm_key () { assert_eq ! (:: std :: mem :: size_of :: < gcm_key > () , 4096usize , concat ! ("Size of: " , stringify ! (gcm_key))) ; assert_eq ! (:: std :: mem :: align_of :: < gcm_key > () , 8usize , concat ! ("Alignment of " , stringify ! (gcm_key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_key > ())) . h as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gcm_key) , "::" , stringify ! (h))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct gcm_ctx { pub iv : nettle_block16 , pub ctr : nettle_block16 , pub x : nettle_block16 , pub auth_size : u64 , pub data_size : u64 , } # [test] fn bindgen_test_layout_gcm_ctx () { assert_eq ! (:: std :: mem :: size_of :: < gcm_ctx > () , 64usize , concat ! ("Size of: " , stringify ! (gcm_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < gcm_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (gcm_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_ctx > ())) . iv as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gcm_ctx) , "::" , stringify ! (iv))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_ctx > ())) . ctr as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (gcm_ctx) , "::" , stringify ! (ctr))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_ctx > ())) . x as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (gcm_ctx) , "::" , stringify ! (x))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_ctx > ())) . auth_size as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (gcm_ctx) , "::" , stringify ! (auth_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_ctx > ())) . data_size as * const _ as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (gcm_ctx) , "::" , stringify ! (data_size))) ; } extern "C" { pub fn nettle_gcm_set_key (key : * mut gcm_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func) ; } extern "C" { pub fn nettle_gcm_set_iv (ctx : * mut gcm_ctx , key : * const gcm_key , length : usize , iv : * const u8) ; } extern "C" { pub fn nettle_gcm_update (ctx : * mut gcm_ctx , key : * const gcm_key , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_gcm_encrypt (ctx : * mut gcm_ctx , key : * const gcm_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_decrypt (ctx : * mut gcm_ctx , key : * const gcm_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_digest (ctx : * mut gcm_ctx , key : * const gcm_key , cipher : * const :: std :: os :: raw :: c_void , f : nettle_cipher_func , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct gcm_aes128_ctx { pub key : gcm_key , pub gcm : gcm_ctx , pub cipher : aes128_ctx , } # [test] fn bindgen_test_layout_gcm_aes128_ctx () { assert_eq ! (:: std :: mem :: size_of :: < gcm_aes128_ctx > () , 4336usize , concat ! ("Size of: " , stringify ! (gcm_aes128_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < gcm_aes128_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (gcm_aes128_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes128_ctx > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gcm_aes128_ctx) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes128_ctx > ())) . gcm as * const _ as usize } , 4096usize , concat ! ("Offset of field: " , stringify ! (gcm_aes128_ctx) , "::" , stringify ! (gcm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes128_ctx > ())) . cipher as * const _ as usize } , 4160usize , concat ! ("Offset of field: " , stringify ! (gcm_aes128_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_gcm_aes128_set_key (ctx : * mut gcm_aes128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_gcm_aes128_update (ctx : * mut gcm_aes128_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_gcm_aes128_set_iv (ctx : * mut gcm_aes128_ctx , length : usize , iv : * const u8) ; } extern "C" { pub fn nettle_gcm_aes128_encrypt (ctx : * mut gcm_aes128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_aes128_decrypt (ctx : * mut gcm_aes128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_aes128_digest (ctx : * mut gcm_aes128_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct gcm_aes192_ctx { pub key : gcm_key , pub gcm : gcm_ctx , pub cipher : aes192_ctx , } # [test] fn bindgen_test_layout_gcm_aes192_ctx () { assert_eq ! (:: std :: mem :: size_of :: < gcm_aes192_ctx > () , 4368usize , concat ! ("Size of: " , stringify ! (gcm_aes192_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < gcm_aes192_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (gcm_aes192_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes192_ctx > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gcm_aes192_ctx) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes192_ctx > ())) . gcm as * const _ as usize } , 4096usize , concat ! ("Offset of field: " , stringify ! (gcm_aes192_ctx) , "::" , stringify ! (gcm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes192_ctx > ())) . cipher as * const _ as usize } , 4160usize , concat ! ("Offset of field: " , stringify ! (gcm_aes192_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_gcm_aes192_set_key (ctx : * mut gcm_aes192_ctx , key : * const u8) ; } extern "C" { pub fn nettle_gcm_aes192_update (ctx : * mut gcm_aes192_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_gcm_aes192_set_iv (ctx : * mut gcm_aes192_ctx , length : usize , iv : * const u8) ; } extern "C" { pub fn nettle_gcm_aes192_encrypt (ctx : * mut gcm_aes192_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_aes192_decrypt (ctx : * mut gcm_aes192_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_aes192_digest (ctx : * mut gcm_aes192_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct gcm_aes256_ctx { pub key : gcm_key , pub gcm : gcm_ctx , pub cipher : aes256_ctx , } # [test] fn bindgen_test_layout_gcm_aes256_ctx () { assert_eq ! (:: std :: mem :: size_of :: < gcm_aes256_ctx > () , 4400usize , concat ! ("Size of: " , stringify ! (gcm_aes256_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < gcm_aes256_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (gcm_aes256_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes256_ctx > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gcm_aes256_ctx) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes256_ctx > ())) . gcm as * const _ as usize } , 4096usize , concat ! ("Offset of field: " , stringify ! (gcm_aes256_ctx) , "::" , stringify ! (gcm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes256_ctx > ())) . cipher as * const _ as usize } , 4160usize , concat ! ("Offset of field: " , stringify ! (gcm_aes256_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_gcm_aes256_set_key (ctx : * mut gcm_aes256_ctx , key : * const u8) ; } extern "C" { pub fn nettle_gcm_aes256_update (ctx : * mut gcm_aes256_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_gcm_aes256_set_iv (ctx : * mut gcm_aes256_ctx , length : usize , iv : * const u8) ; } extern "C" { pub fn nettle_gcm_aes256_encrypt (ctx : * mut gcm_aes256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_aes256_decrypt (ctx : * mut gcm_aes256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_aes256_digest (ctx : * mut gcm_aes256_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct gcm_aes_ctx { pub key : gcm_key , pub gcm : gcm_ctx , pub cipher : aes_ctx , } # [test] fn bindgen_test_layout_gcm_aes_ctx () { assert_eq ! (:: std :: mem :: size_of :: < gcm_aes_ctx > () , 4408usize , concat ! ("Size of: " , stringify ! (gcm_aes_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < gcm_aes_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (gcm_aes_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes_ctx > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gcm_aes_ctx) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes_ctx > ())) . gcm as * const _ as usize } , 4096usize , concat ! ("Offset of field: " , stringify ! (gcm_aes_ctx) , "::" , stringify ! (gcm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_aes_ctx > ())) . cipher as * const _ as usize } , 4160usize , concat ! ("Offset of field: " , stringify ! (gcm_aes_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_gcm_aes_set_key (ctx : * mut gcm_aes_ctx , length : usize , key : * const u8) ; } extern "C" { pub fn nettle_gcm_aes_set_iv (ctx : * mut gcm_aes_ctx , length : usize , iv : * const u8) ; } extern "C" { pub fn nettle_gcm_aes_update (ctx : * mut gcm_aes_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_gcm_aes_encrypt (ctx : * mut gcm_aes_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_aes_decrypt (ctx : * mut gcm_aes_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_aes_digest (ctx : * mut gcm_aes_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct gcm_camellia128_ctx { pub key : gcm_key , pub gcm : gcm_ctx , pub cipher : camellia128_ctx , } # [test] fn bindgen_test_layout_gcm_camellia128_ctx () { assert_eq ! (:: std :: mem :: size_of :: < gcm_camellia128_ctx > () , 4352usize , concat ! ("Size of: " , stringify ! (gcm_camellia128_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < gcm_camellia128_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (gcm_camellia128_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_camellia128_ctx > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gcm_camellia128_ctx) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_camellia128_ctx > ())) . gcm as * const _ as usize } , 4096usize , concat ! ("Offset of field: " , stringify ! (gcm_camellia128_ctx) , "::" , stringify ! (gcm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_camellia128_ctx > ())) . cipher as * const _ as usize } , 4160usize , concat ! ("Offset of field: " , stringify ! (gcm_camellia128_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_gcm_camellia128_set_key (ctx : * mut gcm_camellia128_ctx , key : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia128_set_iv (ctx : * mut gcm_camellia128_ctx , length : usize , iv : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia128_update (ctx : * mut gcm_camellia128_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia128_encrypt (ctx : * mut gcm_camellia128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia128_decrypt (ctx : * mut gcm_camellia128_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia128_digest (ctx : * mut gcm_camellia128_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct gcm_camellia256_ctx { pub key : gcm_key , pub gcm : gcm_ctx , pub cipher : camellia256_ctx , } # [test] fn bindgen_test_layout_gcm_camellia256_ctx () { assert_eq ! (:: std :: mem :: size_of :: < gcm_camellia256_ctx > () , 4416usize , concat ! ("Size of: " , stringify ! (gcm_camellia256_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < gcm_camellia256_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (gcm_camellia256_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_camellia256_ctx > ())) . key as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gcm_camellia256_ctx) , "::" , stringify ! (key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_camellia256_ctx > ())) . gcm as * const _ as usize } , 4096usize , concat ! ("Offset of field: " , stringify ! (gcm_camellia256_ctx) , "::" , stringify ! (gcm))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gcm_camellia256_ctx > ())) . cipher as * const _ as usize } , 4160usize , concat ! ("Offset of field: " , stringify ! (gcm_camellia256_ctx) , "::" , stringify ! (cipher))) ; } extern "C" { pub fn nettle_gcm_camellia256_set_key (ctx : * mut gcm_camellia256_ctx , key : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia256_set_iv (ctx : * mut gcm_camellia256_ctx , length : usize , iv : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia256_update (ctx : * mut gcm_camellia256_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia256_encrypt (ctx : * mut gcm_camellia256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia256_decrypt (ctx : * mut gcm_camellia256_ctx , length : usize , dst : * mut u8 , src : * const u8) ; } extern "C" { pub fn nettle_gcm_camellia256_digest (ctx : * mut gcm_camellia256_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct gosthash94_ctx { pub hash : [u32 ; 8usize] , pub sum : [u32 ; 8usize] , pub count : u64 , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 32usize] , } # [test] fn bindgen_test_layout_gosthash94_ctx () { assert_eq ! (:: std :: mem :: size_of :: < gosthash94_ctx > () , 112usize , concat ! ("Size of: " , stringify ! (gosthash94_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < gosthash94_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (gosthash94_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gosthash94_ctx > ())) . hash as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (gosthash94_ctx) , "::" , stringify ! (hash))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gosthash94_ctx > ())) . sum as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (gosthash94_ctx) , "::" , stringify ! (sum))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gosthash94_ctx > ())) . count as * const _ as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (gosthash94_ctx) , "::" , stringify ! (count))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gosthash94_ctx > ())) . index as * const _ as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (gosthash94_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < gosthash94_ctx > ())) . block as * const _ as usize } , 76usize , concat ! ("Offset of field: " , stringify ! (gosthash94_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_gosthash94_init (ctx : * mut gosthash94_ctx) ; } extern "C" { pub fn nettle_gosthash94_update (ctx : * mut gosthash94_ctx , length : usize , msg : * const u8) ; } extern "C" { pub fn nettle_gosthash94_digest (ctx : * mut gosthash94_ctx , length : usize , result : * mut u8) ; } extern "C" { pub fn nettle_gosthash94cp_update (ctx : * mut gosthash94_ctx , length : usize , msg : * const u8) ; } extern "C" { pub fn nettle_gosthash94cp_digest (ctx : * mut gosthash94_ctx , length : usize , result : * mut u8) ; } extern "C" { pub fn nettle_hkdf_extract (mac_ctx : * mut :: std :: os :: raw :: c_void , update : nettle_hash_update_func , digest : nettle_hash_digest_func , digest_size : usize , secret_size : usize , secret : * const u8 , dst : * mut u8) ; } extern "C" { pub fn nettle_hkdf_expand (mac_ctx : * mut :: std :: os :: raw :: c_void , update : nettle_hash_update_func , digest : nettle_hash_digest_func , digest_size : usize , info_size : usize , info : * const u8 , length : usize , dst : * mut u8) ; } # [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" { pub fn nettle_get_ciphers () -> * const * const nettle_cipher ; } extern "C" { pub static nettle_aes128 : nettle_cipher ; } extern "C" { pub static nettle_aes192 : nettle_cipher ; } extern "C" { pub static nettle_aes256 : nettle_cipher ; } extern "C" { pub static nettle_camellia128 : nettle_cipher ; } extern "C" { pub static nettle_camellia192 : nettle_cipher ; } extern "C" { pub static nettle_camellia256 : nettle_cipher ; } extern "C" { pub static nettle_cast128 : nettle_cipher ; } extern "C" { pub static nettle_serpent128 : nettle_cipher ; } extern "C" { pub static nettle_serpent192 : nettle_cipher ; } extern "C" { pub static nettle_serpent256 : nettle_cipher ; } extern "C" { pub static nettle_twofish128 : nettle_cipher ; } extern "C" { pub static nettle_twofish192 : nettle_cipher ; } extern "C" { pub static nettle_twofish256 : nettle_cipher ; } extern "C" { pub static nettle_arctwo40 : nettle_cipher ; } extern "C" { pub static nettle_arctwo64 : nettle_cipher ; } extern "C" { pub static nettle_arctwo128 : nettle_cipher ; } extern "C" { 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" { pub fn nettle_get_hashes () -> * const * const nettle_hash ; } extern "C" { pub fn nettle_lookup_hash (name : * const :: std :: os :: raw :: c_char) -> * const nettle_hash ; } extern "C" { pub static nettle_md2 : nettle_hash ; } extern "C" { pub static nettle_md4 : nettle_hash ; } extern "C" { pub static nettle_md5 : nettle_hash ; } extern "C" { pub static nettle_gosthash94 : nettle_hash ; } extern "C" { pub static nettle_gosthash94cp : nettle_hash ; } extern "C" { pub static nettle_ripemd160 : nettle_hash ; } extern "C" { pub static nettle_sha1 : nettle_hash ; } extern "C" { pub static nettle_sha224 : nettle_hash ; } extern "C" { pub static nettle_sha256 : nettle_hash ; } extern "C" { pub static nettle_sha384 : nettle_hash ; } extern "C" { pub static nettle_sha512 : nettle_hash ; } extern "C" { pub static nettle_sha512_224 : nettle_hash ; } extern "C" { pub static nettle_sha512_256 : nettle_hash ; } extern "C" { pub static nettle_sha3_224 : nettle_hash ; } extern "C" { pub static nettle_sha3_256 : nettle_hash ; } extern "C" { pub static nettle_sha3_384 : nettle_hash ; } extern "C" { pub static nettle_sha3_512 : nettle_hash ; } extern "C" { pub static nettle_streebog256 : nettle_hash ; } extern "C" { pub static nettle_streebog512 : nettle_hash ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct nettle_mac { 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 key_size : :: std :: os :: raw :: c_uint , pub set_key : nettle_set_key_func , pub update : nettle_hash_update_func , pub digest : nettle_hash_digest_func , } # [test] fn bindgen_test_layout_nettle_mac () { assert_eq ! (:: std :: mem :: size_of :: < nettle_mac > () , 48usize , concat ! ("Size of: " , stringify ! (nettle_mac))) ; assert_eq ! (:: std :: mem :: align_of :: < nettle_mac > () , 8usize , concat ! ("Alignment of " , stringify ! (nettle_mac))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_mac > ())) . name as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (nettle_mac) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_mac > ())) . context_size as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (nettle_mac) , "::" , stringify ! (context_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_mac > ())) . digest_size as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (nettle_mac) , "::" , stringify ! (digest_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_mac > ())) . key_size as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (nettle_mac) , "::" , stringify ! (key_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_mac > ())) . set_key as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (nettle_mac) , "::" , stringify ! (set_key))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_mac > ())) . update as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (nettle_mac) , "::" , stringify ! (update))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < nettle_mac > ())) . digest as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (nettle_mac) , "::" , stringify ! (digest))) ; } # [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" { pub fn nettle_get_aeads () -> * const * const nettle_aead ; } extern "C" { pub static nettle_gcm_aes128 : nettle_aead ; } extern "C" { pub static nettle_gcm_aes192 : nettle_aead ; } extern "C" { pub static nettle_gcm_aes256 : nettle_aead ; } extern "C" { pub static nettle_gcm_camellia128 : nettle_aead ; } extern "C" { pub static nettle_gcm_camellia256 : nettle_aead ; } extern "C" { pub static nettle_eax_aes128 : nettle_aead ; } extern "C" { 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" { pub fn nettle_get_armors () -> * const * const nettle_armor ; } extern "C" { pub static nettle_base64 : nettle_armor ; } extern "C" { pub static nettle_base64url : nettle_armor ; } extern "C" { pub static nettle_base16 : nettle_armor ; } extern "C" { pub fn nettle_get_macs () -> * const * const nettle_mac ; } extern "C" { pub static nettle_cmac_aes128 : nettle_mac ; } extern "C" { pub static nettle_cmac_aes256 : nettle_mac ; } extern "C" { pub static nettle_cmac_des3 : nettle_mac ; } extern "C" { pub static nettle_hmac_md5 : nettle_mac ; } extern "C" { pub static nettle_hmac_ripemd160 : nettle_mac ; } extern "C" { pub static nettle_hmac_sha1 : nettle_mac ; } extern "C" { pub static nettle_hmac_sha224 : nettle_mac ; } extern "C" { pub static nettle_hmac_sha256 : nettle_mac ; } extern "C" { pub static nettle_hmac_sha384 : nettle_mac ; } extern "C" { pub static nettle_hmac_sha512 : nettle_mac ; } extern "C" { pub static nettle_hmac_streebog256 : nettle_mac ; } extern "C" { pub static nettle_hmac_streebog512 : nettle_mac ; } # [repr (C)] # [derive (Copy , Clone)] pub struct md5_ctx { pub state : [u32 ; 4usize] , pub count : u64 , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_md5_ctx () { assert_eq ! (:: std :: mem :: size_of :: < md5_ctx > () , 96usize , concat ! ("Size of: " , stringify ! (md5_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < md5_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (md5_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md5_ctx > ())) . state as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (md5_ctx) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md5_ctx > ())) . count as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (md5_ctx) , "::" , stringify ! (count))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md5_ctx > ())) . index as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (md5_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md5_ctx > ())) . block as * const _ as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (md5_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_md5_init (ctx : * mut md5_ctx) ; } extern "C" { pub fn nettle_md5_update (ctx : * mut md5_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_md5_digest (ctx : * mut md5_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_md5_compress (state : * mut u32 , data : * const u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct ripemd160_ctx { pub state : [u32 ; 5usize] , pub count : u64 , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_ripemd160_ctx () { assert_eq ! (:: std :: mem :: size_of :: < ripemd160_ctx > () , 104usize , concat ! ("Size of: " , stringify ! (ripemd160_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < ripemd160_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (ripemd160_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ripemd160_ctx > ())) . state as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ripemd160_ctx) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ripemd160_ctx > ())) . count as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (ripemd160_ctx) , "::" , stringify ! (count))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ripemd160_ctx > ())) . index as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (ripemd160_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ripemd160_ctx > ())) . block as * const _ as usize } , 36usize , concat ! ("Offset of field: " , stringify ! (ripemd160_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_ripemd160_init (ctx : * mut ripemd160_ctx) ; } extern "C" { pub fn nettle_ripemd160_update (ctx : * mut ripemd160_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_ripemd160_digest (ctx : * mut ripemd160_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct sha1_ctx { pub state : [u32 ; 5usize] , pub count : u64 , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_sha1_ctx () { assert_eq ! (:: std :: mem :: size_of :: < sha1_ctx > () , 104usize , concat ! ("Size of: " , stringify ! (sha1_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < sha1_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (sha1_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha1_ctx > ())) . state as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (sha1_ctx) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha1_ctx > ())) . count as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (sha1_ctx) , "::" , stringify ! (count))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha1_ctx > ())) . index as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (sha1_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha1_ctx > ())) . block as * const _ as usize } , 36usize , concat ! ("Offset of field: " , stringify ! (sha1_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_sha1_init (ctx : * mut sha1_ctx) ; } extern "C" { pub fn nettle_sha1_update (ctx : * mut sha1_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_sha1_digest (ctx : * mut sha1_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_sha1_compress (state : * mut u32 , data : * const u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct sha256_ctx { pub state : [u32 ; 8usize] , pub count : u64 , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_sha256_ctx () { assert_eq ! (:: std :: mem :: size_of :: < sha256_ctx > () , 112usize , concat ! ("Size of: " , stringify ! (sha256_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < sha256_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (sha256_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha256_ctx > ())) . state as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (sha256_ctx) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha256_ctx > ())) . count as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (sha256_ctx) , "::" , stringify ! (count))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha256_ctx > ())) . index as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (sha256_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha256_ctx > ())) . block as * const _ as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (sha256_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_sha256_init (ctx : * mut sha256_ctx) ; } extern "C" { pub fn nettle_sha256_update (ctx : * mut sha256_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_sha256_digest (ctx : * mut sha256_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_sha224_init (ctx : * mut sha256_ctx) ; } extern "C" { pub fn nettle_sha224_digest (ctx : * mut sha256_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct sha512_ctx { pub state : [u64 ; 8usize] , pub count_low : u64 , pub count_high : u64 , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 128usize] , } # [test] fn bindgen_test_layout_sha512_ctx () { assert_eq ! (:: std :: mem :: size_of :: < sha512_ctx > () , 216usize , concat ! ("Size of: " , stringify ! (sha512_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < sha512_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (sha512_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha512_ctx > ())) . state as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (sha512_ctx) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha512_ctx > ())) . count_low as * const _ as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (sha512_ctx) , "::" , stringify ! (count_low))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha512_ctx > ())) . count_high as * const _ as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (sha512_ctx) , "::" , stringify ! (count_high))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha512_ctx > ())) . index as * const _ as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (sha512_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < sha512_ctx > ())) . block as * const _ as usize } , 84usize , concat ! ("Offset of field: " , stringify ! (sha512_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_sha512_init (ctx : * mut sha512_ctx) ; } extern "C" { pub fn nettle_sha512_update (ctx : * mut sha512_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_sha512_digest (ctx : * mut sha512_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_sha384_init (ctx : * mut sha512_ctx) ; } extern "C" { pub fn nettle_sha384_digest (ctx : * mut sha512_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_sha512_224_init (ctx : * mut sha512_ctx) ; } extern "C" { pub fn nettle_sha512_224_digest (ctx : * mut sha512_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_sha512_256_init (ctx : * mut sha512_ctx) ; } extern "C" { pub fn nettle_sha512_256_digest (ctx : * mut sha512_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct streebog512_ctx { pub state : [u64 ; 8usize] , pub count : [u64 ; 8usize] , pub sigma : [u64 ; 8usize] , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_streebog512_ctx () { assert_eq ! (:: std :: mem :: size_of :: < streebog512_ctx > () , 264usize , concat ! ("Size of: " , stringify ! (streebog512_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < streebog512_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (streebog512_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < streebog512_ctx > ())) . state as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (streebog512_ctx) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < streebog512_ctx > ())) . count as * const _ as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (streebog512_ctx) , "::" , stringify ! (count))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < streebog512_ctx > ())) . sigma as * const _ as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (streebog512_ctx) , "::" , stringify ! (sigma))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < streebog512_ctx > ())) . index as * const _ as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (streebog512_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < streebog512_ctx > ())) . block as * const _ as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (streebog512_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_streebog512_init (ctx : * mut streebog512_ctx) ; } extern "C" { pub fn nettle_streebog512_update (ctx : * mut streebog512_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_streebog512_digest (ctx : * mut streebog512_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_streebog256_init (ctx : * mut streebog512_ctx) ; } extern "C" { pub fn nettle_streebog256_digest (ctx : * mut streebog512_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_hmac_set_key (outer : * mut :: std :: os :: raw :: c_void , inner : * mut :: std :: os :: raw :: c_void , state : * mut :: std :: os :: raw :: c_void , hash : * const nettle_hash , length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_update (state : * mut :: std :: os :: raw :: c_void , hash : * const nettle_hash , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_digest (outer : * const :: std :: os :: raw :: c_void , inner : * const :: std :: os :: raw :: c_void , state : * mut :: std :: os :: raw :: c_void , hash : * const nettle_hash , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct hmac_md5_ctx { pub outer : md5_ctx , pub inner : md5_ctx , pub state : md5_ctx , } # [test] fn bindgen_test_layout_hmac_md5_ctx () { assert_eq ! (:: std :: mem :: size_of :: < hmac_md5_ctx > () , 288usize , concat ! ("Size of: " , stringify ! (hmac_md5_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < hmac_md5_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (hmac_md5_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_md5_ctx > ())) . outer as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (hmac_md5_ctx) , "::" , stringify ! (outer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_md5_ctx > ())) . inner as * const _ as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (hmac_md5_ctx) , "::" , stringify ! (inner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_md5_ctx > ())) . state as * const _ as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (hmac_md5_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_hmac_md5_set_key (ctx : * mut hmac_md5_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_md5_update (ctx : * mut hmac_md5_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_md5_digest (ctx : * mut hmac_md5_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct hmac_ripemd160_ctx { pub outer : ripemd160_ctx , pub inner : ripemd160_ctx , pub state : ripemd160_ctx , } # [test] fn bindgen_test_layout_hmac_ripemd160_ctx () { assert_eq ! (:: std :: mem :: size_of :: < hmac_ripemd160_ctx > () , 312usize , concat ! ("Size of: " , stringify ! (hmac_ripemd160_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < hmac_ripemd160_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (hmac_ripemd160_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_ripemd160_ctx > ())) . outer as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (hmac_ripemd160_ctx) , "::" , stringify ! (outer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_ripemd160_ctx > ())) . inner as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (hmac_ripemd160_ctx) , "::" , stringify ! (inner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_ripemd160_ctx > ())) . state as * const _ as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (hmac_ripemd160_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_hmac_ripemd160_set_key (ctx : * mut hmac_ripemd160_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_ripemd160_update (ctx : * mut hmac_ripemd160_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_ripemd160_digest (ctx : * mut hmac_ripemd160_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct hmac_sha1_ctx { pub outer : sha1_ctx , pub inner : sha1_ctx , pub state : sha1_ctx , } # [test] fn bindgen_test_layout_hmac_sha1_ctx () { assert_eq ! (:: std :: mem :: size_of :: < hmac_sha1_ctx > () , 312usize , concat ! ("Size of: " , stringify ! (hmac_sha1_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < hmac_sha1_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (hmac_sha1_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha1_ctx > ())) . outer as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (hmac_sha1_ctx) , "::" , stringify ! (outer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha1_ctx > ())) . inner as * const _ as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (hmac_sha1_ctx) , "::" , stringify ! (inner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha1_ctx > ())) . state as * const _ as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (hmac_sha1_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_hmac_sha1_set_key (ctx : * mut hmac_sha1_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_sha1_update (ctx : * mut hmac_sha1_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_sha1_digest (ctx : * mut hmac_sha1_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct hmac_sha256_ctx { pub outer : sha256_ctx , pub inner : sha256_ctx , pub state : sha256_ctx , } # [test] fn bindgen_test_layout_hmac_sha256_ctx () { assert_eq ! (:: std :: mem :: size_of :: < hmac_sha256_ctx > () , 336usize , concat ! ("Size of: " , stringify ! (hmac_sha256_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < hmac_sha256_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (hmac_sha256_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha256_ctx > ())) . outer as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (hmac_sha256_ctx) , "::" , stringify ! (outer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha256_ctx > ())) . inner as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (hmac_sha256_ctx) , "::" , stringify ! (inner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha256_ctx > ())) . state as * const _ as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (hmac_sha256_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_hmac_sha256_set_key (ctx : * mut hmac_sha256_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_sha256_update (ctx : * mut hmac_sha256_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_sha256_digest (ctx : * mut hmac_sha256_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_hmac_sha224_set_key (ctx : * mut hmac_sha256_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_sha224_digest (ctx : * mut hmac_sha256_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct hmac_sha512_ctx { pub outer : sha512_ctx , pub inner : sha512_ctx , pub state : sha512_ctx , } # [test] fn bindgen_test_layout_hmac_sha512_ctx () { assert_eq ! (:: std :: mem :: size_of :: < hmac_sha512_ctx > () , 648usize , concat ! ("Size of: " , stringify ! (hmac_sha512_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < hmac_sha512_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (hmac_sha512_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha512_ctx > ())) . outer as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (hmac_sha512_ctx) , "::" , stringify ! (outer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha512_ctx > ())) . inner as * const _ as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (hmac_sha512_ctx) , "::" , stringify ! (inner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_sha512_ctx > ())) . state as * const _ as usize } , 432usize , concat ! ("Offset of field: " , stringify ! (hmac_sha512_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_hmac_sha512_set_key (ctx : * mut hmac_sha512_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_sha512_update (ctx : * mut hmac_sha512_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_sha512_digest (ctx : * mut hmac_sha512_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_hmac_sha384_set_key (ctx : * mut hmac_sha512_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_sha384_digest (ctx : * mut hmac_sha512_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct hmac_gosthash94_ctx { pub outer : gosthash94_ctx , pub inner : gosthash94_ctx , pub state : gosthash94_ctx , } # [test] fn bindgen_test_layout_hmac_gosthash94_ctx () { assert_eq ! (:: std :: mem :: size_of :: < hmac_gosthash94_ctx > () , 336usize , concat ! ("Size of: " , stringify ! (hmac_gosthash94_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < hmac_gosthash94_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (hmac_gosthash94_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_gosthash94_ctx > ())) . outer as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (hmac_gosthash94_ctx) , "::" , stringify ! (outer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_gosthash94_ctx > ())) . inner as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (hmac_gosthash94_ctx) , "::" , stringify ! (inner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_gosthash94_ctx > ())) . state as * const _ as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (hmac_gosthash94_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_hmac_gosthash94_set_key (ctx : * mut hmac_gosthash94_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_gosthash94_update (ctx : * mut hmac_gosthash94_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_gosthash94_digest (ctx : * mut hmac_gosthash94_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct hmac_gosthash94cp_ctx { pub outer : gosthash94_ctx , pub inner : gosthash94_ctx , pub state : gosthash94_ctx , } # [test] fn bindgen_test_layout_hmac_gosthash94cp_ctx () { assert_eq ! (:: std :: mem :: size_of :: < hmac_gosthash94cp_ctx > () , 336usize , concat ! ("Size of: " , stringify ! (hmac_gosthash94cp_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < hmac_gosthash94cp_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (hmac_gosthash94cp_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_gosthash94cp_ctx > ())) . outer as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (hmac_gosthash94cp_ctx) , "::" , stringify ! (outer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_gosthash94cp_ctx > ())) . inner as * const _ as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (hmac_gosthash94cp_ctx) , "::" , stringify ! (inner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_gosthash94cp_ctx > ())) . state as * const _ as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (hmac_gosthash94cp_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_hmac_gosthash94cp_set_key (ctx : * mut hmac_gosthash94cp_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_gosthash94cp_update (ctx : * mut hmac_gosthash94cp_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_gosthash94cp_digest (ctx : * mut hmac_gosthash94cp_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct hmac_streebog512_ctx { pub outer : streebog512_ctx , pub inner : streebog512_ctx , pub state : streebog512_ctx , } # [test] fn bindgen_test_layout_hmac_streebog512_ctx () { assert_eq ! (:: std :: mem :: size_of :: < hmac_streebog512_ctx > () , 792usize , concat ! ("Size of: " , stringify ! (hmac_streebog512_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < hmac_streebog512_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (hmac_streebog512_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_streebog512_ctx > ())) . outer as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (hmac_streebog512_ctx) , "::" , stringify ! (outer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_streebog512_ctx > ())) . inner as * const _ as usize } , 264usize , concat ! ("Offset of field: " , stringify ! (hmac_streebog512_ctx) , "::" , stringify ! (inner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < hmac_streebog512_ctx > ())) . state as * const _ as usize } , 528usize , concat ! ("Offset of field: " , stringify ! (hmac_streebog512_ctx) , "::" , stringify ! (state))) ; } extern "C" { pub fn nettle_hmac_streebog512_set_key (ctx : * mut hmac_streebog512_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_streebog512_update (ctx : * mut hmac_streebog512_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_hmac_streebog512_digest (ctx : * mut hmac_streebog512_ctx , length : usize , digest : * mut u8) ; } extern "C" { pub fn nettle_hmac_streebog256_set_key (ctx : * mut hmac_streebog512_ctx , key_length : usize , key : * const u8) ; } extern "C" { pub fn nettle_hmac_streebog256_digest (ctx : * mut hmac_streebog512_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct knuth_lfib_ctx { pub x : [u32 ; 100usize] , pub index : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout_knuth_lfib_ctx () { assert_eq ! (:: std :: mem :: size_of :: < knuth_lfib_ctx > () , 404usize , concat ! ("Size of: " , stringify ! (knuth_lfib_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < knuth_lfib_ctx > () , 4usize , concat ! ("Alignment of " , stringify ! (knuth_lfib_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < knuth_lfib_ctx > ())) . x as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (knuth_lfib_ctx) , "::" , stringify ! (x))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < knuth_lfib_ctx > ())) . index as * const _ as usize } , 400usize , concat ! ("Offset of field: " , stringify ! (knuth_lfib_ctx) , "::" , stringify ! (index))) ; } extern "C" { pub fn nettle_knuth_lfib_init (ctx : * mut knuth_lfib_ctx , seed : u32) ; } extern "C" { pub fn nettle_knuth_lfib_get (ctx : * mut knuth_lfib_ctx) -> u32 ; } extern "C" { pub fn nettle_knuth_lfib_get_array (ctx : * mut knuth_lfib_ctx , n : usize , a : * mut u32) ; } extern "C" { pub fn nettle_knuth_lfib_random (ctx : * mut knuth_lfib_ctx , n : usize , dst : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct md2_ctx { pub C : [u8 ; 16usize] , pub X : [u8 ; 48usize] , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 16usize] , } # [test] fn bindgen_test_layout_md2_ctx () { assert_eq ! (:: std :: mem :: size_of :: < md2_ctx > () , 84usize , concat ! ("Size of: " , stringify ! (md2_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < md2_ctx > () , 4usize , concat ! ("Alignment of " , stringify ! (md2_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md2_ctx > ())) . C as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (md2_ctx) , "::" , stringify ! (C))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md2_ctx > ())) . X as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (md2_ctx) , "::" , stringify ! (X))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md2_ctx > ())) . index as * const _ as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (md2_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md2_ctx > ())) . block as * const _ as usize } , 68usize , concat ! ("Offset of field: " , stringify ! (md2_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_md2_init (ctx : * mut md2_ctx) ; } extern "C" { pub fn nettle_md2_update (ctx : * mut md2_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_md2_digest (ctx : * mut md2_ctx , length : usize , digest : * mut u8) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct md4_ctx { pub state : [u32 ; 4usize] , pub count : u64 , pub index : :: std :: os :: raw :: c_uint , pub block : [u8 ; 64usize] , } # [test] fn bindgen_test_layout_md4_ctx () { assert_eq ! (:: std :: mem :: size_of :: < md4_ctx > () , 96usize , concat ! ("Size of: " , stringify ! (md4_ctx))) ; assert_eq ! (:: std :: mem :: align_of :: < md4_ctx > () , 8usize , concat ! ("Alignment of " , stringify ! (md4_ctx))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md4_ctx > ())) . state as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (md4_ctx) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md4_ctx > ())) . count as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (md4_ctx) , "::" , stringify ! (count))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md4_ctx > ())) . index as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (md4_ctx) , "::" , stringify ! (index))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < md4_ctx > ())) . block as * const _ as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (md4_ctx) , "::" , stringify ! (block))) ; } extern "C" { pub fn nettle_md4_init (ctx : * mut md4_ctx) ; } extern "C" { pub fn nettle_md4_update (ctx : * mut md4_ctx , length : usize , data : * const u8) ; } extern "C" { pub fn nettle_md4_digest (ctx : * mut md4_ctx , length : usize , digest : * mut u8) ; } pub const idtype_t_P_ALL : idtype_t = 0 ; pub const idtype_t_P_PID : idtype_t = 1 ; pub const idtype_t_P_PGID : idtype_t = 2 ; pub type idtype_t = :: std :: os :: raw :: c_uint ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < div_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < div_t > ())) . rem as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ldiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < ldiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < lldiv_t > ())) . quot as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < lldiv_t > ())) . rem as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type off_t = __off_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __sigset_t > ())) . __val as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__sigset_t) , "::" , stringify ! (__val))) ; } pub type sigset_t = __sigset_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < timeval > ())) . tv_sec as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < timeval > ())) . tv_usec as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_usec))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < timespec > ())) . tv_sec as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < timespec > ())) . tv_nsec as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < fd_set > ())) . __fds_bits as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (fd_set) , "::" , stringify ! (__fds_bits))) ; } pub type fd_mask = __fd_mask ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_list { pub __prev : * mut __pthread_internal_list , pub __next : * mut __pthread_internal_list , } # [test] fn bindgen_test_layout___pthread_internal_list () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_internal_list > ())) . __prev as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_internal_list > ())) . __next as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } pub type __pthread_list_t = __pthread_internal_list ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_internal_slist { pub __next : * mut __pthread_internal_slist , } # [test] fn bindgen_test_layout___pthread_internal_slist () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_internal_slist > ())) . __next as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __elision : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_mutex_s > ())) . __lock as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_mutex_s > ())) . __count as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_mutex_s > ())) . __owner as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_mutex_s > ())) . __nusers as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_mutex_s > ())) . __kind as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_mutex_s > ())) . __spins as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_mutex_s > ())) . __elision as * const _ as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__elision))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_mutex_s > ())) . __list as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __rwelision : :: std :: os :: raw :: c_schar , pub __pad1 : [:: std :: os :: raw :: c_uchar ; 7usize] , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __readers as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__readers))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __writers as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__writers))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __wrphase_futex as * const _ as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__wrphase_futex))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __writers_futex as * const _ as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__writers_futex))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __pad3 as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad3))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __pad4 as * const _ as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad4))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __cur_writer as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__cur_writer))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __shared as * const _ as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__shared))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __rwelision as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__rwelision))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __pad1 as * const _ as usize } , 33usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __pad2 as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad2))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_rwlock_arch_t > ())) . __flags as * const _ as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__flags))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct __pthread_cond_s { pub __bindgen_anon_1 : __pthread_cond_s__bindgen_ty_1 , pub __bindgen_anon_2 : __pthread_cond_s__bindgen_ty_2 , pub __g_refs : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , } # [repr (C)] # [derive (Copy , Clone)] pub union __pthread_cond_s__bindgen_ty_1 { pub __wseq : :: std :: os :: raw :: c_ulonglong , pub __wseq32 : __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : u64 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > ())) . __low as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (__low))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 > ())) . __high as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (__high))) ; } # [test] fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_1 > ())) . __wseq as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s__bindgen_ty_1) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_1 > ())) . __wseq32 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s__bindgen_ty_1) , "::" , stringify ! (__wseq32))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union __pthread_cond_s__bindgen_ty_2 { pub __g1_start : :: std :: os :: raw :: c_ulonglong , pub __g1_start32 : __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 , _bindgen_union_align : u64 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2__bindgen_ty_1 () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s__bindgen_ty_2__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s__bindgen_ty_2__bindgen_ty_1))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > ())) . __low as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s__bindgen_ty_2__bindgen_ty_1) , "::" , stringify ! (__low))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 > ())) . __high as * const _ as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s__bindgen_ty_2__bindgen_ty_1) , "::" , stringify ! (__high))) ; } # [test] fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2 () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s__bindgen_ty_2 > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s__bindgen_ty_2))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_2 > ())) . __g1_start as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s__bindgen_ty_2) , "::" , stringify ! (__g1_start))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s__bindgen_ty_2 > ())) . __g1_start32 as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s__bindgen_ty_2) , "::" , stringify ! (__g1_start32))) ; } # [test] fn bindgen_test_layout___pthread_cond_s () { assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s > ())) . __g_refs as * const _ as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_refs))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s > ())) . __g_size as * const _ as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s > ())) . __g1_orig_size as * const _ as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s > ())) . __wrefs as * const _ as usize } , 36usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < __pthread_cond_s > ())) . __g_signals as * const _ as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , _bindgen_union_align : u32 , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < pthread_mutexattr_t > ())) . __size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < pthread_mutexattr_t > ())) . __align as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , _bindgen_union_align : u32 , } # [test] fn bindgen_test_layout_pthread_condattr_t () { assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < pthread_condattr_t > ())) . __size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < pthread_condattr_t > ())) . __align as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , _bindgen_union_align : [u64 ; 7usize] , } # [test] fn bindgen_test_layout_pthread_attr_t () { assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < pthread_attr_t > ())) . __size as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { & (* (:: std :: ptr :: null :: < pthread_attr_t > ())) . __align as * const _ as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union