Searched refs:BN_mod (Results 1 - 23 of 23) sorted by relevance

/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/
H A Drsa.c143 (BN_mod(rsa->dmq1, rsa->d, aux, ctx) == 0) ||
145 (BN_mod(rsa->dmp1, rsa->d, aux, ctx) == 0))
H A Dauth-rsa.c83 if (BN_mod(challenge, challenge, key->rsa->n, ctx) == 0)
84 fatal("auth_rsa_generate_challenge: BN_mod failed");
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/bn/
H A Dbn_mod.c119 int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
129 /* like BN_mod, but returns non-negative remainder
132 if (!(BN_mod(r,m,d,ctx)))
207 return BN_mod(r, r, m, ctx);
H A Dexp.c37 BN_mod(&a,&a,&c,&ctx);
H A Dexptest.c120 BN_mod(a,a,m,ctx);
121 BN_mod(b,b,m,ctx);
H A Dbn_exp2.c174 if (!BN_mod(val1[0],a1,m,ctx))
208 if (!BN_mod(val2[0],a2,m,ctx))
H A Dbn_prime.c419 if (!BN_mod(t1,rnd,add,ctx)) goto err;
462 if (!BN_mod(t1,q,qadd,ctx)) goto err;
H A Dbn_mont.c459 if (!BN_mod(&(mont->RR),&(mont->RR),&(mont->N),ctx)) goto err;
H A Dbn_exp.c675 if (!BN_mod(&am,a,m,ctx)) goto err;
848 (BN_mod(t, r, m, ctx) && (swap_tmp = r, r = t, t = swap_tmp, 1))))
851 * than always using BN_mod (which uses BN_copy if
853 /* We can use BN_mod and do not need BN_nnmod because our
854 * accumulator is never negative (the result of BN_mod does
H A Dbn.h469 #define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) macro
H A Dbntest.c234 message(out,"BN_mod");
813 BN_mod(c,a,b,ctx);/**/
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/engine/
H A Deng_rsax.c437 BN_mod(&tmp, &two_768, &_m, ctx);
442 BN_mod(&tmp, &two_640, &_m, ctx);
554 if (!BN_mod(r1,c,rsa->q,ctx)) goto err;
558 if (!BN_mod(r1,I,rsa->q,ctx)) goto err;
578 if (!BN_mod(r1,c,rsa->p,ctx)) goto err;
582 if (!BN_mod(r1,I,rsa->p,ctx)) goto err;
613 if (!BN_mod(r0,pr1,rsa->p,ctx)) goto err;
637 if (!BN_mod(vrfy, vrfy, rsa->n, ctx)) goto err;
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/rsa/
H A Drsa_chk.c143 r = BN_mod(j, key->d, i, ctx);
157 r = BN_mod(j, key->d, i, ctx);
H A Drsa_gen.c204 if (!BN_mod(rsa->dmp1,d,r1,ctx)) goto err;
207 if (!BN_mod(rsa->dmq1,d,r2,ctx)) goto err;
H A Drsa_eay.c812 if (!BN_mod(r1,c,rsa->q,ctx)) goto err;
816 if (!BN_mod(r1,I,rsa->q,ctx)) goto err;
835 if (!BN_mod(r1,c,rsa->p,ctx)) goto err;
839 if (!BN_mod(r1,I,rsa->p,ctx)) goto err;
869 if (!BN_mod(r0,pr1,rsa->p,ctx)) goto err;
891 if (!BN_mod(vrfy, vrfy, rsa->n, ctx)) goto err;
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/engines/ccgost/
H A Dgost_sign.c67 BN_mod(tmp,md,dsa->q,ctx);
81 BN_mod(newsig->r,tmp,dsa->q,ctx);
163 BN_mod(tmp,md,dsa->q,ctx);
177 BN_mod(u,tmp3,dsa->q,ctx);
H A Dgost2001.c117 BN_mod(e,md,order,ctx);
217 BN_mod(e,md,order,ctx);
248 BN_mod(R,X,order,ctx);
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/util/
H A Dntp-keygen.c1044 BN_mod(b, b, dsa->q, ctx);
1067 BN_mod(r, r, dsa->q, ctx);
1075 BN_mod(k, k, dsa->q, ctx);
1078 BN_mod(v, v, dsa->q, ctx); /* y = k + b r mod q */
1221 BN_mod(rsa->e, rsa->e, rsa->n, ctx);
1228 BN_mod(u, u, rsa->n, ctx);
1260 BN_mod(r, r, rsa->n, ctx);
1268 BN_mod(k, k, rsa->n, ctx);
1508 BN_mod(dsa->g, dsa->g, dsa->p, ctx);
1532 BN_mod(
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/cpl/trousers/dist/src/tspi/daa/big_integer/
H A Dbi_openssl.c91 BN_mod( result, result, bi_m, context);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/crypto/dsa/
H A Ddsa_ossl.c283 if (!BN_mod(r,r,dsa->q,ctx)) goto err;
383 if (!BN_mod(&u1,&t1,dsa->q,ctx)) goto err;
H A Ddsa_gen.c295 if (!BN_mod(c,X,r0,ctx)) goto err;
/netbsd-6-1-5-RELEASE/games/factor/
H A Dfactor.c299 BN_mod(x, tmp, val, ctx);
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/ntpd/
H A Dntp_crypto.c2058 BN_mod(peer->iffval, peer->iffval, dsa->q, bctx);
2136 BN_mod(bn, bn, dsa->q, bctx); /* k + b r mod q */
2360 BN_mod(peer->iffval, peer->iffval, rsa->n, bctx);
2436 BN_mod(k, k, rsa->n, bctx);
2686 BN_mod(peer->iffval, peer->iffval, dsa->p, bctx);
2764 BN_mod(k, k, dsa->q, bctx);

Completed in 131 milliseconds