Searched refs:BN_is_negative (Results 1 – 21 of 21) sorted by relevance
201 if (!BN_is_negative(a.get()) && in TestSum()202 !BN_is_negative(b.get()) && BN_cmp(a.get(), b.get()) >= 0) { in TestSum()239 if (!BN_is_negative(b.get()) && b_word != (BN_ULONG)-1) { in TestSum()437 if (!BN_is_negative(b.get()) && b_word != (BN_ULONG)-1) { in TestQuotient()464 if (!BN_is_negative(b.get())) { in TestQuotient()468 (BN_is_negative(nnmod.get()) && in TestQuotient()876 if (ret != 1 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in TestDec2BN()882 if (ret != 3 || !BN_is_word(bn.get(), 256) || BN_is_negative(bn.get())) { in TestDec2BN()888 if (ret != 3 || !BN_abs_is_word(bn.get(), 42) || !BN_is_negative(bn.get())) { in TestDec2BN()894 if (ret != 2 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in TestDec2BN()[all …]
37 assert(!BN_is_negative(n)); in bn_mont_n0()167 assert(!BN_is_negative(n)); in bn_mod_exp_base_2_vartime()
63 if (BN_is_negative(bn)) { in BN_marshal_asn1()
241 if (BN_is_negative(a) || BN_cmp(a, n) >= 0) { in BN_mod_inverse_odd()449 if (BN_is_negative(a) || BN_cmp(a, &mont->N) >= 0) { in BN_mod_inverse_blinded()
297 int BN_is_negative(const BIGNUM *bn) { in BN_is_negative() function
185 if (BN_is_negative(mod)) { in BN_MONT_CTX_set()
459 if (BN_is_negative(a) && in BN_bn2dec()
152 if (BN_is_negative(bn)) in BN_to_ASN1_ENUMERATED()
427 if (BN_is_negative(bn) && !BN_is_zero(bn)) in BN_to_ASN1_INTEGER()
174 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in ECDSA_do_verify()176 BN_is_negative(sig->s) || BN_ucmp(sig->s, order) >= 0) { in ECDSA_do_verify()
84 const char *neg = BN_is_negative(num) ? "-" : ""; in bn_print()93 (BN_is_negative(num)) ? " (Negative)" : "") <= 0) { in bn_print()
237 if (BN_num_bits(p_scalar) > 256 || BN_is_negative(p_scalar)) { in ecp_nistz256_windowed_mul()384 if (BN_num_bits(g_scalar) > 256 || BN_is_negative(g_scalar)) { in ecp_nistz256_points_mul()
217 BN_is_negative(bn)) { in BN_to_felem()1053 if (BN_num_bits(p_scalar) > 224 || BN_is_negative(p_scalar)) { in ec_GFp_nistp224_points_mul()1095 if (BN_num_bits(g_scalar) > 224 || BN_is_negative(g_scalar)) { in ec_GFp_nistp224_points_mul()
121 if (BN_is_negative(scalar)) { in compute_wNAF()
286 if (BN_is_negative(x) || BN_cmp(x, &group->field) >= 0) { in ec_GFp_simple_set_compressed_coordinates()
104 if (BN_is_negative(bn)) { in BN_to_felem()1612 if (BN_num_bits(p_scalar) > 256 || BN_is_negative(p_scalar)) { in ec_GFp_nistp256_points_mul()1652 if (BN_num_bits(g_scalar) > 256 || BN_is_negative(g_scalar)) { in ec_GFp_nistp256_points_mul()
279 if (BN_is_negative(in) || in set_Jprojective_coordinate_GFp()
705 if (BN_is_negative(r0)) { in mod_exp()725 if (BN_is_negative(r0)) { in mod_exp()755 (BN_is_negative(m1) && !BN_add(m1, m1, ap->prime)) || in mod_exp()
647 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in DSA_do_check_signature()652 if (BN_is_zero(sig->s) || BN_is_negative(sig->s) || in DSA_do_check_signature()
227 OPENSSL_EXPORT int BN_is_negative(const BIGNUM *bn);
249 if (BN_is_negative(source)) { in bignumToArray()