• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/include/bcmcrypto/

Lines Matching refs:BIGNUM

253 #ifdef BIGNUM
254 #undef BIGNUM
273 } BIGNUM;
281 BIGNUM *A;
282 BIGNUM *Ai;
283 BIGNUM *mod; /* just a reference */
293 BIGNUM RR; /* used to convert to montgomery form */
294 BIGNUM N; /* The modulus */
295 BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1
307 BIGNUM N; /* the divisor */
308 BIGNUM Nr; /* the reciprocal */
354 const BIGNUM *BN_value_one(void);
360 BIGNUM *BN_CTX_get(BN_CTX *ctx);
362 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom);
363 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);
364 int BN_rand_range(BIGNUM *rnd, BIGNUM *range);
365 int BN_pseudo_rand_range(BIGNUM *rnd, BIGNUM *range);
366 int BN_num_bits(const BIGNUM *a);
368 BIGNUM *BN_new(void);
369 void BN_init(BIGNUM *);
370 void BN_clear_free(BIGNUM *a);
371 BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
372 void BN_swap(BIGNUM *a, BIGNUM *b);
373 BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
374 int BN_bn2bin(const BIGNUM *a, unsigned char *to);
375 BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);
376 int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
377 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
378 int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
379 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
380 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
381 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
382 int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
384 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
387 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
388 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
389 int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m);
390 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
391 int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m);
392 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
393 const BIGNUM *m, BN_CTX *ctx);
394 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
395 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
396 int BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *m);
397 int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, BN_CTX *ctx);
398 int BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m);
400 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
401 BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);
402 int BN_mul_word(BIGNUM *a, BN_ULONG w);
403 int BN_add_word(BIGNUM *a, BN_ULONG w);
404 int BN_sub_word(BIGNUM *a, BN_ULONG w);
405 int BN_set_word(BIGNUM *a, BN_ULONG w);
406 BN_ULONG BN_get_word(const BIGNUM *a);
408 int BN_cmp(const BIGNUM *a, const BIGNUM *b);
409 void BN_free(BIGNUM *a);
410 int BN_is_bit_set(const BIGNUM *a, int n);
411 int BN_lshift(BIGNUM *r, const BIGNUM *a, int n);
412 int BN_lshift1(BIGNUM *r, const BIGNUM *a);
413 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);
415 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx);
416 int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
418 int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p, const BIGNUM *m,
420 int BN_mod_exp2_mont(BIGNUM *r, const BIGNUM *a1, const BIGNUM *p1, const BIGNUM *a2,
421 const BIGNUM *p2, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
422 int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
425 int BN_mask_bits(BIGNUM *a, int n);
427 int BN_print_fp(FILE *fp, const BIGNUM *a);
430 int BN_print(BIO *fp, const BIGNUM *a);
432 int BN_print(void *fp, const BIGNUM *a);
434 int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);
435 int BN_rshift(BIGNUM *r, const BIGNUM *a, int n);
436 int BN_rshift1(BIGNUM *r, const BIGNUM *a);
437 void BN_clear(BIGNUM *a);
438 BIGNUM *BN_dup(const BIGNUM *a);
439 int BN_ucmp(const BIGNUM *a, const BIGNUM *b);
440 int BN_set_bit(BIGNUM *a, int n);
441 int BN_clear_bit(BIGNUM *a, int n);
442 char * BN_bn2hex(const BIGNUM *a);
443 char * BN_bn2dec(const BIGNUM *a);
444 int BN_hex2bn(BIGNUM **a, const char *str);
445 int BN_dec2bn(BIGNUM **a, const char *str);
446 int BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
447 int BN_kronecker(const BIGNUM *a,const BIGNUM *b,BN_CTX *ctx); /* returns -2 for error */
448 BIGNUM *BN_mod_inverse(BIGNUM *ret, const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);
449 BIGNUM *BN_mod_sqrt(BIGNUM *ret, const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);
450 BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem,
452 int BN_is_prime(const BIGNUM *p, int nchecks, void (*callback)(int, int, void *),
454 int BN_is_prime_fasttest(const BIGNUM *p, int nchecks, void (*callback)(int, int, void *),
459 int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
463 int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx);
465 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx);
468 BN_BLINDING *BN_BLINDING_new(BIGNUM *A, BIGNUM *Ai, BIGNUM *mod);
471 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *r, BN_CTX *ctx);
472 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
480 int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx);
481 int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
483 int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
484 const BIGNUM *m, BN_CTX *ctx);
485 int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
493 BIGNUM *bn_expand2(BIGNUM *a, int words);
494 BIGNUM *bn_dup_expand(const BIGNUM *a, int words);
524 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);