• Home
  • Raw
  • Download

Lines Matching refs:OPENSSL_EXPORT

172 OPENSSL_EXPORT BIGNUM *BN_new(void);
175 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
179 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
183 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
187 OPENSSL_EXPORT BIGNUM *BN_dup(const BIGNUM *src);
191 OPENSSL_EXPORT BIGNUM *BN_copy(BIGNUM *dest, const BIGNUM *src);
194 OPENSSL_EXPORT void BN_clear(BIGNUM *bn);
197 OPENSSL_EXPORT const BIGNUM *BN_value_one(void);
204 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn);
208 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn);
211 OPENSSL_EXPORT void BN_zero(BIGNUM *bn);
215 OPENSSL_EXPORT int BN_one(BIGNUM *bn);
219 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
223 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value);
226 OPENSSL_EXPORT void BN_set_negative(BIGNUM *bn, int sign);
229 OPENSSL_EXPORT int BN_is_negative(const BIGNUM *bn);
238 OPENSSL_EXPORT BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret);
244 OPENSSL_EXPORT size_t BN_bn2bin(const BIGNUM *in, uint8_t *out);
250 OPENSSL_EXPORT BIGNUM *BN_le2bn(const uint8_t *in, size_t len, BIGNUM *ret);
256 OPENSSL_EXPORT int BN_bn2le_padded(uint8_t *out, size_t len, const BIGNUM *in);
262 OPENSSL_EXPORT int BN_bn2bin_padded(uint8_t *out, size_t len, const BIGNUM *in);
265 OPENSSL_EXPORT int BN_bn2cbb_padded(CBB *out, size_t len, const BIGNUM *in);
270 OPENSSL_EXPORT char *BN_bn2hex(const BIGNUM *bn);
278 OPENSSL_EXPORT int BN_hex2bn(BIGNUM **outp, const char *in);
283 OPENSSL_EXPORT char *BN_bn2dec(const BIGNUM *a);
291 OPENSSL_EXPORT int BN_dec2bn(BIGNUM **outp, const char *in);
297 OPENSSL_EXPORT int BN_asc2bn(BIGNUM **outp, const char *in);
301 OPENSSL_EXPORT int BN_print(BIO *bio, const BIGNUM *a);
304 OPENSSL_EXPORT int BN_print_fp(FILE *fp, const BIGNUM *a);
309 OPENSSL_EXPORT BN_ULONG BN_get_word(const BIGNUM *bn);
314 OPENSSL_EXPORT int BN_get_u64(const BIGNUM *bn, uint64_t *out);
321 OPENSSL_EXPORT int BN_parse_asn1_unsigned(CBS *cbs, BIGNUM *ret);
325 OPENSSL_EXPORT int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn);
345 OPENSSL_EXPORT BN_CTX *BN_CTX_new(void);
349 OPENSSL_EXPORT void BN_CTX_free(BN_CTX *ctx);
353 OPENSSL_EXPORT void BN_CTX_start(BN_CTX *ctx);
358 OPENSSL_EXPORT BIGNUM *BN_CTX_get(BN_CTX *ctx);
362 OPENSSL_EXPORT void BN_CTX_end(BN_CTX *ctx);
369 OPENSSL_EXPORT int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
374 OPENSSL_EXPORT int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
377 OPENSSL_EXPORT int BN_add_word(BIGNUM *a, BN_ULONG w);
381 OPENSSL_EXPORT int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
386 OPENSSL_EXPORT int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
390 OPENSSL_EXPORT int BN_sub_word(BIGNUM *a, BN_ULONG w);
394 OPENSSL_EXPORT int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
399 OPENSSL_EXPORT int BN_mul_word(BIGNUM *bn, BN_ULONG w);
404 OPENSSL_EXPORT int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
411 OPENSSL_EXPORT int BN_div(BIGNUM *quotient, BIGNUM *rem,
417 OPENSSL_EXPORT BN_ULONG BN_div_word(BIGNUM *numerator, BN_ULONG divisor);
423 OPENSSL_EXPORT int BN_sqrt(BIGNUM *out_sqrt, const BIGNUM *in, BN_CTX *ctx);
430 OPENSSL_EXPORT int BN_cmp(const BIGNUM *a, const BIGNUM *b);
434 OPENSSL_EXPORT int BN_cmp_word(const BIGNUM *a, BN_ULONG b);
439 OPENSSL_EXPORT int BN_ucmp(const BIGNUM *a, const BIGNUM *b);
444 OPENSSL_EXPORT int BN_equal_consttime(const BIGNUM *a, const BIGNUM *b);
448 OPENSSL_EXPORT int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w);
451 OPENSSL_EXPORT int BN_is_zero(const BIGNUM *bn);
454 OPENSSL_EXPORT int BN_is_one(const BIGNUM *bn);
457 OPENSSL_EXPORT int BN_is_word(const BIGNUM *bn, BN_ULONG w);
460 OPENSSL_EXPORT int BN_is_odd(const BIGNUM *bn);
463 OPENSSL_EXPORT int BN_is_pow2(const BIGNUM *a);
470 OPENSSL_EXPORT int BN_lshift(BIGNUM *r, const BIGNUM *a, int n);
474 OPENSSL_EXPORT int BN_lshift1(BIGNUM *r, const BIGNUM *a);
478 OPENSSL_EXPORT int BN_rshift(BIGNUM *r, const BIGNUM *a, int n);
482 OPENSSL_EXPORT int BN_rshift1(BIGNUM *r, const BIGNUM *a);
487 OPENSSL_EXPORT int BN_set_bit(BIGNUM *a, int n);
492 OPENSSL_EXPORT int BN_clear_bit(BIGNUM *a, int n);
496 OPENSSL_EXPORT int BN_is_bit_set(const BIGNUM *a, int n);
505 OPENSSL_EXPORT int BN_mask_bits(BIGNUM *a, int n);
510 OPENSSL_EXPORT int BN_count_low_zero_bits(const BIGNUM *bn);
516 OPENSSL_EXPORT BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
520 OPENSSL_EXPORT int BN_mod_pow2(BIGNUM *r, const BIGNUM *a, size_t e);
524 OPENSSL_EXPORT int BN_nnmod_pow2(BIGNUM *r, const BIGNUM *a, size_t e);
533 OPENSSL_EXPORT int BN_nnmod(BIGNUM *rem, const BIGNUM *numerator,
538 OPENSSL_EXPORT int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
543 OPENSSL_EXPORT int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
548 OPENSSL_EXPORT int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
553 OPENSSL_EXPORT int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
558 OPENSSL_EXPORT int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
563 OPENSSL_EXPORT int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m,
568 OPENSSL_EXPORT int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n,
573 OPENSSL_EXPORT int BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n,
578 OPENSSL_EXPORT int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m,
583 OPENSSL_EXPORT int BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a,
590 OPENSSL_EXPORT BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p,
617 OPENSSL_EXPORT int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
620 OPENSSL_EXPORT int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);
624 OPENSSL_EXPORT int BN_rand_range(BIGNUM *rnd, const BIGNUM *range);
629 OPENSSL_EXPORT int BN_rand_range_ex(BIGNUM *r, BN_ULONG min_inclusive,
633 OPENSSL_EXPORT int BN_pseudo_rand_range(BIGNUM *rnd, const BIGNUM *range);
663 OPENSSL_EXPORT void BN_GENCB_set(BN_GENCB *callback,
669 OPENSSL_EXPORT int BN_GENCB_call(BN_GENCB *callback, int event, int n);
683 OPENSSL_EXPORT int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe,
723 OPENSSL_EXPORT int BN_enhanced_miller_rabin_primality_test(
741 OPENSSL_EXPORT int BN_primality_test(int *is_probably_prime,
759 OPENSSL_EXPORT int BN_is_prime_fasttest_ex(const BIGNUM *candidate, int checks,
767 OPENSSL_EXPORT int BN_is_prime_ex(const BIGNUM *candidate, int checks,
775 OPENSSL_EXPORT int BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
787 OPENSSL_EXPORT BIGNUM *BN_mod_inverse(BIGNUM *out, const BIGNUM *a,
823 OPENSSL_EXPORT BN_MONT_CTX *BN_MONT_CTX_new_for_modulus(const BIGNUM *mod,
828 OPENSSL_EXPORT BN_MONT_CTX *BN_MONT_CTX_new_consttime(const BIGNUM *mod,
832 OPENSSL_EXPORT void BN_MONT_CTX_free(BN_MONT_CTX *mont);
836 OPENSSL_EXPORT BN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to,
851 OPENSSL_EXPORT int BN_to_montgomery(BIGNUM *ret, const BIGNUM *a,
858 OPENSSL_EXPORT int BN_from_montgomery(BIGNUM *ret, const BIGNUM *a,
866 OPENSSL_EXPORT int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a,
876 OPENSSL_EXPORT int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
883 OPENSSL_EXPORT int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
888 OPENSSL_EXPORT int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
894 OPENSSL_EXPORT int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a,
908 OPENSSL_EXPORT size_t BN_bn2mpi(const BIGNUM *in, uint8_t *out);
916 OPENSSL_EXPORT BIGNUM *BN_mpi2bn(const uint8_t *in, size_t len, BIGNUM *out);
921 OPENSSL_EXPORT int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,
927 OPENSSL_EXPORT int BN_mod_exp2_mont(BIGNUM *r, const BIGNUM *a1,
934 OPENSSL_EXPORT BN_MONT_CTX *BN_MONT_CTX_new(void);
939 OPENSSL_EXPORT int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod,
946 OPENSSL_EXPORT int BN_bn2binpad(const BIGNUM *in, uint8_t *out, int len);
994 OPENSSL_EXPORT unsigned BN_num_bits_word(BN_ULONG l);