Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/bn/
Ddiv.c383 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { in BN_nnmod() function
400 return BN_nnmod(r, r, m, ctx); in BN_mod_add()
419 return BN_nnmod(r, r, m, ctx); in BN_mod_sub()
456 if (!BN_nnmod(r, t, m, ctx)) { in BN_mod_mul()
481 if (!BN_nnmod(r, a, m, ctx)) { in BN_mod_lshift()
550 return BN_nnmod(r, r, m, ctx); in BN_mod_lshift1()
Dgcd.c267 if (!BN_nnmod(B, B, A, ctx)) { in BN_mod_inverse()
520 if (!BN_nnmod(R, Y, n, ctx)) { in BN_mod_inverse()
581 if (!BN_nnmod(B, pB, A, ctx)) { in BN_mod_inverse_no_branch()
680 if (!BN_nnmod(R, Y, n, ctx)) { in BN_mod_inverse_no_branch()
Dkronecker.c162 if (!BN_nnmod(B, B, A, ctx)) { in BN_kronecker()
Dsqrt.c128 if (!BN_nnmod(A, a, p, ctx)) { in BN_mod_sqrt()
319 if (!BN_nnmod(t, A, p, ctx)) { in BN_mod_sqrt()
Dbn_test.cc908 !BN_nnmod(a.get(), a.get(), n.get(), ctx) || in test_mont()
909 !BN_nnmod(b.get(), b.get(), n.get(), ctx) || in test_mont()
1279 !BN_nnmod(r.get(), r.get(), p.get(), ctx) || in test_mod_sqrt()
1282 !BN_nnmod(a.get(), a.get(), p.get(), ctx) || in test_mod_sqrt()
1293 !BN_nnmod(a.get(), a.get(), p.get(), ctx)) { in test_mod_sqrt()
Dexponentiation.c464 if (!BN_nnmod(val[0], a, m, ctx)) { in mod_exp_recp()
651 if (!BN_nnmod(val[0], a, m, ctx)) { in BN_mod_exp_mont()
/external/boringssl/src/crypto/ec/
Dsimple.c199 if (!BN_nnmod(tmp_a, a, p, ctx)) { in ec_GFp_simple_group_set_curve()
211 if (!BN_nnmod(&group->b, b, p, ctx)) { in ec_GFp_simple_group_set_curve()
402 if (!BN_nnmod(&point->X, x, &group->field, ctx)) { in ec_GFp_simple_set_Jprojective_coordinates_GFp()
412 if (!BN_nnmod(&point->Y, y, &group->field, ctx)) { in ec_GFp_simple_set_Jprojective_coordinates_GFp()
424 if (!BN_nnmod(&point->Z, z, &group->field, ctx)) { in ec_GFp_simple_set_Jprojective_coordinates_GFp()
Doct.c349 if (!BN_nnmod(x, x_, &group->field, ctx)) { in ec_GFp_simple_set_compressed_coordinates()
Dp256-64.c1820 if (!BN_nnmod(tmp_scalar, p_scalar, &group->order, ctx)) { in ec_GFp_nistp256_points_mul()
1865 if (!BN_nnmod(tmp_scalar, scalar, &group->order, ctx)) { in ec_GFp_nistp256_points_mul()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c220 if (!BN_nnmod(u1, X, order, ctx)) { in ECDSA_do_verify()
318 if (!BN_nnmod(r, X, order, ctx)) { in ecdsa_sign_setup()
/external/boringssl/src/include/openssl/
Dbn.h491 OPENSSL_EXPORT int BN_nnmod(BIGNUM *rem, const BIGNUM *numerator,