Home
last modified time | relevance | path

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

/freebsd-10-stable/crypto/openssl/crypto/bn/
Dbn_mod.c127 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) in BN_nnmod() function
147 return BN_nnmod(r, r, m, ctx); in BN_mod_add()
169 return BN_nnmod(r, r, m, ctx); in BN_mod_sub()
207 if (!BN_nnmod(r, t, m, ctx)) in BN_mod_mul()
229 return BN_nnmod(r, r, m, ctx); in BN_mod_lshift1()
252 if (!BN_nnmod(r, a, m, ctx)) in BN_mod_lshift()
Dbn_gcd.c267 if (!BN_nnmod(B, B, A, ctx)) in BN_mod_inverse()
521 if (!BN_nnmod(R, Y, n, ctx)) in BN_mod_inverse()
588 if (!BN_nnmod(B, pB, A, ctx)) in BN_mod_inverse_no_branch()
688 if (!BN_nnmod(R, Y, n, ctx)) in BN_mod_inverse_no_branch()
Dexpspeed.c275 if (!BN_nnmod(a, a, c, ctx)) in do_mul_exp()
277 if (!BN_nnmod(b, b, c, ctx)) in do_mul_exp()
Dbn_sqrt.c125 if (!BN_nnmod(A, a, p, ctx)) in BN_mod_sqrt()
305 if (!BN_nnmod(t, A, p, ctx)) in BN_mod_sqrt()
Dbn_kron.c172 err = !BN_nnmod(B, B, A, ctx); in BN_kronecker()
Dbn_nist.c390 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_192()
535 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_224()
716 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_256()
962 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_384()
1220 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_521()
Dbn_exp.c305 if (!BN_nnmod(val[0], a, m, ctx)) in BN_mod_exp_recp()
447 if (!BN_nnmod(val[0], a, m, ctx)) in BN_mod_exp_mont()
1100 if (!BN_nnmod(val[0], a, m, ctx)) in BN_mod_exp_simple()
Dbntest.c814 BN_nnmod(&a, &a, &n, ctx); in test_mont()
815 BN_nnmod(&b, &b, &n, ctx); in test_mont()
1910 if (!BN_nnmod(r, r, p, ctx)) in test_sqrt()
1916 if (!BN_nnmod(a, a, p, ctx)) in test_sqrt()
1931 if (!BN_nnmod(a, a, p, ctx)) in test_sqrt()
Dbn.h484 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
/freebsd-10-stable/crypto/openssl/doc/crypto/
DBN_add.pod5 BN_add, BN_sub, BN_mul, BN_sqr, BN_div, BN_mod, BN_nnmod, BN_mod_add,
26 int BN_nnmod(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
70 BN_nnmod() reduces I<a> modulo I<m> and places the non-negative
123 BN_nnmod(), BN_mod_add(), BN_mod_sub(), and BN_mod_sqr() were added in
Dbn.pod40 int BN_nnmod(BIGNUM *rem, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
/freebsd-10-stable/crypto/openssl/crypto/ecdsa/
Decs_ossl.c174 if (!BN_nnmod(r, X, order, ctx)) { in ecdsa_sign_setup()
430 if (!BN_nnmod(u1, X, order, ctx)) { in ecdsa_do_verify()
/freebsd-10-stable/crypto/openssl/crypto/ec/
Decp_smpl.c207 if (!BN_nnmod(tmp_a, a, p, ctx)) in ec_GFp_simple_group_set_curve()
216 if (!BN_nnmod(&group->b, b, p, ctx)) in ec_GFp_simple_group_set_curve()
424 if (!BN_nnmod(&point->X, x, &group->field, ctx)) in ec_GFp_simple_set_Jprojective_coordinates_GFp()
433 if (!BN_nnmod(&point->Y, y, &group->field, ctx)) in ec_GFp_simple_set_Jprojective_coordinates_GFp()
444 if (!BN_nnmod(&point->Z, z, &group->field, ctx)) in ec_GFp_simple_set_Jprojective_coordinates_GFp()
Decp_oct.c106 if (!BN_nnmod(x, x_, &group->field, ctx)) in ec_GFp_simple_set_compressed_coordinates()
Decp_nistp224.c1533 if (!BN_nnmod(tmp_scalar, p_scalar, &group->order, ctx)) { in ec_GFp_nistp224_points_mul()
1579 if (!BN_nnmod(tmp_scalar, scalar, &group->order, ctx)) { in ec_GFp_nistp224_points_mul()
Decp_nistp521.c1931 if (!BN_nnmod(tmp_scalar, p_scalar, &group->order, ctx)) { in ec_GFp_nistp521_points_mul()
1977 if (!BN_nnmod(tmp_scalar, scalar, &group->order, ctx)) { in ec_GFp_nistp521_points_mul()
Decp_nistp256.c2122 if (!BN_nnmod(tmp_scalar, p_scalar, &group->order, ctx)) { in ec_GFp_nistp256_points_mul()
2170 if (!BN_nnmod(tmp_scalar, scalar, &group->order, ctx)) { in ec_GFp_nistp256_points_mul()
/freebsd-10-stable/crypto/openssl/crypto/srp/
Dsrp_lib.c316 if (!BN_nnmod(r, B, N, bn_ctx)) in SRP_Verify_B_mod_N()
/freebsd-10-stable/crypto/openssl/engines/ccgost/
Dgost2001.c208 if(!BN_nnmod(r, X, order, ctx)) { in gost2001_do_sign()
/freebsd-10-stable/crypto/openssl/crypto/engine/
Deng_rsax.c480 BN_nnmod(&tmp2, &tmp, &_m, ctx); in mod_exp_pre_compute_data_512()
/freebsd-10-stable/secure/lib/libcrypto/
DMakefile.man340 MLINKS+= BN_add.3 BN_nnmod.3
/freebsd-10-stable/crypto/openssl/
DCHANGES5670 problems with BN_mod() and BN_nnmod().
6214 *) Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that
6229 BN_nnmod
6242 BN_nnmod otherwise is like BN_mod (if BN_mod computes a remainder r
6243 such that |m| < r < 0, BN_nnmod will output rem + |m| instead).
/freebsd-10-stable/crypto/openssl/util/
Dlibeay.num2043 BN_nnmod 2606 EXIST::FUNCTION: