Home
last modified time | relevance | path

Searched refs:BN_nnmod (Results 1 – 14 of 14) 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_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_nist.c378 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_192()
497 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_224()
653 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_256()
857 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_384()
1059 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_521()
Dbn_exp.c294 if (!BN_nnmod(val[0],a,m,ctx)) goto err; /* 1 */ in BN_mod_exp_recp()
435 if (!BN_nnmod(val[0],a,m,ctx)) in BN_mod_exp_mont()
1012 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.h470 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
/external/openssl/crypto/ecdsa/
Decs_ossl.c181 if (!BN_nnmod(r, X, order, ctx)) in ecdsa_sign_setup()
470 if (!BN_nnmod(u1, X, order, ctx)) in ecdsa_do_verify()
/external/openssl/crypto/ec/
Decp_smpl.c205 if (!BN_nnmod(tmp_a, a, p, ctx)) goto err; in ec_GFp_simple_group_set_curve()
212 if (!BN_nnmod(&group->b, b, p, ctx)) goto err; in ec_GFp_simple_group_set_curve()
416 if (!BN_nnmod(&point->X, x, &group->field, ctx)) goto err; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
425 if (!BN_nnmod(&point->Y, y, &group->field, ctx)) goto err; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
436 if (!BN_nnmod(&point->Z, z, &group->field, ctx)) goto err; in ec_GFp_simple_set_Jprojective_coordinates_GFp()
Decp_oct.c102 if (!BN_nnmod(x, x_, &group->field,ctx)) goto err; in ec_GFp_simple_set_compressed_coordinates()
/external/openssl/crypto/srp/
Dsrp_lib.c308 if (!BN_nnmod(r,B,N,bn_ctx)) in SRP_Verify_B_mod_N()
/external/openssl/include/openssl/
Dbn.h470 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);