Home
last modified time | relevance | path

Searched refs:BN_nnmod (Results 1 – 10 of 10) sorted by relevance

/mirbsd/src/lib/libssl/src/crypto/bn/
Dbn_mod.c127 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) in BN_nnmod() function
144 return BN_nnmod(r, r, m, ctx); in BN_mod_add()
162 return BN_nnmod(r, r, m, ctx); in BN_mod_sub()
194 if (!BN_nnmod(r,t,m,ctx)) goto err; in BN_mod_mul()
213 return BN_nnmod(r, r, m, ctx); in BN_mod_lshift1()
233 if (!BN_nnmod(r, a, m, ctx)) return 0; in BN_mod_lshift()
Dbn_sqrt.c188 if (!BN_nnmod(x, a, p, ctx)) goto end; in BN_mod_sqrt()
300 if (!BN_nnmod(t, a, p, ctx)) goto end; in BN_mod_sqrt()
Dexpspeed.c266 if (!BN_nnmod(a,a,c,ctx)) goto err; in do_mul_exp()
267 if (!BN_nnmod(b,b,c,ctx)) goto err; in do_mul_exp()
Dbn_gcd.c237 if (!BN_nnmod(B, B, A, ctx)) goto err; in BN_mod_inverse()
477 if (!BN_nnmod(R,Y,n,ctx)) goto err; in BN_mod_inverse()
Dbn_kron.c170 err = !BN_nnmod(B, B, A, ctx); in BN_kronecker()
Dbntest.c606 BN_nnmod(&a,&a,&n,ctx); in test_mont()
607 BN_nnmod(&b,&b,&n,ctx); in test_mont()
1058 if (!BN_nnmod(r, r, p, ctx)) goto err; in test_sqrt()
1061 if (!BN_nnmod(a, a, p, ctx)) goto err; in test_sqrt()
1070 if (!BN_nnmod(a, a, p, ctx)) goto err; in test_sqrt()
Dbn_exp.c279 if (!BN_nnmod(&(val[0]),a,m,ctx)) goto err; /* 1 */ in BN_mod_exp_recp()
420 if (!BN_nnmod(&(val[0]),a,m,ctx)) in BN_mod_exp_mont()
900 if (!BN_nnmod(&(val[0]),a,m,ctx)) goto err; /* 1 */ in BN_mod_exp_simple()
Dbn.h362 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
/mirbsd/src/lib/libssl/src/doc/crypto/
DBN_add.pod5 BN_add, BN_sub, BN_mul, BN_sqr, BN_div, BN_mod, BN_nnmod, BN_mod_add,
26 int BN_nnmod(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
70 BN_nnmod() reduces I<a> modulo I<m> and places the non-negative
123 BN_nnmod(), BN_mod_add(), BN_mod_sub(), and BN_mod_sqr() were added in
Dbn.pod37 int BN_nnmod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);