Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/bn/
Dbn_test.cc496 if (!BN_is_zero(d.get()) || BN_is_negative(d.get())) { in test_div()
508 if (!BN_is_zero(c.get()) || BN_is_negative(c.get())) { in test_div()
724 if (!BN_is_zero(c.get()) || BN_is_negative(c.get())) { in test_mul()
1544 if (ret != 1 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in test_dec2bn()
1550 if (ret != 3 || !BN_is_word(bn.get(), 256) || BN_is_negative(bn.get())) { in test_dec2bn()
1556 if (ret != 3 || !BN_abs_is_word(bn.get(), 42) || !BN_is_negative(bn.get())) { in test_dec2bn()
1562 if (ret != 2 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in test_dec2bn()
1568 if (ret != 2 || !BN_abs_is_word(bn.get(), 42) || BN_is_negative(bn.get())) { in test_dec2bn()
1579 if (ret != 1 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in test_hex2bn()
1585 if (ret != 3 || !BN_is_word(bn.get(), 0x256) || BN_is_negative(bn.get())) { in test_hex2bn()
[all …]
Dbn_asn1.c63 if (BN_is_negative(bn)) { in BN_bn2cbb()
Dbn.c269 int BN_is_negative(const BIGNUM *bn) { in BN_is_negative() function
Dconvert.c407 if (BN_is_negative(t)) { in BN_bn2dec()
/external/boringssl/src/crypto/asn1/
Dt_pkey.c70 neg = (BN_is_negative(num))?"-":""; in ASN1_bn_print()
Da_enum.c153 if(BN_is_negative(bn)) ret->type = V_ASN1_NEG_ENUMERATED; in BN_to_ASN1_ENUMERATED()
Da_int.c421 if (BN_is_negative(bn) && !BN_is_zero(bn)) in BN_to_ASN1_INTEGER()
/external/boringssl/src/crypto/rsa/
Drsa_impl.c697 if (BN_is_negative(r0)) { in mod_exp()
721 if (BN_is_negative(r0)) { in mod_exp()
762 (BN_is_negative(m1) && !BN_add(m1, m1, prime)) || in mod_exp()
783 if (BN_is_negative(vrfy)) { in mod_exp()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c180 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in ECDSA_do_verify()
182 BN_is_negative(sig->s) || BN_ucmp(sig->s, order) >= 0) { in ECDSA_do_verify()
/external/boringssl/src/crypto/ec/
Dp256-x86_64.c256 if (BN_num_bits(p_scalar) > 256 || BN_is_negative(p_scalar)) { in ecp_nistz256_windowed_mul()
414 if (BN_num_bits(g_scalar) > 256 || BN_is_negative(g_scalar)) { in ecp_nistz256_points_mul()
Dp224-64.c236 BN_is_negative(bn)) { in BN_to_felem()
1202 if (BN_num_bits(p_scalar) > 224 || BN_is_negative(p_scalar)) { in ec_GFp_nistp224_points_mul()
1249 if (BN_num_bits(g_scalar) > 224 || BN_is_negative(g_scalar)) { in ec_GFp_nistp224_points_mul()
Dwnaf.c122 if (BN_is_negative(scalar)) { in compute_wNAF()
Dp256-64.c127 if (BN_is_negative(bn)) { in BN_to_felem()
1780 if (BN_num_bits(p_scalar) > 256 || BN_is_negative(p_scalar)) { in ec_GFp_nistp256_points_mul()
1824 if (BN_num_bits(g_scalar) > 256 || BN_is_negative(g_scalar)) { in ec_GFp_nistp256_points_mul()
/external/boringssl/src/crypto/dsa/
Ddsa.c614 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in DSA_do_check_signature()
619 if (BN_is_zero(sig->s) || BN_is_negative(sig->s) || in DSA_do_check_signature()
/external/boringssl/src/include/openssl/
Dbn.h228 OPENSSL_EXPORT int BN_is_negative(const BIGNUM *bn);
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp1076 if (BN_is_negative(source)) { in bignumToArray()