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 = 5;
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-xrY6Wh/gmp-6.2.0+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 = 0;
pub const __GNU_MP_RELEASE: u32 = 60200;
pub const BLOWFISH_BLOCK_SIZE: u32 = 8;
pub const BLOWFISH_MIN_KEY_SIZE: u32 = 8;
pub const BLOWFISH_MAX_KEY_SIZE: u32 = 56;
pub const BLOWFISH_KEY_SIZE: u32 = 16;
pub const BLOWFISH128_KEY_SIZE: u32 = 16;
pub const _BLOWFISH_ROUNDS: u32 = 16;
pub const CAMELLIA_BLOCK_SIZE: u32 = 16;
pub const CAMELLIA128_KEY_SIZE: u32 = 16;
pub const CAMELLIA192_KEY_SIZE: u32 = 24;
pub const CAMELLIA256_KEY_SIZE: u32 = 32;
pub const _CAMELLIA128_NKEYS: u32 = 24;
pub const _CAMELLIA256_NKEYS: u32 = 32;
pub const CAST128_BLOCK_SIZE: u32 = 8;
pub const CAST5_MIN_KEY_SIZE: u32 = 5;
pub const CAST5_MAX_KEY_SIZE: u32 = 16;
pub const CAST128_KEY_SIZE: u32 = 16;
pub const CCM_BLOCK_SIZE: u32 = 16;
pub const CCM_DIGEST_SIZE: u32 = 16;
pub const CCM_MIN_NONCE_SIZE: u32 = 7;
pub const CCM_MAX_NONCE_SIZE: u32 = 14;
pub const CHACHA_KEY_SIZE: u32 = 32;
pub const CHACHA_BLOCK_SIZE: u32 = 64;
pub const CHACHA_NONCE_SIZE: u32 = 8;
pub const CHACHA_NONCE96_SIZE: u32 = 12;
pub const _CHACHA_STATE_LENGTH: u32 = 16;
pub const POLY1305_DIGEST_SIZE: u32 = 16;
pub const POLY1305_BLOCK_SIZE: u32 = 16;
pub const POLY1305_KEY_SIZE: u32 = 16;
pub const POLY1305_AES_KEY_SIZE: u32 = 32;
pub const POLY1305_AES_DIGEST_SIZE: u32 = 16;
pub const POLY1305_AES_NONCE_SIZE: u32 = 16;
pub const CHACHA_POLY1305_BLOCK_SIZE: u32 = 64;
pub const CHACHA_POLY1305_KEY_SIZE: u32 = 32;
pub const CHACHA_POLY1305_NONCE_SIZE: u32 = 12;
pub const CHACHA_POLY1305_DIGEST_SIZE: u32 = 16;
pub const CURVE25519_SIZE: u32 = 32;
pub const NETTLE_CURVE25519_RFC7748: u32 = 1;
pub const DES_KEY_SIZE: u32 = 8;
pub const DES_BLOCK_SIZE: u32 = 8;
pub const _DES_KEY_LENGTH: u32 = 32;
pub const DES3_KEY_SIZE: u32 = 24;
pub const DES3_BLOCK_SIZE: u32 = 8;
pub const DSA_SHA1_MIN_P_BITS: u32 = 512;
pub const DSA_SHA1_Q_OCTETS: u32 = 20;
pub const DSA_SHA1_Q_BITS: u32 = 160;
pub const DSA_SHA256_MIN_P_BITS: u32 = 1024;
pub const DSA_SHA256_Q_OCTETS: u32 = 32;
pub const DSA_SHA256_Q_BITS: u32 = 256;
pub const EAX_BLOCK_SIZE: u32 = 16;
pub const EAX_DIGEST_SIZE: u32 = 16;
pub const EAX_IV_SIZE: u32 = 16;
pub const ED25519_KEY_SIZE: u32 = 32;
pub const ED25519_SIGNATURE_SIZE: u32 = 64;
pub const GCM_BLOCK_SIZE: u32 = 16;
pub const GCM_IV_SIZE: u32 = 12;
pub const GCM_DIGEST_SIZE: u32 = 16;
pub const GCM_TABLE_BITS: u32 = 8;
pub const GOSTHASH94_BLOCK_SIZE: u32 = 32;
pub const GOSTHASH94_DIGEST_SIZE: u32 = 32;
pub const GOSTHASH94_DATA_SIZE: u32 = 32;
pub const MD5_DIGEST_SIZE: u32 = 16;
pub const MD5_BLOCK_SIZE: u32 = 64;
pub const MD5_DATA_SIZE: u32 = 64;
pub const _MD5_DIGEST_LENGTH: u32 = 4;
pub const RIPEMD160_DIGEST_SIZE: u32 = 20;
pub const RIPEMD160_BLOCK_SIZE: u32 = 64;
pub const RIPEMD160_DATA_SIZE: u32 = 64;
pub const _RIPEMD160_DIGEST_LENGTH: u32 = 5;
pub const 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 _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_)
)
);
}
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;
}
#[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_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;
}
#[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_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_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_crypt(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)
)
);
}
extern "C" {
pub fn nettle_poly1305_set_key(ctx: *mut poly1305_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_poly1305_digest(ctx: *mut poly1305_ctx, s: *mut nettle_block16);
}
extern "C" {
pub fn _nettle_poly1305_block(
ctx: *mut poly1305_ctx,
m: *const u8,
high: ::std::os::raw::c_uint,
);
}
#[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_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;
}
#[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 length: u64,
pub message: [u8; 32usize],
}
#[test]
fn bindgen_test_layout_gosthash94_ctx() {
assert_eq!(
::std::mem::size_of::<gosthash94_ctx>(),
104usize,
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>())).length as *const _ as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(gosthash94_ctx),
"::",
stringify!(length)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<gosthash94_ctx>())).message as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(gosthash94_ctx),
"::",
stringify!(message)
)
);
}
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_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(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);
}
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(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 pthread_mutex_t {
pub __data: __pthread_mutex_s,
pub __size: [::std::os::raw::c_char; 40usize],
pub __align: ::std::os::raw::c_long,
_bindgen_union_align: [u64; 5usize],
}
#[test]
fn bindgen_test_layout_pthread_mutex_t() {
assert_eq!(
::std::mem::size_of::<pthread_mutex_t>(),
40usize,
concat!("Size of: ", stringify!(pthread_mutex_t))
);
assert_eq!(
::std::mem::align_of::<pthread_mutex_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_mutex_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__data as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__align as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
pub __data: __pthread_cond_s,
pub __size: [::std::os::raw::c_char; 48usize],
pub __align: ::std::os::raw::c_longlong,
_bindgen_union_align: [u64; 6usize],
}
#[test]
fn bindgen_test_layout_pthread_cond_t() {
assert_eq!(
::std::mem::size_of::<pthread_cond_t>(),
48usize,
concat!("Size of: ", stringify!(pthread_cond_t))
);
assert_eq!(
::std::mem::align_of::<pthread_cond_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_cond_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__data as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__align as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
pub __data: __pthread_rwlock_arch_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_rwlock_t() {
assert_eq!(
::std::mem::size_of::<pthread_rwlock_t>(),
56usize,
concat!("Size of: ", stringify!(pthread_rwlock_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlock_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_rwlock_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__data as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__align as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
pub __size: [::std::os::raw::c_char; 8usize],
pub __align: ::std::os::raw::c_long,
_bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_pthread_rwlockattr_t() {
assert_eq!(
::std::mem::size_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Size of: ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlockattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__align as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlockattr_t),
"::",
stringify!(__align)
)
);
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
pub __size: [::std::os::raw::c_char; 32usize],
pub __align: ::std::os::raw::c_long,
_bindgen_union_align: [u64; 4usize],
}
#[test]
fn bindgen_test_layout_pthread_barrier_t() {
assert_eq!(
::std::mem::size_of::<pthread_barrier_t>(),
32usize,
concat!("Size of: ", stringify!(pthread_barrier_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrier_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_barrier_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrier_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__align as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrier_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_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_barrierattr_t() {
assert_eq!(
::std::mem::size_of::<pthread_barrierattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrierattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrierattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__align as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrierattr_t),
"::",
stringify!(__align)
)
);
}
extern "C" {
pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn srandom(__seed: ::std::os::raw::c_uint);
}
extern "C" {
pub fn initstate(
__seed: ::std::os::raw::c_uint,
__statebuf: *mut ::std::os::raw::c_char,
__statelen: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct random_data {
pub fptr: *mut i32,
pub rptr: *mut i32,
pub state: *mut i32,
pub rand_type: ::std::os::raw::c_int,
pub rand_deg: ::std::os::raw::c_int,
pub rand_sep: ::std::os::raw::c_int,
pub end_ptr: *mut i32,
}
#[test]
fn bindgen_test_layout_random_data() {
assert_eq!(
::std::mem::size_of::<random_data>(),
48usize,
concat!("Size of: ", stringify!(random_data))
);
assert_eq!(
::std::mem::align_of::<random_data>(),
8usize,
concat!("Alignment of ", stringify!(random_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).fptr as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(fptr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).rptr as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rptr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).state as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).rand_type as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_type)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).rand_deg as *const _ as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_deg)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).rand_sep as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_sep)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<random_data>())).end_ptr as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(end_ptr)
)
);
}
extern "C" {
pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srandom_r(
__seed: ::std::os::raw::c_uint,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn initstate_r(
__seed: ::std::os::raw::c_uint,
__statebuf: *mut ::std::os::raw::c_char,
__statelen: usize,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setstate_r(
__statebuf: *mut ::std::os::raw::c_char,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand(__seed: ::std::os::raw::c_uint);
}
extern "C" {
pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn drand48() -> f64;
}
extern "C" {
pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn srand48(__seedval: ::std::os::raw::c_long);
}
extern "C" {
pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
pub fn lcong48(__param: *mut ::std::os::raw::c_ushort);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drand48_data {
pub __x: [::std::os::raw::c_ushort; 3usize],
pub __old_x: [::std::os::raw::c_ushort; 3usize],
pub __c: ::std::os::raw::c_ushort,
pub __init: ::std::os::raw::c_ushort,
pub __a: ::std::os::raw::c_ulonglong,
}
#[test]
fn bindgen_test_layout_drand48_data() {
assert_eq!(
::std::mem::size_of::<drand48_data>(),
24usize,
concat!("Size of: ", stringify!(drand48_data))
);
assert_eq!(
::std::mem::align_of::<drand48_data>(),
8usize,
concat!("Alignment of ", stringify!(drand48_data))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__x as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__x)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__old_x as *const _ as usize },
6usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__old_x)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__c as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__c)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__init as *const _ as usize },
14usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__init)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<drand48_data>())).__a as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__a)
)
);
}
extern "C" {
pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn erand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lrand48_r(
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nrand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mrand48_r(
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn jrand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand48_r(
__seedval: ::std::os::raw::c_long,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn seed48_r(
__seed16v: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcong48_r(
__param: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn calloc(
__nmemb: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn realloc(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn reallocarray(
__ptr: *mut ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn free(__ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut ::std::os::raw::c_void,
__alignment: usize,
__size: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn aligned_alloc(__alignment: usize, __size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn abort();
}
extern "C" {
pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn at_quick_exit(
__func: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn on_exit(
__func: ::std::option::Option<
unsafe extern "C" fn(
__status: ::std::os::raw::c_int,
__arg: *mut ::std::os::raw::c_void,
),
>,
__arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn exit(__status: ::std::os::raw::c_int);
}
extern "C" {
pub fn quick_exit(__status: ::std::os::raw::c_int);
}
extern "C" {
pub fn _Exit(__status: ::std::os::raw::c_int);
}
extern "C" {
pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setenv(
__name: *const ::std::os::raw::c_char,
__value: *const ::std::os::raw::c_char,
__replace: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clearenv() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkstemps(
__template: *mut ::std::os::raw::c_char,
__suffixlen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn realpath(
__name: *const ::std::os::raw::c_char,
__resolved: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
pub type __compar_fn_t = ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn bsearch(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn qsort(
__base: *mut ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
);
}
extern "C" {
pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
pub fn lldiv(
__numer: ::std::os::raw::c_longlong,
__denom: ::std::os::raw::c_longlong,
) -> lldiv_t;
}
extern "C" {
pub fn ecvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn gcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ecvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fcvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbtowc(
__pwc: *mut wchar_t,
__s: *const ::std::os::raw::c_char,
__n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getsubopt(
__optionp: *mut *mut ::std::os::raw::c_char,
__tokens: *const *mut ::std::os::raw::c_char,
__valuep: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_memxor(
dst: *mut ::std::os::raw::c_void,
src: *const ::std::os::raw::c_void,
n: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn nettle_memxor3(
dst: *mut ::std::os::raw::c_void,
a: *const ::std::os::raw::c_void,
b: *const ::std::os::raw::c_void,
n: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn nettle_memeql_sec(
a: *const ::std::os::raw::c_void,
b: *const ::std::os::raw::c_void,
n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_cnd_memcpy(
cnd: ::std::os::raw::c_int,
dst: *mut ::std::os::raw::c_void,
src: *const ::std::os::raw::c_void,
n: usize,
);
}
extern "C" {
pub fn nettle_pbkdf2(
mac_ctx: *mut ::std::os::raw::c_void,
update: nettle_hash_update_func,
digest: nettle_hash_digest_func,
digest_size: usize,
iterations: ::std::os::raw::c_uint,
salt_length: usize,
salt: *const u8,
length: usize,
dst: *mut u8,
);
}
extern "C" {
pub fn nettle_pbkdf2_hmac_sha1(
key_length: usize,
key: *const u8,
iterations: ::std::os::raw::c_uint,
salt_length: usize,
salt: *const u8,
length: usize,
dst: *mut u8,
);
}
extern "C" {
pub fn nettle_pbkdf2_hmac_sha256(
key_length: usize,
key: *const u8,
iterations: ::std::os::raw::c_uint,
salt_length: usize,
salt: *const u8,
length: usize,
dst: *mut u8,
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tm {
pub tm_sec: ::std::os::raw::c_int,
pub tm_min: ::std::os::raw::c_int,
pub tm_hour: ::std::os::raw::c_int,
pub tm_mday: ::std::os::raw::c_int,
pub tm_mon: ::std::os::raw::c_int,
pub tm_year: ::std::os::raw::c_int,
pub tm_wday: ::std::os::raw::c_int,
pub tm_yday: ::std::os::raw::c_int,
pub tm_isdst: ::std::os::raw::c_int,
pub tm_gmtoff: ::std::os::raw::c_long,
pub tm_zone: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_tm() {
assert_eq!(
::std::mem::size_of::<tm>(),
56usize,
concat!("Size of: ", stringify!(tm))
);
assert_eq!(
::std::mem::align_of::<tm>(),
8usize,
concat!("Alignment of ", stringify!(tm))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_sec as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_sec)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_min as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_min)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_hour as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_hour)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_mday as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_mday)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_mon as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_mon)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_year as *const _ as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_year)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_wday as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_wday)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_yday as *const _ as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_yday)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_isdst as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_isdst)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_gmtoff as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_gmtoff)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<tm>())).tm_zone as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_zone)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct itimerspec {
pub it_interval: timespec,
pub it_value: timespec,
}
#[test]
fn bindgen_test_layout_itimerspec() {
assert_eq!(
::std::mem::size_of::<itimerspec>(),
32usize,
concat!("Size of: ", stringify!(itimerspec))
);
assert_eq!(
::std::mem::align_of::<itimerspec>(),
8usize,
concat!("Alignment of ", stringify!(itimerspec))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<itimerspec>())).it_interval as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(itimerspec),
"::",
stringify!(it_interval)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<itimerspec>())).it_value as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(itimerspec),
"::",
stringify!(it_value)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigevent {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_struct {
pub __locales: [*mut __locale_data; 13usize],
pub __ctype_b: *const ::std::os::raw::c_ushort,
pub __ctype_tolower: *const ::std::os::raw::c_int,
pub __ctype_toupper: *const ::std::os::raw::c_int,
pub __names: [*const ::std::os::raw::c_char; 13usize],
}
#[test]
fn bindgen_test_layout___locale_struct() {
assert_eq!(
::std::mem::size_of::<__locale_struct>(),
232usize,
concat!("Size of: ", stringify!(__locale_struct))
);
assert_eq!(
::std::mem::align_of::<__locale_struct>(),
8usize,
concat!("Alignment of ", stringify!(__locale_struct))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__locales as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__locales)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_b as *const _ as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_b)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_tolower as *const _ as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_tolower)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__ctype_toupper as *const _ as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_toupper)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__locale_struct>())).__names as *const _ as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__names)
)
);
}
pub type __locale_t = *mut __locale_struct;
pub type locale_t = __locale_t;
extern "C" {
pub fn clock() -> clock_t;
}
extern "C" {
pub fn time(__timer: *mut time_t) -> time_t;
}
extern "C" {
pub fn difftime(__time1: time_t, __time0: time_t) -> f64;
}
extern "C" {
pub fn mktime(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn strftime(
__s: *mut ::std::os::raw::c_char,
__maxsize: usize,
__format: *const ::std::os::raw::c_char,
__tp: *const tm,
) -> usize;
}
extern "C" {
pub fn strftime_l(
__s: *mut ::std::os::raw::c_char,
__maxsize: usize,
__format: *const ::std::os::raw::c_char,
__tp: *const tm,
__loc: locale_t,
) -> usize;
}
extern "C" {
pub fn gmtime(__timer: *const time_t) -> *mut tm;
}
extern "C" {
pub fn localtime(__timer: *const time_t) -> *mut tm;
}
extern "C" {
pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
}
extern "C" {
pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
}
extern "C" {
pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn asctime_r(
__tp: *const tm,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ctime_r(
__timer: *const time_t,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize];
}
extern "C" {
pub static mut __daylight: ::std::os::raw::c_int;
}
extern "C" {
pub static mut __timezone: ::std::os::raw::c_long;
}
extern "C" {
pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize];
}
extern "C" {
pub fn tzset();
}
extern "C" {
pub static mut daylight: ::std::os::raw::c_int;
}
extern "C" {
pub static mut timezone: ::std::os::raw::c_long;
}
extern "C" {
pub fn timegm(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn timelocal(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nanosleep(
__requested_time: *const timespec,
__remaining: *mut timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_nanosleep(
__clock_id: clockid_t,
__flags: ::std::os::raw::c_int,
__req: *const timespec,
__rem: *mut timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_create(
__clock_id: clockid_t,
__evp: *mut sigevent,
__timerid: *mut timer_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_settime(
__timerid: timer_t,
__flags: ::std::os::raw::c_int,
__value: *const itimerspec,
__ovalue: *mut itimerspec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timespec_get(
__ts: *mut timespec,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_uint32(buffer: *mut nettle_buffer, i: u32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_uint16(
buffer: *mut nettle_buffer,
i: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_mpi(
buffer: *mut nettle_buffer,
x: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_string(
buffer: *mut nettle_buffer,
length: ::std::os::raw::c_uint,
s: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_length(
buffer: *mut nettle_buffer,
length: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_header(
buffer: *mut nettle_buffer,
tag: ::std::os::raw::c_uint,
length: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_header_length(
buffer: *mut nettle_buffer,
start: ::std::os::raw::c_uint,
field_size: ::std::os::raw::c_uint,
);
}
extern "C" {
pub fn nettle_pgp_sub_packet_start(buffer: *mut nettle_buffer) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn nettle_pgp_put_sub_packet(
buffer: *mut nettle_buffer,
type_: ::std::os::raw::c_uint,
length: ::std::os::raw::c_uint,
data: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_sub_packet_end(buffer: *mut nettle_buffer, start: ::std::os::raw::c_uint);
}
extern "C" {
pub fn nettle_pgp_put_public_rsa_key(
arg1: *mut nettle_buffer,
key: *const rsa_public_key,
timestamp: time_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_rsa_sha1_signature(
buffer: *mut nettle_buffer,
key: *const rsa_private_key,
keyid: *const u8,
type_: ::std::os::raw::c_uint,
hash: *mut sha1_ctx,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_put_userid(
buffer: *mut nettle_buffer,
length: ::std::os::raw::c_uint,
name: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pgp_crc24(length: ::std::os::raw::c_uint, data: *const u8) -> u32;
}
extern "C" {
pub fn nettle_pgp_armor(
buffer: *mut nettle_buffer,
tag: *const ::std::os::raw::c_char,
length: ::std::os::raw::c_uint,
data: *const u8,
) -> ::std::os::raw::c_int;
}
pub const pgp_lengths_PGP_LENGTH_ONE_OCTET: pgp_lengths = 0;
pub const pgp_lengths_PGP_LENGTH_TWO_OCTETS: pgp_lengths = 192;
pub const pgp_lengths_PGP_LENGTH_FOUR_OCTETS: pgp_lengths = 8384;
pub type pgp_lengths = ::std::os::raw::c_uint;
pub const pgp_public_key_algorithm_PGP_RSA: pgp_public_key_algorithm = 1;
pub const pgp_public_key_algorithm_PGP_RSA_ENCRYPT: pgp_public_key_algorithm = 2;
pub const pgp_public_key_algorithm_PGP_RSA_SIGN: pgp_public_key_algorithm = 3;
pub const pgp_public_key_algorithm_PGP_EL_GAMAL_ENCRYPT: pgp_public_key_algorithm = 16;
pub const pgp_public_key_algorithm_PGP_DSA: pgp_public_key_algorithm = 17;
pub const pgp_public_key_algorithm_PGP_EL_GAMAL: pgp_public_key_algorithm = 20;
pub type pgp_public_key_algorithm = ::std::os::raw::c_uint;
pub const pgp_symmetric_algorithm_PGP_PLAINTEXT: pgp_symmetric_algorithm = 0;
pub const pgp_symmetric_algorithm_PGP_IDEA: pgp_symmetric_algorithm = 1;
pub const pgp_symmetric_algorithm_PGP_3DES: pgp_symmetric_algorithm = 2;
pub const pgp_symmetric_algorithm_PGP_CAST5: pgp_symmetric_algorithm = 3;
pub const pgp_symmetric_algorithm_PGP_BLOWFISH: pgp_symmetric_algorithm = 4;
pub const pgp_symmetric_algorithm_PGP_SAFER_SK: pgp_symmetric_algorithm = 5;
pub const pgp_symmetric_algorithm_PGP_AES128: pgp_symmetric_algorithm = 7;
pub const pgp_symmetric_algorithm_PGP_AES192: pgp_symmetric_algorithm = 8;
pub const pgp_symmetric_algorithm_PGP_AES256: pgp_symmetric_algorithm = 9;
pub type pgp_symmetric_algorithm = ::std::os::raw::c_uint;
pub const pgp_compression_algorithm_PGP_UNCOMPRESSED: pgp_compression_algorithm = 0;
pub const pgp_compression_algorithm_PGP_ZIP: pgp_compression_algorithm = 1;
pub const pgp_compression_algorithm_PGP_ZLIB: pgp_compression_algorithm = 2;
pub type pgp_compression_algorithm = ::std::os::raw::c_uint;
pub const pgp_hash_algorithm_PGP_MD5: pgp_hash_algorithm = 1;
pub const pgp_hash_algorithm_PGP_SHA1: pgp_hash_algorithm = 2;
pub const pgp_hash_algorithm_PGP_RIPEMD: pgp_hash_algorithm = 3;
pub const pgp_hash_algorithm_PGP_MD2: pgp_hash_algorithm = 5;
pub const pgp_hash_algorithm_PGP_TIGER192: pgp_hash_algorithm = 6;
pub const pgp_hash_algorithm_PGP_HAVAL: pgp_hash_algorithm = 7;
pub type pgp_hash_algorithm = ::std::os::raw::c_uint;
pub const pgp_tag_PGP_TAG_PUBLIC_SESSION_KEY: pgp_tag = 1;
pub const pgp_tag_PGP_TAG_SIGNATURE: pgp_tag = 2;
pub const pgp_tag_PGP_TAG_SYMMETRIC_SESSION_KEY: pgp_tag = 3;
pub const pgp_tag_PGP_TAG_ONE_PASS_SIGNATURE: pgp_tag = 4;
pub const pgp_tag_PGP_TAG_SECRET_KEY: pgp_tag = 5;
pub const pgp_tag_PGP_TAG_PUBLIC_KEY: pgp_tag = 6;
pub const pgp_tag_PGP_TAG_SECRET_SUBKEY: pgp_tag = 7;
pub const pgp_tag_PGP_TAG_COMPRESSED: pgp_tag = 8;
pub const pgp_tag_PGP_TAG_ENCRYPTED: pgp_tag = 9;
pub const pgp_tag_PGP_TAG_MARKER: pgp_tag = 10;
pub const pgp_tag_PGP_TAG_LITERAL: pgp_tag = 11;
pub const pgp_tag_PGP_TAG_TRUST: pgp_tag = 12;
pub const pgp_tag_PGP_TAG_USERID: pgp_tag = 13;
pub const pgp_tag_PGP_TAG_PUBLIC_SUBKEY: pgp_tag = 14;
pub type pgp_tag = ::std::os::raw::c_uint;
pub const pgp_signature_type_PGP_SIGN_BINARY: pgp_signature_type = 0;
pub const pgp_signature_type_PGP_SIGN_TEXT: pgp_signature_type = 1;
pub const pgp_signature_type_PGP_SIGN_STANDALONE: pgp_signature_type = 2;
pub const pgp_signature_type_PGP_SIGN_CERTIFICATION: pgp_signature_type = 16;
pub const pgp_signature_type_PGP_SIGN_CERTIFICATION_PERSONA: pgp_signature_type = 17;
pub const pgp_signature_type_PGP_SIGN_CERTIFICATION_CASUAL: pgp_signature_type = 18;
pub const pgp_signature_type_PGP_SIGN_CERTIFICATION_POSITIVE: pgp_signature_type = 19;
pub const pgp_signature_type_PGP_SIGN_SUBKEY: pgp_signature_type = 24;
pub const pgp_signature_type_PGP_SIGN_KEY: pgp_signature_type = 31;
pub const pgp_signature_type_PGP_SIGN_REVOCATION: pgp_signature_type = 32;
pub const pgp_signature_type_PGP_SIGN_REVOCATION_SUBKEY: pgp_signature_type = 40;
pub const pgp_signature_type_PGP_SIGN_REVOCATION_CERTIFICATE: pgp_signature_type = 48;
pub const pgp_signature_type_PGP_SIGN_TIMESTAMP: pgp_signature_type = 64;
pub type pgp_signature_type = ::std::os::raw::c_uint;
pub const pgp_subpacket_tag_PGP_SUBPACKET_CREATION_TIME: pgp_subpacket_tag = 2;
pub const pgp_subpacket_tag_PGP_SUBPACKET_SIGNATURE_EXPIRATION_TIME: pgp_subpacket_tag = 3;
pub const pgp_subpacket_tag_PGP_SUBPACKET_EXPORTABLE_CERTIFICATION: pgp_subpacket_tag = 4;
pub const pgp_subpacket_tag_PGP_SUBPACKET_TRUST_SIGNATURE: pgp_subpacket_tag = 5;
pub const pgp_subpacket_tag_PGP_SUBPACKET_REGULAR_EXPRESSION: pgp_subpacket_tag = 6;
pub const pgp_subpacket_tag_PGP_SUBPACKET_REVOCABLE: pgp_subpacket_tag = 7;
pub const pgp_subpacket_tag_PGP_SUBPACKET_KEY_EXPIRATION_TIME: pgp_subpacket_tag = 9;
pub const pgp_subpacket_tag_PGP_SUBPACKET_PLACEHOLDER: pgp_subpacket_tag = 10;
pub const pgp_subpacket_tag_PGP_SUBPACKET_PREFERRED_SYMMETRIC_ALGORITHMS: pgp_subpacket_tag = 11;
pub const pgp_subpacket_tag_PGP_SUBPACKET_REVOCATION_KEY: pgp_subpacket_tag = 12;
pub const pgp_subpacket_tag_PGP_SUBPACKET_ISSUER_KEY_ID: pgp_subpacket_tag = 16;
pub const pgp_subpacket_tag_PGP_SUBPACKET_NOTATION_DATA: pgp_subpacket_tag = 20;
pub const pgp_subpacket_tag_PGP_SUBPACKET_PREFERRED_HASH_ALGORITHMS: pgp_subpacket_tag = 21;
pub const pgp_subpacket_tag_PGP_SUBPACKET_PREFERRED_COMPRESSION_ALGORITHMS: pgp_subpacket_tag = 22;
pub const pgp_subpacket_tag_PGP_SUBPACKET_KEY_SERVER_PREFERENCES: pgp_subpacket_tag = 23;
pub const pgp_subpacket_tag_PGP_SUBPACKET_PREFERRED_KEY_SERVER: pgp_subpacket_tag = 24;
pub const pgp_subpacket_tag_PGP_SUBPACKET_PRIMARY_USER_ID: pgp_subpacket_tag = 25;
pub const pgp_subpacket_tag_PGP_SUBPACKET_POLICY_URL: pgp_subpacket_tag = 26;
pub const pgp_subpacket_tag_PGP_SUBPACKET_KEY_FLAGS: pgp_subpacket_tag = 27;
pub const pgp_subpacket_tag_PGP_SUBPACKET_SIGNERS_USER_ID: pgp_subpacket_tag = 28;
pub const pgp_subpacket_tag_PGP_SUBPACKET_REASON_FOR_REVOCATION: pgp_subpacket_tag = 29;
pub type pgp_subpacket_tag = ::std::os::raw::c_uint;
extern "C" {
pub fn nettle_pkcs1_encrypt(
key_size: usize,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
length: usize,
message: *const u8,
m: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_decrypt(
key_size: usize,
m: *mut __mpz_struct,
length: *mut usize,
message: *mut u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_digest_encode(
m: *mut __mpz_struct,
key_size: usize,
di_length: usize,
digest_info: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_md5_encode(
m: *mut __mpz_struct,
length: usize,
hash: *mut md5_ctx,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_md5_encode_digest(
m: *mut __mpz_struct,
length: usize,
digest: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_sha1_encode(
m: *mut __mpz_struct,
length: usize,
hash: *mut sha1_ctx,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_sha1_encode_digest(
m: *mut __mpz_struct,
length: usize,
digest: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_sha256_encode(
m: *mut __mpz_struct,
length: usize,
hash: *mut sha256_ctx,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_sha256_encode_digest(
m: *mut __mpz_struct,
length: usize,
digest: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_sha512_encode(
m: *mut __mpz_struct,
length: usize,
hash: *mut sha512_ctx,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pkcs1_rsa_sha512_encode_digest(
m: *mut __mpz_struct,
length: usize,
digest: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pss_mgf1(
seed: *const ::std::os::raw::c_void,
hash: *const nettle_hash,
length: usize,
mask: *mut u8,
);
}
extern "C" {
pub fn nettle_pss_encode_mgf1(
m: *mut __mpz_struct,
bits: usize,
hash: *const nettle_hash,
salt_length: usize,
salt: *const u8,
digest: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_pss_verify_mgf1(
m: *mut __mpz_struct,
bits: usize,
hash: *const nettle_hash,
salt_length: usize,
digest: *const u8,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rsa_public_key {
pub size: usize,
pub n: mpz_t,
pub e: mpz_t,
}
#[test]
fn bindgen_test_layout_rsa_public_key() {
assert_eq!(
::std::mem::size_of::<rsa_public_key>(),
40usize,
concat!("Size of: ", stringify!(rsa_public_key))
);
assert_eq!(
::std::mem::align_of::<rsa_public_key>(),
8usize,
concat!("Alignment of ", stringify!(rsa_public_key))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_public_key>())).size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(rsa_public_key),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_public_key>())).n as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(rsa_public_key),
"::",
stringify!(n)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_public_key>())).e as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(rsa_public_key),
"::",
stringify!(e)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct rsa_private_key {
pub size: usize,
pub d: mpz_t,
pub p: mpz_t,
pub q: mpz_t,
pub a: mpz_t,
pub b: mpz_t,
pub c: mpz_t,
}
#[test]
fn bindgen_test_layout_rsa_private_key() {
assert_eq!(
::std::mem::size_of::<rsa_private_key>(),
104usize,
concat!("Size of: ", stringify!(rsa_private_key))
);
assert_eq!(
::std::mem::align_of::<rsa_private_key>(),
8usize,
concat!("Alignment of ", stringify!(rsa_private_key))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_private_key>())).size as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(rsa_private_key),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_private_key>())).d as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(rsa_private_key),
"::",
stringify!(d)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_private_key>())).p as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(rsa_private_key),
"::",
stringify!(p)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_private_key>())).q as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(rsa_private_key),
"::",
stringify!(q)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_private_key>())).a as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(rsa_private_key),
"::",
stringify!(a)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_private_key>())).b as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(rsa_private_key),
"::",
stringify!(b)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<rsa_private_key>())).c as *const _ as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(rsa_private_key),
"::",
stringify!(c)
)
);
}
extern "C" {
pub fn nettle_rsa_public_key_init(key: *mut rsa_public_key);
}
extern "C" {
pub fn nettle_rsa_public_key_clear(key: *mut rsa_public_key);
}
extern "C" {
pub fn nettle_rsa_public_key_prepare(key: *mut rsa_public_key) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_private_key_init(key: *mut rsa_private_key);
}
extern "C" {
pub fn nettle_rsa_private_key_clear(key: *mut rsa_private_key);
}
extern "C" {
pub fn nettle_rsa_private_key_prepare(key: *mut rsa_private_key) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pkcs1_sign(
key: *const rsa_private_key,
length: usize,
digest_info: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pkcs1_sign_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
length: usize,
digest_info: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pkcs1_verify(
key: *const rsa_public_key,
length: usize,
digest_info: *const u8,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_md5_sign(
key: *const rsa_private_key,
hash: *mut md5_ctx,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_md5_sign_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
hash: *mut md5_ctx,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_md5_verify(
key: *const rsa_public_key,
hash: *mut md5_ctx,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha1_sign(
key: *const rsa_private_key,
hash: *mut sha1_ctx,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha1_sign_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
hash: *mut sha1_ctx,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha1_verify(
key: *const rsa_public_key,
hash: *mut sha1_ctx,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha256_sign(
key: *const rsa_private_key,
hash: *mut sha256_ctx,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha256_sign_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
hash: *mut sha256_ctx,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha256_verify(
key: *const rsa_public_key,
hash: *mut sha256_ctx,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha512_sign(
key: *const rsa_private_key,
hash: *mut sha512_ctx,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha512_sign_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
hash: *mut sha512_ctx,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha512_verify(
key: *const rsa_public_key,
hash: *mut sha512_ctx,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_md5_sign_digest(
key: *const rsa_private_key,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_md5_sign_digest_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_md5_verify_digest(
key: *const rsa_public_key,
digest: *const u8,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha1_sign_digest(
key: *const rsa_private_key,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha1_sign_digest_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha1_verify_digest(
key: *const rsa_public_key,
digest: *const u8,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha256_sign_digest(
key: *const rsa_private_key,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha256_sign_digest_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha256_verify_digest(
key: *const rsa_public_key,
digest: *const u8,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha512_sign_digest(
key: *const rsa_private_key,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha512_sign_digest_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sha512_verify_digest(
key: *const rsa_public_key,
digest: *const u8,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pss_sha256_sign_digest_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
salt_length: usize,
salt: *const u8,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pss_sha256_verify_digest(
key: *const rsa_public_key,
salt_length: usize,
digest: *const u8,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pss_sha384_sign_digest_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
salt_length: usize,
salt: *const u8,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pss_sha384_verify_digest(
key: *const rsa_public_key,
salt_length: usize,
digest: *const u8,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pss_sha512_sign_digest_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
salt_length: usize,
salt: *const u8,
digest: *const u8,
s: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_pss_sha512_verify_digest(
key: *const rsa_public_key,
salt_length: usize,
digest: *const u8,
signature: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_encrypt(
key: *const rsa_public_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
length: usize,
cleartext: *const u8,
cipher: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_decrypt(
key: *const rsa_private_key,
length: *mut usize,
cleartext: *mut u8,
ciphertext: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_decrypt_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
length: *mut usize,
message: *mut u8,
gibberish: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_sec_decrypt(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
length: usize,
message: *mut u8,
gibberish: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_compute_root(
key: *const rsa_private_key,
x: *mut __mpz_struct,
m: *mut __mpz_struct,
);
}
extern "C" {
pub fn nettle_rsa_compute_root_tr(
pub_: *const rsa_public_key,
key: *const rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
x: *mut __mpz_struct,
m: *mut __mpz_struct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_generate_keypair(
pub_: *mut rsa_public_key,
key: *mut rsa_private_key,
random_ctx: *mut ::std::os::raw::c_void,
random: nettle_random_func,
progress_ctx: *mut ::std::os::raw::c_void,
progress: nettle_progress_func,
n_size: ::std::os::raw::c_uint,
e_size: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_keypair_to_sexp(
buffer: *mut nettle_buffer,
algorithm_name: *const ::std::os::raw::c_char,
pub_: *const rsa_public_key,
priv_: *const rsa_private_key,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_keypair_from_sexp_alist(
pub_: *mut rsa_public_key,
priv_: *mut rsa_private_key,
limit: ::std::os::raw::c_uint,
i: *mut sexp_iterator,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_keypair_from_sexp(
pub_: *mut rsa_public_key,
priv_: *mut rsa_private_key,
limit: ::std::os::raw::c_uint,
length: usize,
expr: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_public_key_from_der_iterator(
pub_: *mut rsa_public_key,
limit: ::std::os::raw::c_uint,
i: *mut asn1_der_iterator,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_private_key_from_der_iterator(
pub_: *mut rsa_public_key,
priv_: *mut rsa_private_key,
limit: ::std::os::raw::c_uint,
i: *mut asn1_der_iterator,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_keypair_from_der(
pub_: *mut rsa_public_key,
priv_: *mut rsa_private_key,
limit: ::std::os::raw::c_uint,
length: usize,
data: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_rsa_keypair_to_openpgp(
buffer: *mut nettle_buffer,
pub_: *const rsa_public_key,
priv_: *const rsa_private_key,
userid: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct salsa20_ctx {
pub input: [u32; 16usize],
}
#[test]
fn bindgen_test_layout_salsa20_ctx() {
assert_eq!(
::std::mem::size_of::<salsa20_ctx>(),
64usize,
concat!("Size of: ", stringify!(salsa20_ctx))
);
assert_eq!(
::std::mem::align_of::<salsa20_ctx>(),
4usize,
concat!("Alignment of ", stringify!(salsa20_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<salsa20_ctx>())).input as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(salsa20_ctx),
"::",
stringify!(input)
)
);
}
extern "C" {
pub fn nettle_salsa20_128_set_key(ctx: *mut salsa20_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_salsa20_256_set_key(ctx: *mut salsa20_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_salsa20_set_key(ctx: *mut salsa20_ctx, length: usize, key: *const u8);
}
extern "C" {
pub fn nettle_salsa20_set_nonce(ctx: *mut salsa20_ctx, nonce: *const u8);
}
extern "C" {
pub fn nettle_salsa20_crypt(ctx: *mut salsa20_ctx, length: usize, dst: *mut u8, src: *const u8);
}
extern "C" {
pub fn nettle_salsa20r12_crypt(
ctx: *mut salsa20_ctx,
length: usize,
dst: *mut u8,
src: *const u8,
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct serpent_ctx {
pub keys: [[u32; 4usize]; 33usize],
}
#[test]
fn bindgen_test_layout_serpent_ctx() {
assert_eq!(
::std::mem::size_of::<serpent_ctx>(),
528usize,
concat!("Size of: ", stringify!(serpent_ctx))
);
assert_eq!(
::std::mem::align_of::<serpent_ctx>(),
4usize,
concat!("Alignment of ", stringify!(serpent_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<serpent_ctx>())).keys as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(serpent_ctx),
"::",
stringify!(keys)
)
);
}
extern "C" {
pub fn nettle_serpent_set_key(ctx: *mut serpent_ctx, length: usize, key: *const u8);
}
extern "C" {
pub fn nettle_serpent128_set_key(ctx: *mut serpent_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_serpent192_set_key(ctx: *mut serpent_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_serpent256_set_key(ctx: *mut serpent_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_serpent_encrypt(
ctx: *const serpent_ctx,
length: usize,
dst: *mut u8,
src: *const u8,
);
}
extern "C" {
pub fn nettle_serpent_decrypt(
ctx: *const serpent_ctx,
length: usize,
dst: *mut u8,
src: *const u8,
);
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
pub const sexp_type_SEXP_ATOM: sexp_type = 0;
pub const sexp_type_SEXP_LIST: sexp_type = 1;
pub const sexp_type_SEXP_END: sexp_type = 2;
pub type sexp_type = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sexp_iterator {
pub length: usize,
pub buffer: *const u8,
pub start: usize,
pub pos: usize,
pub level: ::std::os::raw::c_uint,
pub type_: sexp_type,
pub display_length: usize,
pub display: *const u8,
pub atom_length: usize,
pub atom: *const u8,
}
#[test]
fn bindgen_test_layout_sexp_iterator() {
assert_eq!(
::std::mem::size_of::<sexp_iterator>(),
72usize,
concat!("Size of: ", stringify!(sexp_iterator))
);
assert_eq!(
::std::mem::align_of::<sexp_iterator>(),
8usize,
concat!("Alignment of ", stringify!(sexp_iterator))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).length as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(length)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).buffer as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(buffer)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).start as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(start)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).pos as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(pos)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).level as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(level)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).type_ as *const _ as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).display_length as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(display_length)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).display as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(display)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).atom_length as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(atom_length)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sexp_iterator>())).atom as *const _ as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(sexp_iterator),
"::",
stringify!(atom)
)
);
}
extern "C" {
pub fn nettle_sexp_iterator_first(
iterator: *mut sexp_iterator,
length: usize,
input: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_sexp_transport_iterator_first(
iterator: *mut sexp_iterator,
length: usize,
input: *mut u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_sexp_iterator_next(iterator: *mut sexp_iterator) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_sexp_iterator_enter_list(iterator: *mut sexp_iterator) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_sexp_iterator_exit_list(iterator: *mut sexp_iterator) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_sexp_iterator_subexpr(
iterator: *mut sexp_iterator,
length: *mut usize,
) -> *const u8;
}
extern "C" {
pub fn nettle_sexp_iterator_get_uint32(
iterator: *mut sexp_iterator,
x: *mut u32,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_sexp_iterator_check_type(
iterator: *mut sexp_iterator,
type_: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_sexp_iterator_check_types(
iterator: *mut sexp_iterator,
ntypes: ::std::os::raw::c_uint,
types: *const *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn nettle_sexp_iterator_assoc(
iterator: *mut sexp_iterator,
nkeys: ::std::os::raw::c_uint,
keys: *const *const ::std::os::raw::c_char,
values: *mut sexp_iterator,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_sexp_format(
buffer: *mut nettle_buffer,
format: *const ::std::os::raw::c_char,
...
) -> usize;
}
extern "C" {
pub fn nettle_sexp_vformat(
buffer: *mut nettle_buffer,
format: *const ::std::os::raw::c_char,
args: *mut __va_list_tag,
) -> usize;
}
extern "C" {
pub fn nettle_sexp_transport_format(
buffer: *mut nettle_buffer,
format: *const ::std::os::raw::c_char,
...
) -> usize;
}
extern "C" {
pub fn nettle_sexp_transport_vformat(
buffer: *mut nettle_buffer,
format: *const ::std::os::raw::c_char,
args: *mut __va_list_tag,
) -> usize;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sha3_state {
pub a: [u64; 25usize],
}
#[test]
fn bindgen_test_layout_sha3_state() {
assert_eq!(
::std::mem::size_of::<sha3_state>(),
200usize,
concat!("Size of: ", stringify!(sha3_state))
);
assert_eq!(
::std::mem::align_of::<sha3_state>(),
8usize,
concat!("Alignment of ", stringify!(sha3_state))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_state>())).a as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(sha3_state),
"::",
stringify!(a)
)
);
}
extern "C" {
pub fn nettle_sha3_permute(state: *mut sha3_state);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sha3_224_ctx {
pub state: sha3_state,
pub index: ::std::os::raw::c_uint,
pub block: [u8; 144usize],
}
#[test]
fn bindgen_test_layout_sha3_224_ctx() {
assert_eq!(
::std::mem::size_of::<sha3_224_ctx>(),
352usize,
concat!("Size of: ", stringify!(sha3_224_ctx))
);
assert_eq!(
::std::mem::align_of::<sha3_224_ctx>(),
8usize,
concat!("Alignment of ", stringify!(sha3_224_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_224_ctx>())).state as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(sha3_224_ctx),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_224_ctx>())).index as *const _ as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(sha3_224_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_224_ctx>())).block as *const _ as usize },
204usize,
concat!(
"Offset of field: ",
stringify!(sha3_224_ctx),
"::",
stringify!(block)
)
);
}
extern "C" {
pub fn nettle_sha3_224_init(ctx: *mut sha3_224_ctx);
}
extern "C" {
pub fn nettle_sha3_224_update(ctx: *mut sha3_224_ctx, length: usize, data: *const u8);
}
extern "C" {
pub fn nettle_sha3_224_digest(ctx: *mut sha3_224_ctx, length: usize, digest: *mut u8);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sha3_256_ctx {
pub state: sha3_state,
pub index: ::std::os::raw::c_uint,
pub block: [u8; 136usize],
}
#[test]
fn bindgen_test_layout_sha3_256_ctx() {
assert_eq!(
::std::mem::size_of::<sha3_256_ctx>(),
344usize,
concat!("Size of: ", stringify!(sha3_256_ctx))
);
assert_eq!(
::std::mem::align_of::<sha3_256_ctx>(),
8usize,
concat!("Alignment of ", stringify!(sha3_256_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_256_ctx>())).state as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(sha3_256_ctx),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_256_ctx>())).index as *const _ as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(sha3_256_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_256_ctx>())).block as *const _ as usize },
204usize,
concat!(
"Offset of field: ",
stringify!(sha3_256_ctx),
"::",
stringify!(block)
)
);
}
extern "C" {
pub fn nettle_sha3_256_init(ctx: *mut sha3_256_ctx);
}
extern "C" {
pub fn nettle_sha3_256_update(ctx: *mut sha3_256_ctx, length: usize, data: *const u8);
}
extern "C" {
pub fn nettle_sha3_256_digest(ctx: *mut sha3_256_ctx, length: usize, digest: *mut u8);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sha3_384_ctx {
pub state: sha3_state,
pub index: ::std::os::raw::c_uint,
pub block: [u8; 104usize],
}
#[test]
fn bindgen_test_layout_sha3_384_ctx() {
assert_eq!(
::std::mem::size_of::<sha3_384_ctx>(),
312usize,
concat!("Size of: ", stringify!(sha3_384_ctx))
);
assert_eq!(
::std::mem::align_of::<sha3_384_ctx>(),
8usize,
concat!("Alignment of ", stringify!(sha3_384_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_384_ctx>())).state as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(sha3_384_ctx),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_384_ctx>())).index as *const _ as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(sha3_384_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_384_ctx>())).block as *const _ as usize },
204usize,
concat!(
"Offset of field: ",
stringify!(sha3_384_ctx),
"::",
stringify!(block)
)
);
}
extern "C" {
pub fn nettle_sha3_384_init(ctx: *mut sha3_384_ctx);
}
extern "C" {
pub fn nettle_sha3_384_update(ctx: *mut sha3_384_ctx, length: usize, data: *const u8);
}
extern "C" {
pub fn nettle_sha3_384_digest(ctx: *mut sha3_384_ctx, length: usize, digest: *mut u8);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sha3_512_ctx {
pub state: sha3_state,
pub index: ::std::os::raw::c_uint,
pub block: [u8; 72usize],
}
#[test]
fn bindgen_test_layout_sha3_512_ctx() {
assert_eq!(
::std::mem::size_of::<sha3_512_ctx>(),
280usize,
concat!("Size of: ", stringify!(sha3_512_ctx))
);
assert_eq!(
::std::mem::align_of::<sha3_512_ctx>(),
8usize,
concat!("Alignment of ", stringify!(sha3_512_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_512_ctx>())).state as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(sha3_512_ctx),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_512_ctx>())).index as *const _ as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(sha3_512_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<sha3_512_ctx>())).block as *const _ as usize },
204usize,
concat!(
"Offset of field: ",
stringify!(sha3_512_ctx),
"::",
stringify!(block)
)
);
}
extern "C" {
pub fn nettle_sha3_512_init(ctx: *mut sha3_512_ctx);
}
extern "C" {
pub fn nettle_sha3_512_update(ctx: *mut sha3_512_ctx, length: usize, data: *const u8);
}
extern "C" {
pub fn nettle_sha3_512_digest(ctx: *mut sha3_512_ctx, length: usize, digest: *mut u8);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct twofish_ctx {
pub keys: [u32; 40usize],
pub s_box: [[u32; 256usize]; 4usize],
}
#[test]
fn bindgen_test_layout_twofish_ctx() {
assert_eq!(
::std::mem::size_of::<twofish_ctx>(),
4256usize,
concat!("Size of: ", stringify!(twofish_ctx))
);
assert_eq!(
::std::mem::align_of::<twofish_ctx>(),
4usize,
concat!("Alignment of ", stringify!(twofish_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<twofish_ctx>())).keys as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(twofish_ctx),
"::",
stringify!(keys)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<twofish_ctx>())).s_box as *const _ as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(twofish_ctx),
"::",
stringify!(s_box)
)
);
}
extern "C" {
pub fn nettle_twofish_set_key(ctx: *mut twofish_ctx, length: usize, key: *const u8);
}
extern "C" {
pub fn nettle_twofish128_set_key(context: *mut twofish_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_twofish192_set_key(context: *mut twofish_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_twofish256_set_key(context: *mut twofish_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_twofish_encrypt(
ctx: *const twofish_ctx,
length: usize,
dst: *mut u8,
src: *const u8,
);
}
extern "C" {
pub fn nettle_twofish_decrypt(
ctx: *const twofish_ctx,
length: usize,
dst: *mut u8,
src: *const u8,
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct umac32_ctx {
pub l1_key: [u32; 256usize],
pub l2_key: [u32; 6usize],
pub l3_key1: [u64; 8usize],
pub l3_key2: [u32; 1usize],
pub pdf_key: aes128_ctx,
pub l2_state: [u64; 3usize],
pub nonce: [u8; 16usize],
pub nonce_length: ::std::os::raw::c_ushort,
pub nonce_low: ::std::os::raw::c_ushort,
pub pad_cache: [u32; 4usize],
pub index: ::std::os::raw::c_uint,
pub count: u64,
pub block: [u8; 1024usize],
}
#[test]
fn bindgen_test_layout_umac32_ctx() {
assert_eq!(
::std::mem::size_of::<umac32_ctx>(),
2392usize,
concat!("Size of: ", stringify!(umac32_ctx))
);
assert_eq!(
::std::mem::align_of::<umac32_ctx>(),
8usize,
concat!("Alignment of ", stringify!(umac32_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).l1_key as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(l1_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).l2_key as *const _ as usize },
1024usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(l2_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).l3_key1 as *const _ as usize },
1048usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(l3_key1)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).l3_key2 as *const _ as usize },
1112usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(l3_key2)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).pdf_key as *const _ as usize },
1116usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(pdf_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).l2_state as *const _ as usize },
1296usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(l2_state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).nonce as *const _ as usize },
1320usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(nonce)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).nonce_length as *const _ as usize },
1336usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(nonce_length)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).nonce_low as *const _ as usize },
1338usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(nonce_low)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).pad_cache as *const _ as usize },
1340usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(pad_cache)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).index as *const _ as usize },
1356usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).count as *const _ as usize },
1360usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac32_ctx>())).block as *const _ as usize },
1368usize,
concat!(
"Offset of field: ",
stringify!(umac32_ctx),
"::",
stringify!(block)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct umac64_ctx {
pub l1_key: [u32; 260usize],
pub l2_key: [u32; 12usize],
pub l3_key1: [u64; 16usize],
pub l3_key2: [u32; 2usize],
pub pdf_key: aes128_ctx,
pub l2_state: [u64; 6usize],
pub nonce: [u8; 16usize],
pub nonce_length: ::std::os::raw::c_ushort,
pub nonce_low: ::std::os::raw::c_ushort,
pub pad_cache: [u32; 4usize],
pub index: ::std::os::raw::c_uint,
pub count: u64,
pub block: [u8; 1024usize],
}
#[test]
fn bindgen_test_layout_umac64_ctx() {
assert_eq!(
::std::mem::size_of::<umac64_ctx>(),
2520usize,
concat!("Size of: ", stringify!(umac64_ctx))
);
assert_eq!(
::std::mem::align_of::<umac64_ctx>(),
8usize,
concat!("Alignment of ", stringify!(umac64_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).l1_key as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(l1_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).l2_key as *const _ as usize },
1040usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(l2_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).l3_key1 as *const _ as usize },
1088usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(l3_key1)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).l3_key2 as *const _ as usize },
1216usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(l3_key2)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).pdf_key as *const _ as usize },
1224usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(pdf_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).l2_state as *const _ as usize },
1400usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(l2_state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).nonce as *const _ as usize },
1448usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(nonce)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).nonce_length as *const _ as usize },
1464usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(nonce_length)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).nonce_low as *const _ as usize },
1466usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(nonce_low)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).pad_cache as *const _ as usize },
1468usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(pad_cache)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).index as *const _ as usize },
1484usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).count as *const _ as usize },
1488usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac64_ctx>())).block as *const _ as usize },
1496usize,
concat!(
"Offset of field: ",
stringify!(umac64_ctx),
"::",
stringify!(block)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct umac96_ctx {
pub l1_key: [u32; 264usize],
pub l2_key: [u32; 18usize],
pub l3_key1: [u64; 24usize],
pub l3_key2: [u32; 3usize],
pub pdf_key: aes128_ctx,
pub l2_state: [u64; 9usize],
pub nonce: [u8; 16usize],
pub nonce_length: ::std::os::raw::c_ushort,
pub index: ::std::os::raw::c_uint,
pub count: u64,
pub block: [u8; 1024usize],
}
#[test]
fn bindgen_test_layout_umac96_ctx() {
assert_eq!(
::std::mem::size_of::<umac96_ctx>(),
2640usize,
concat!("Size of: ", stringify!(umac96_ctx))
);
assert_eq!(
::std::mem::align_of::<umac96_ctx>(),
8usize,
concat!("Alignment of ", stringify!(umac96_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).l1_key as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(l1_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).l2_key as *const _ as usize },
1056usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(l2_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).l3_key1 as *const _ as usize },
1128usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(l3_key1)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).l3_key2 as *const _ as usize },
1320usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(l3_key2)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).pdf_key as *const _ as usize },
1332usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(pdf_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).l2_state as *const _ as usize },
1512usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(l2_state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).nonce as *const _ as usize },
1584usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(nonce)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).nonce_length as *const _ as usize },
1600usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(nonce_length)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).index as *const _ as usize },
1604usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).count as *const _ as usize },
1608usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac96_ctx>())).block as *const _ as usize },
1616usize,
concat!(
"Offset of field: ",
stringify!(umac96_ctx),
"::",
stringify!(block)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct umac128_ctx {
pub l1_key: [u32; 268usize],
pub l2_key: [u32; 24usize],
pub l3_key1: [u64; 32usize],
pub l3_key2: [u32; 4usize],
pub pdf_key: aes128_ctx,
pub l2_state: [u64; 12usize],
pub nonce: [u8; 16usize],
pub nonce_length: ::std::os::raw::c_ushort,
pub index: ::std::os::raw::c_uint,
pub count: u64,
pub block: [u8; 1024usize],
}
#[test]
fn bindgen_test_layout_umac128_ctx() {
assert_eq!(
::std::mem::size_of::<umac128_ctx>(),
2768usize,
concat!("Size of: ", stringify!(umac128_ctx))
);
assert_eq!(
::std::mem::align_of::<umac128_ctx>(),
8usize,
concat!("Alignment of ", stringify!(umac128_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).l1_key as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(l1_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).l2_key as *const _ as usize },
1072usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(l2_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).l3_key1 as *const _ as usize },
1168usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(l3_key1)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).l3_key2 as *const _ as usize },
1424usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(l3_key2)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).pdf_key as *const _ as usize },
1440usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(pdf_key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).l2_state as *const _ as usize },
1616usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(l2_state)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).nonce as *const _ as usize },
1712usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(nonce)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).nonce_length as *const _ as usize },
1728usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(nonce_length)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).index as *const _ as usize },
1732usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).count as *const _ as usize },
1736usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<umac128_ctx>())).block as *const _ as usize },
1744usize,
concat!(
"Offset of field: ",
stringify!(umac128_ctx),
"::",
stringify!(block)
)
);
}
extern "C" {
pub fn nettle_umac32_set_key(ctx: *mut umac32_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_umac64_set_key(ctx: *mut umac64_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_umac96_set_key(ctx: *mut umac96_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_umac128_set_key(ctx: *mut umac128_ctx, key: *const u8);
}
extern "C" {
pub fn nettle_umac32_set_nonce(ctx: *mut umac32_ctx, nonce_length: usize, nonce: *const u8);
}
extern "C" {
pub fn nettle_umac64_set_nonce(ctx: *mut umac64_ctx, nonce_length: usize, nonce: *const u8);
}
extern "C" {
pub fn nettle_umac96_set_nonce(ctx: *mut umac96_ctx, nonce_length: usize, nonce: *const u8);
}
extern "C" {
pub fn nettle_umac128_set_nonce(ctx: *mut umac128_ctx, nonce_length: usize, nonce: *const u8);
}
extern "C" {
pub fn nettle_umac32_update(ctx: *mut umac32_ctx, length: usize, data: *const u8);
}
extern "C" {
pub fn nettle_umac64_update(ctx: *mut umac64_ctx, length: usize, data: *const u8);
}
extern "C" {
pub fn nettle_umac96_update(ctx: *mut umac96_ctx, length: usize, data: *const u8);
}
extern "C" {
pub fn nettle_umac128_update(ctx: *mut umac128_ctx, length: usize, data: *const u8);
}
extern "C" {
pub fn nettle_umac32_digest(ctx: *mut umac32_ctx, length: usize, digest: *mut u8);
}
extern "C" {
pub fn nettle_umac64_digest(ctx: *mut umac64_ctx, length: usize, digest: *mut u8);
}
extern "C" {
pub fn nettle_umac96_digest(ctx: *mut umac96_ctx, length: usize, digest: *mut u8);
}
extern "C" {
pub fn nettle_umac128_digest(ctx: *mut umac128_ctx, length: usize, digest: *mut u8);
}
pub const yarrow_pool_id_YARROW_FAST: yarrow_pool_id = 0;
pub const yarrow_pool_id_YARROW_SLOW: yarrow_pool_id = 1;
pub type yarrow_pool_id = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct yarrow_source {
pub estimate: [u32; 2usize],
pub next: yarrow_pool_id,
}
#[test]
fn bindgen_test_layout_yarrow_source() {
assert_eq!(
::std::mem::size_of::<yarrow_source>(),
12usize,
concat!("Size of: ", stringify!(yarrow_source))
);
assert_eq!(
::std::mem::align_of::<yarrow_source>(),
4usize,
concat!("Alignment of ", stringify!(yarrow_source))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow_source>())).estimate as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(yarrow_source),
"::",
stringify!(estimate)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow_source>())).next as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(yarrow_source),
"::",
stringify!(next)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct yarrow256_ctx {
pub pools: [sha256_ctx; 2usize],
pub seeded: ::std::os::raw::c_int,
pub key: aes256_ctx,
pub counter: [u8; 16usize],
pub nsources: ::std::os::raw::c_uint,
pub sources: *mut yarrow_source,
}
#[test]
fn bindgen_test_layout_yarrow256_ctx() {
assert_eq!(
::std::mem::size_of::<yarrow256_ctx>(),
496usize,
concat!("Size of: ", stringify!(yarrow256_ctx))
);
assert_eq!(
::std::mem::align_of::<yarrow256_ctx>(),
8usize,
concat!("Alignment of ", stringify!(yarrow256_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow256_ctx>())).pools as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(yarrow256_ctx),
"::",
stringify!(pools)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow256_ctx>())).seeded as *const _ as usize },
224usize,
concat!(
"Offset of field: ",
stringify!(yarrow256_ctx),
"::",
stringify!(seeded)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow256_ctx>())).key as *const _ as usize },
228usize,
concat!(
"Offset of field: ",
stringify!(yarrow256_ctx),
"::",
stringify!(key)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow256_ctx>())).counter as *const _ as usize },
468usize,
concat!(
"Offset of field: ",
stringify!(yarrow256_ctx),
"::",
stringify!(counter)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow256_ctx>())).nsources as *const _ as usize },
484usize,
concat!(
"Offset of field: ",
stringify!(yarrow256_ctx),
"::",
stringify!(nsources)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow256_ctx>())).sources as *const _ as usize },
488usize,
concat!(
"Offset of field: ",
stringify!(yarrow256_ctx),
"::",
stringify!(sources)
)
);
}
extern "C" {
pub fn nettle_yarrow256_init(
ctx: *mut yarrow256_ctx,
nsources: ::std::os::raw::c_uint,
sources: *mut yarrow_source,
);
}
extern "C" {
pub fn nettle_yarrow256_seed(ctx: *mut yarrow256_ctx, length: usize, seed_file: *const u8);
}
extern "C" {
pub fn nettle_yarrow256_update(
ctx: *mut yarrow256_ctx,
source: ::std::os::raw::c_uint,
entropy: ::std::os::raw::c_uint,
length: usize,
data: *const u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_yarrow256_random(ctx: *mut yarrow256_ctx, length: usize, dst: *mut u8);
}
extern "C" {
pub fn nettle_yarrow256_is_seeded(ctx: *mut yarrow256_ctx) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nettle_yarrow256_needed_sources(ctx: *mut yarrow256_ctx) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn nettle_yarrow256_fast_reseed(ctx: *mut yarrow256_ctx);
}
extern "C" {
pub fn nettle_yarrow256_slow_reseed(ctx: *mut yarrow256_ctx);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct yarrow_key_event_ctx {
pub index: ::std::os::raw::c_uint,
pub chars: [::std::os::raw::c_uint; 16usize],
pub previous: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_yarrow_key_event_ctx() {
assert_eq!(
::std::mem::size_of::<yarrow_key_event_ctx>(),
72usize,
concat!("Size of: ", stringify!(yarrow_key_event_ctx))
);
assert_eq!(
::std::mem::align_of::<yarrow_key_event_ctx>(),
4usize,
concat!("Alignment of ", stringify!(yarrow_key_event_ctx))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow_key_event_ctx>())).index as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(yarrow_key_event_ctx),
"::",
stringify!(index)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow_key_event_ctx>())).chars as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(yarrow_key_event_ctx),
"::",
stringify!(chars)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<yarrow_key_event_ctx>())).previous as *const _ as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(yarrow_key_event_ctx),
"::",
stringify!(previous)
)
);
}
extern "C" {
pub fn nettle_yarrow_key_event_init(ctx: *mut yarrow_key_event_ctx);
}
extern "C" {
pub fn nettle_yarrow_key_event_estimate(
ctx: *mut yarrow_key_event_ctx,
key: ::std::os::raw::c_uint,
time: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_data {
pub _address: u8,
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
assert_eq!(
::std::mem::size_of::<__va_list_tag>(),
24usize,
concat!("Size of: ", stringify!(__va_list_tag))
);
assert_eq!(
::std::mem::align_of::<__va_list_tag>(),
8usize,
concat!("Alignment of ", stringify!(__va_list_tag))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(gp_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(fp_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(overflow_arg_area)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(reg_save_area)
)
);
}