Home
last modified time | relevance | path

Searched refs:BN_is_negative (Results 1 – 21 of 21) sorted by relevance

/external/boringssl/src/crypto/bn/
Dbn_test.cc201 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 …]
Dmontgomery_inv.c37 assert(!BN_is_negative(n)); in bn_mont_n0()
167 assert(!BN_is_negative(n)); in bn_mod_exp_base_2_vartime()
Dbn_asn1.c63 if (BN_is_negative(bn)) { in BN_marshal_asn1()
Dgcd.c241 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()
Dbn.c297 int BN_is_negative(const BIGNUM *bn) { in BN_is_negative() function
Dmontgomery.c185 if (BN_is_negative(mod)) { in BN_MONT_CTX_set()
Dconvert.c459 if (BN_is_negative(a) && in BN_bn2dec()
/external/boringssl/src/crypto/asn1/
Da_enum.c152 if (BN_is_negative(bn)) in BN_to_ASN1_ENUMERATED()
Da_int.c427 if (BN_is_negative(bn) && !BN_is_zero(bn)) in BN_to_ASN1_INTEGER()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c174 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()
/external/boringssl/src/crypto/evp/
Dprint.c84 const char *neg = BN_is_negative(num) ? "-" : ""; in bn_print()
93 (BN_is_negative(num)) ? " (Negative)" : "") <= 0) { in bn_print()
/external/boringssl/src/crypto/ec/
Dp256-x86_64.c237 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()
Dp224-64.c217 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()
Dwnaf.c121 if (BN_is_negative(scalar)) { in compute_wNAF()
Doct.c286 if (BN_is_negative(x) || BN_cmp(x, &group->field) >= 0) { in ec_GFp_simple_set_compressed_coordinates()
Dp256-64.c104 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()
Dsimple.c279 if (BN_is_negative(in) || in set_Jprojective_coordinate_GFp()
/external/boringssl/src/crypto/rsa/
Drsa_impl.c705 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()
/external/boringssl/src/crypto/dsa/
Ddsa.c647 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()
/external/boringssl/src/include/openssl/
Dbn.h227 OPENSSL_EXPORT int BN_is_negative(const BIGNUM *bn);
/external/conscrypt/common/src/jni/main/cpp/
DNativeCrypto.cpp249 if (BN_is_negative(source)) { in bignumToArray()