/openssl/crypto/bn/ |
H A D | bn_mod.c | 14 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) in BN_nnmod() function 39 return BN_nnmod(r, r, m, ctx); in BN_mod_add() 119 return BN_nnmod(r, r, m, ctx); in BN_mod_sub() 226 if (!BN_nnmod(r, t, m, ctx)) in BN_mod_mul() 248 return BN_nnmod(r, r, m, ctx); in BN_mod_lshift1() 271 if (!BN_nnmod(r, a, m, ctx)) in BN_mod_lshift()
|
H A D | bn_gcd.c | 69 if (!BN_nnmod(B, &local_B, A, ctx)) in bn_mod_inverse_no_branch() 174 if (!BN_nnmod(R, Y, n, ctx)) in bn_mod_inverse_no_branch() 249 if (!BN_nnmod(B, B, A, ctx)) in int_bn_mod_inverse() 499 if (!BN_nnmod(R, Y, n, ctx)) in int_bn_mod_inverse()
|
H A D | bn_sqrt.c | 78 if (!BN_nnmod(A, a, p, ctx)) in BN_mod_sqrt() 259 if (!BN_nnmod(t, A, p, ctx)) in BN_mod_sqrt()
|
H A D | bn_kron.c | 126 err = !BN_nnmod(B, B, A, ctx); in BN_kronecker()
|
H A D | bn_nist.c | 373 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_192() 510 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_224() 682 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_256() 919 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_384() 1171 return BN_nnmod(r, a, field, ctx); in BN_nist_mod_521()
|
H A D | bn_exp.c | 219 if (!BN_nnmod(val[0], a, m, ctx)) in BN_mod_exp_recp() 372 if (!BN_nnmod(val[0], a, m, ctx)) in BN_mod_exp_mont() 676 || !BN_nnmod(reduced, a, m, ctx)) { in BN_mod_exp_mont_consttime() 1351 if (!BN_nnmod(val[0], a, m, ctx)) in BN_mod_exp_simple()
|
/openssl/doc/man3/ |
H A D | BN_add.pod | 5 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); 73 BN_nnmod() reduces I<a> modulo I<m> and places the nonnegative 119 For modular operations such as BN_nnmod() or BN_mod_exp() it is an error
|
/openssl/crypto/ec/ |
H A D | ecdsa_ossl.c | 232 if (!BN_nnmod(r, X, order, ctx)) { in ecdsa_sign_setup() 541 if (!BN_nnmod(u1, X, order, ctx)) { in ossl_ecdsa_simple_verify_sig()
|
H A D | ecp_smpl.c | 172 if (!BN_nnmod(tmp_a, a, p, ctx)) in ossl_ec_GFp_simple_group_set_curve() 181 if (!BN_nnmod(group->b, b, p, ctx)) in ossl_ec_GFp_simple_group_set_curve() 392 if (!BN_nnmod(point->X, x, group->field, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp() 401 if (!BN_nnmod(point->Y, y, group->field, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp() 412 if (!BN_nnmod(point->Z, z, group->field, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
|
H A D | ecp_oct.c | 54 if (!BN_nnmod(x, x_, group->field, ctx)) in ossl_ec_GFp_simple_set_compressed_coordinates()
|
H A D | ecp_sm2p256.c | 537 if (!BN_nnmod(tmp, scalar[i], group->order, ctx)) { in ecp_sm2p256_windowed_mul() 708 || !BN_nnmod(tmp, x, group->order, ctx)) { in ecp_sm2p256_inv_mod_ord()
|
H A D | ecp_nistz256.c | 645 if (!BN_nnmod(mod, scalar[i], group->order, ctx)) { in ecp_nistz256_windowed_mul() 1021 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) { in ecp_nistz256_points_mul() 1315 || !BN_nnmod(tmp, x, group->order, ctx)) { in ecp_nistz256_inv_mod_ord()
|
H A D | ecp_nistp224.c | 1509 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp224_points_mul() 1561 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) { in ossl_ec_GFp_nistp224_points_mul()
|
H A D | ec_mult.c | 227 if (!BN_nnmod(k, k, cardinality, ctx)) { in ossl_ec_scalar_mul_ladder()
|
H A D | ecp_nistp384.c | 1806 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp384_points_mul() 1853 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) { in ossl_ec_GFp_nistp384_points_mul()
|
H A D | ecp_nistp521.c | 2015 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp521_points_mul() 2067 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) { in ossl_ec_GFp_nistp521_points_mul()
|
H A D | ecp_nistp256.c | 2127 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) { in ossl_ec_GFp_nistp256_points_mul() 2181 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) { in ossl_ec_GFp_nistp256_points_mul()
|
/openssl/crypto/srp/ |
H A D | srp_lib.c | 278 if (!BN_nnmod(r, B, N, bn_ctx)) in SRP_Verify_B_mod_N()
|
/openssl/include/openssl/ |
H A D | bn.h | 278 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
|
/openssl/test/ |
H A D | bntest.c | 1595 || !TEST_true(BN_nnmod(ret, a, b, ctx)) in file_quotient() 1636 || !TEST_true(BN_nnmod(a_tmp, a, m, ctx)) in file_modmul() 1637 || !TEST_true(BN_nnmod(b_tmp, b, m, ctx)) in file_modmul()
|
/openssl/ |
H A D | CHANGES.md | 14847 problems with BN_mod() and BN_nnmod(). 15468 * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that 15485 BN_nnmod 15498 `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r` 15499 such that `|m| < r < 0`, `BN_nnmod` will output `rem + |m|` instead).
|
/openssl/util/ |
H A D | libcrypto.num | 3802 BN_nnmod 3889 3_0_0 EXIST::FUNCTION:
|