Home
last modified time | relevance | path

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

/external/openssl/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()
215 return BN_nnmod(r, r, m, ctx); in BN_mod_lshift1()
236 if (!BN_nnmod(r, a, m, ctx)) return 0; in BN_mod_lshift()
Dbn_gcd.c246 if (!BN_nnmod(B, B, A, ctx)) goto err; in BN_mod_inverse()
486 if (!BN_nnmod(R,Y,n,ctx)) goto err; in BN_mod_inverse()
547 if (!BN_nnmod(B, pB, A, ctx)) goto err; in BN_mod_inverse_no_branch()
640 if (!BN_nnmod(R,Y,n,ctx)) goto err; in BN_mod_inverse_no_branch()
Dbn_nist.c367 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_192()
453 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_224()
563 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_256()
686 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_384()
794 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_521()
Dbn_sqrt.c128 if (!BN_nnmod(A, a, p, ctx)) goto end; in BN_mod_sqrt()
289 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_kron.c173 err = !BN_nnmod(B, B, A, ctx); in BN_kronecker()
Dbn_exp.c282 if (!BN_nnmod(val[0],a,m,ctx)) goto err; /* 1 */ in BN_mod_exp_recp()
423 if (!BN_nnmod(val[0],a,m,ctx)) in BN_mod_exp_mont()
905 if (!BN_nnmod(val[0],a,m,ctx)) goto err; /* 1 */ in BN_mod_exp_simple()
Dbntest.c749 BN_nnmod(&a,&a,&n,ctx); in test_mont()
750 BN_nnmod(&b,&b,&n,ctx); in test_mont()
1781 if (!BN_nnmod(r, r, p, ctx)) goto err; in test_sqrt()
1784 if (!BN_nnmod(a, a, p, ctx)) goto err; in test_sqrt()
1793 if (!BN_nnmod(a, a, p, ctx)) goto err; in test_sqrt()
Dbn.h452 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
/external/openssl/crypto/ecdsa/
Decs_ossl.c171 if (!BN_nnmod(r, X, order, ctx)) in ecdsa_sign_setup()
459 if (!BN_nnmod(u1, X, order, ctx)) in ecdsa_do_verify()
/external/openssl/crypto/ec/
Decp_smpl.c198 if (!BN_nnmod(tmp_a, a, p, ctx)) goto err; in ec_GFp_simple_group_set_curve()
205 if (!BN_nnmod(&group->b, b, p, ctx)) goto err; in ec_GFp_simple_group_set_curve()
409 if (!BN_nnmod(&point->X, x, &group->field, ctx)) goto err; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
418 if (!BN_nnmod(&point->Y, y, &group->field, ctx)) goto err; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
429 if (!BN_nnmod(&point->Z, z, &group->field, ctx)) goto err; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
669 if (!BN_nnmod(x, x_, &group->field,ctx)) goto err; in ec_GFp_simple_set_compressed_coordinates()
/external/openssl/include/openssl/
Dbn.h452 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);