Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/bn/
Dbn_test.cc494 if (!BN_is_zero(d.get()) || BN_is_negative(d.get())) { in test_div()
506 if (!BN_is_zero(c.get()) || BN_is_negative(c.get())) { in test_div()
722 if (!BN_is_zero(c.get()) || BN_is_negative(c.get())) { in test_mul()
1454 if (ret != 1 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in test_dec2bn()
1460 if (ret != 3 || !BN_is_word(bn.get(), 256) || BN_is_negative(bn.get())) { in test_dec2bn()
1466 if (ret != 3 || !BN_abs_is_word(bn.get(), 42) || !BN_is_negative(bn.get())) { in test_dec2bn()
1472 if (ret != 2 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in test_dec2bn()
1478 if (ret != 2 || !BN_abs_is_word(bn.get(), 42) || BN_is_negative(bn.get())) { in test_dec2bn()
1496 if (ret != 1 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in test_hex2bn()
1502 if (ret != 3 || !BN_is_word(bn.get(), 0x256) || BN_is_negative(bn.get())) { in test_hex2bn()
[all …]
Dbn.c270 int BN_is_negative(const BIGNUM *bn) { in BN_is_negative() function
Dconvert.c383 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.c419 if (BN_is_negative(bn) && !BN_is_zero(bn)) in BN_to_ASN1_INTEGER()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c181 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in ECDSA_do_verify()
183 BN_is_negative(sig->s) || BN_ucmp(sig->s, order) >= 0) { in ECDSA_do_verify()
/external/boringssl/src/crypto/rsa/
Drsa_impl.c691 if (BN_is_negative(r0)) { in mod_exp()
715 if (BN_is_negative(r0)) { in mod_exp()
742 if (BN_is_negative(vrfy)) { in mod_exp()
/external/boringssl/src/crypto/dsa/
Ddsa_impl.c320 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in verify()
325 if (BN_is_zero(sig->s) || BN_is_negative(sig->s) || in verify()
/external/boringssl/src/crypto/ec/
Dp256-64.c127 if (BN_is_negative(bn)) { in BN_to_felem()
1817 if (BN_num_bits(p_scalar) > 256 || BN_is_negative(p_scalar)) { in ec_GFp_nistp256_points_mul()
1862 if (BN_num_bits(scalar) > 256 || BN_is_negative(scalar)) { in ec_GFp_nistp256_points_mul()
Dwnaf.c179 if (BN_is_negative(scalar)) { in compute_wNAF()
/external/boringssl/src/include/openssl/
Dbn.h227 OPENSSL_EXPORT int BN_is_negative(const BIGNUM *bn);
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp1067 if (BN_is_negative(source)) { in bignumToArray()