• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/shared.asus/bcmcrypto/

Lines Matching refs:BIGNUM

239 #ifdef BIGNUM
240 #undef BIGNUM
259 } BIGNUM;
267 BIGNUM *A;
268 BIGNUM *Ai;
269 BIGNUM *mod; /* just a reference */
278 BIGNUM RR; /* used to convert to montgomery form */
279 BIGNUM N; /* The modulus */
280 BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1
291 BIGNUM N; /* the divisor */
292 BIGNUM Nr; /* the reciprocal */
336 const BIGNUM *BN_value_one(void);
342 BIGNUM *BN_CTX_get(BN_CTX *ctx);
344 int BN_rand(BIGNUM *rnd, int bits, int top,int bottom);
345 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top,int bottom);
346 int BN_rand_range(BIGNUM *rnd, BIGNUM *range);
347 int BN_pseudo_rand_range(BIGNUM *rnd, BIGNUM *range);
348 int BN_num_bits(const BIGNUM *a);
350 BIGNUM *BN_new(void);
351 void BN_init(BIGNUM *);
352 void BN_clear_free(BIGNUM *a);
353 BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
354 void BN_swap(BIGNUM *a, BIGNUM *b);
355 BIGNUM *BN_bin2bn(const unsigned char *s,int len,BIGNUM *ret);
356 int BN_bn2bin(const BIGNUM *a, unsigned char *to);
357 BIGNUM *BN_mpi2bn(const unsigned char *s,int len,BIGNUM *ret);
358 int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
359 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
360 int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
361 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
362 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
363 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
364 int BN_sqr(BIGNUM *r, const BIGNUM *a,BN_CTX *ctx);
366 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
369 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
370 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
371 int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m);
372 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
373 int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m);
374 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
375 const BIGNUM *m, BN_CTX *ctx);
376 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
377 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
378 int BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *m);
379 int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, BN_CTX *ctx);
380 int BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m);
382 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
383 BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);
384 int BN_mul_word(BIGNUM *a, BN_ULONG w);
385 int BN_add_word(BIGNUM *a, BN_ULONG w);
386 int BN_sub_word(BIGNUM *a, BN_ULONG w);
387 int BN_set_word(BIGNUM *a, BN_ULONG w);
388 BN_ULONG BN_get_word(const BIGNUM *a);
390 int BN_cmp(const BIGNUM *a, const BIGNUM *b);
391 void BN_free(BIGNUM *a);
392 int BN_is_bit_set(const BIGNUM *a, int n);
393 int BN_lshift(BIGNUM *r, const BIGNUM *a, int n);
394 int BN_lshift1(BIGNUM *r, const BIGNUM *a);
395 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,BN_CTX *ctx);
397 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
398 const BIGNUM *m,BN_CTX *ctx);
399 int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
400 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
401 int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,
402 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
403 int BN_mod_exp2_mont(BIGNUM *r, const BIGNUM *a1, const BIGNUM *p1,
404 const BIGNUM *a2, const BIGNUM *p2,const BIGNUM *m,
406 int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
407 const BIGNUM *m,BN_CTX *ctx);
409 int BN_mask_bits(BIGNUM *a,int n);
411 int BN_print_fp(FILE *fp, const BIGNUM *a);
414 int BN_print(BIO *fp, const BIGNUM *a);
416 int BN_print(void *fp, const BIGNUM *a);
418 int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);
419 int BN_rshift(BIGNUM *r, const BIGNUM *a, int n);
420 int BN_rshift1(BIGNUM *r, const BIGNUM *a);
421 void BN_clear(BIGNUM *a);
422 BIGNUM *BN_dup(const BIGNUM *a);
423 int BN_ucmp(const BIGNUM *a, const BIGNUM *b);
424 int BN_set_bit(BIGNUM *a, int n);
425 int BN_clear_bit(BIGNUM *a, int n);
426 char * BN_bn2hex(const BIGNUM *a);
427 char * BN_bn2dec(const BIGNUM *a);
428 int BN_hex2bn(BIGNUM **a, const char *str);
429 int BN_dec2bn(BIGNUM **a, const char *str);
430 int BN_gcd(BIGNUM *r,const BIGNUM *a,const BIGNUM *b,BN_CTX *ctx);
431 int BN_kronecker(const BIGNUM *a,const BIGNUM *b,BN_CTX *ctx); /* returns -2 for error */
432 BIGNUM *BN_mod_inverse(BIGNUM *ret,
433 const BIGNUM *a, const BIGNUM *n,BN_CTX *ctx);
434 BIGNUM *BN_mod_sqrt(BIGNUM *ret,
435 const BIGNUM *a, const BIGNUM *n,BN_CTX *ctx);
436 BIGNUM *BN_generate_prime(BIGNUM *ret,int bits,int safe,
437 const BIGNUM *add, const BIGNUM *rem,
439 int BN_is_prime(const BIGNUM *p,int nchecks,
442 int BN_is_prime_fasttest(const BIGNUM *p,int nchecks,
448 int BN_mod_mul_montgomery(BIGNUM *r,const BIGNUM *a,const BIGNUM *b,
452 int BN_from_montgomery(BIGNUM *r,const BIGNUM *a,
455 int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx);
458 BN_BLINDING *BN_BLINDING_new(BIGNUM *A,BIGNUM *Ai,BIGNUM *mod);
461 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *r, BN_CTX *ctx);
462 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
470 int BN_RECP_CTX_set(BN_RECP_CTX *recp,const BIGNUM *rdiv,BN_CTX *ctx);
471 int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
473 int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
474 const BIGNUM *m, BN_CTX *ctx);
475 int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
483 BIGNUM *bn_expand2(BIGNUM *a, int words);
484 BIGNUM *bn_dup_expand(const BIGNUM *a, int words);
510 int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom);