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

Lines Matching defs:BN_CTX

276 typedef struct bignum_ctx BN_CTX;
356 BN_CTX *BN_CTX_new(void);
357 void BN_CTX_init(BN_CTX *c);
358 void BN_CTX_free(BN_CTX *c);
359 void BN_CTX_start(BN_CTX *ctx);
360 BIGNUM *BN_CTX_get(BN_CTX *ctx);
361 void BN_CTX_end(BN_CTX *ctx);
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);
385 BN_CTX *ctx);
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);
390 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
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);
397 int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, BN_CTX *ctx);
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);
417 BN_CTX *ctx, BN_MONT_CTX *m_ctx);
419 BN_CTX *ctx, BN_MONT_CTX *m_ctx);
421 const BIGNUM *p2, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
423 BN_CTX *ctx);
434 int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);
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);
453 BN_CTX *ctx, void *cb_arg);
455 BN_CTX *ctx, void *cb_arg, int do_trial_division);
460 BN_MONT_CTX *mont, BN_CTX *ctx);
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);
470 int BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx);
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);
482 BN_RECP_CTX *recp, BN_CTX *ctx);
484 const BIGNUM *m, BN_CTX *ctx);
486 BN_RECP_CTX *recp, BN_CTX *ctx);