Searched refs:BN_nnmod (Results 1 - 24 of 24) sorted by relevance

/external/openssl/crypto/bn/
H A Dbn_mod.c127 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) function
144 return BN_nnmod(r, r, m, ctx);
162 return BN_nnmod(r, r, m, ctx);
194 if (!BN_nnmod(r,t,m,ctx)) goto err;
206 /* r->neg == 0, thus we don't need BN_nnmod */
215 return BN_nnmod(r, r, m, ctx);
236 if (!BN_nnmod(r, a, m, ctx)) return 0;
H A Dbn_kron.c173 err = !BN_nnmod(B, B, A, ctx);
H A Dbn_gcd.c247 if (!BN_nnmod(B, B, A, ctx)) goto err;
487 if (!BN_nnmod(R,Y,n,ctx)) goto err;
548 if (!BN_nnmod(B, pB, A, ctx)) goto err;
641 if (!BN_nnmod(R,Y,n,ctx)) goto err;
H A Dbn_sqrt.c128 if (!BN_nnmod(A, a, p, ctx)) goto end;
289 if (!BN_nnmod(t, A, p, ctx)) goto end;
H A Dexpspeed.c266 if (!BN_nnmod(a,a,c,ctx)) goto err;
267 if (!BN_nnmod(b,b,c,ctx)) goto err;
H A Dbn_nist.c377 return BN_nnmod(r, a, field, ctx);
500 return BN_nnmod(r, a, field, ctx);
657 return BN_nnmod(r, a, field, ctx);
862 return BN_nnmod(r, a, field, ctx);
1065 return BN_nnmod(r, a, field, ctx);
H A Dbn_exp.c294 if (!BN_nnmod(val[0],a,m,ctx)) goto err; /* 1 */
435 if (!BN_nnmod(val[0],a,m,ctx))
849 /* We can use BN_mod and do not need BN_nnmod because our
1019 if (!BN_nnmod(val[0],a,m,ctx)) goto err; /* 1 */
H A Dbntest.c749 BN_nnmod(&a,&a,&n,ctx);
750 BN_nnmod(&b,&b,&n,ctx);
1781 if (!BN_nnmod(r, r, p, ctx)) goto err;
1784 if (!BN_nnmod(a, a, p, ctx)) goto err;
1793 if (!BN_nnmod(a, a, p, ctx)) goto err;
H A Dbn.h470 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
/external/chromium_org/third_party/boringssl/src/crypto/bn/
H A Ddiv.c376 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { function
393 return BN_nnmod(r, r, m, ctx);
412 return BN_nnmod(r, r, m, ctx);
449 if (!BN_nnmod(r, t, m, ctx)) {
465 /* r->neg == 0, thus we don't need BN_nnmod */
474 if (!BN_nnmod(r, a, m, ctx)) {
545 return BN_nnmod(r, r, m, ctx);
H A Dkronecker.c162 if (!BN_nnmod(B, B, A, ctx)) {
H A Dgcd.c271 if (!BN_nnmod(B, B, A, ctx)) {
524 if (!BN_nnmod(R, Y, n, ctx)) {
589 if (!BN_nnmod(B, pB, A, ctx))
687 if (!BN_nnmod(R, Y, n, ctx)) {
H A Dsqrt.c128 if (!BN_nnmod(A, a, p, ctx)) {
319 if (!BN_nnmod(t, A, p, ctx)) {
H A Dbn_test.c782 BN_nnmod(&a, &a, &n, ctx);
783 BN_nnmod(&b, &b, &n, ctx);
1223 if (!BN_nnmod(r, r, p, ctx))
1229 if (!BN_nnmod(a, a, p, ctx))
1244 if (!BN_nnmod(a, a, p, ctx))
H A Dexponentiation.c462 if (!BN_nnmod(val[0], a, m, ctx)) {
649 if (!BN_nnmod(val[0], a, m, ctx)) {
1194 * similar test returns true). We can use BN_mod and do not need BN_nnmod
/external/chromium_org/third_party/boringssl/src/crypto/ecdsa/
H A Decdsa.c210 if (!BN_nnmod(u1, X, order, ctx)) {
310 if (!BN_nnmod(r, X, order, ctx)) {
/external/openssl/crypto/ecdsa/
H A Decs_ossl.c201 if (!BN_nnmod(r, X, order, ctx))
490 if (!BN_nnmod(u1, X, order, ctx))
/external/chromium_org/third_party/boringssl/src/crypto/ec/
H A Dsimple.c194 if (!BN_nnmod(tmp_a, a, p, ctx))
203 if (!BN_nnmod(&group->b, b, p, ctx))
397 if (!BN_nnmod(&point->X, x, &group->field, ctx))
406 if (!BN_nnmod(&point->Y, y, &group->field, ctx))
417 if (!BN_nnmod(&point->Z, z, &group->field, ctx))
H A Doct.c367 if (!BN_nnmod(x, x_, &group->field, ctx)) {
/external/openssl/crypto/ec/
H A Decp_smpl.c206 if (!BN_nnmod(tmp_a, a, p, ctx)) goto err;
213 if (!BN_nnmod(&group->b, b, p, ctx)) goto err;
417 if (!BN_nnmod(&point->X, x, &group->field, ctx)) goto err;
426 if (!BN_nnmod(&point->Y, y, &group->field, ctx)) goto err;
437 if (!BN_nnmod(&point->Z, z, &group->field, ctx)) goto err;
H A Decp_oct.c102 if (!BN_nnmod(x, x_, &group->field,ctx)) goto err;
/external/chromium_org/third_party/boringssl/src/include/openssl/
H A Dbn.h475 /* BN_nnmod is a non-negative modulo function. It acts like |BN_mod|, but 0 <=
477 OPENSSL_EXPORT int BN_nnmod(BIGNUM *rem, const BIGNUM *numerator,
/external/openssl/crypto/srp/
H A Dsrp_lib.c318 if (!BN_nnmod(r,B,N,bn_ctx))
/external/openssl/include/openssl/
H A Dbn.h470 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);

Completed in 353 milliseconds