Symbol: BN_is_negative
crypto/heimdal/include/crypto-headers.h
28
#ifndef BN_is_negative
crypto/heimdal/kdc/pkinit.c
913
integer->negative = BN_is_negative(bn);
crypto/heimdal/lib/krb5/pkinit.c
113
integer->negative = BN_is_negative(bn);
crypto/openssh/dh.c
246
if (BN_is_negative(dh_pub)) {
crypto/openssl/crypto/asn1/a_int.c
483
if (BN_is_negative(bn) && !BN_is_zero(bn))
crypto/openssl/crypto/asn1/t_pkey.c
56
neg = BN_is_negative(num) ? "-" : "";
crypto/openssl/crypto/asn1_dsa.c
71
if (BN_is_negative(n))
crypto/openssl/crypto/bn/bn_conv.c
79
if (BN_is_negative(t))
crypto/openssl/crypto/bn/bn_intern.c
48
if (BN_is_negative(scalar)) {
crypto/openssl/crypto/bn/bn_nist.c
1156
if (BN_is_negative(a) || BN_ucmp(a, &ossl_bignum_nist_p_521_sqr) >= 0)
crypto/openssl/crypto/bn/bn_nist.c
370
if (BN_is_negative(a) || BN_ucmp(a, &ossl_bignum_nist_p_192_sqr) >= 0)
crypto/openssl/crypto/bn/bn_nist.c
506
if (BN_is_negative(a) || BN_ucmp(a, &ossl_bignum_nist_p_224_sqr) >= 0)
crypto/openssl/crypto/bn/bn_nist.c
675
if (BN_is_negative(a) || BN_ucmp(a, &ossl_bignum_nist_p_256_sqr) >= 0)
crypto/openssl/crypto/bn/bn_nist.c
908
if (BN_is_negative(a) || BN_ucmp(a, &ossl_bignum_nist_p_384_sqr) >= 0)
crypto/openssl/crypto/bn/bn_prime.c
377
if (BN_is_zero(w3) || BN_is_negative(w3))
crypto/openssl/crypto/bn/bn_rsa_fips186_4.c
339
if (BN_is_negative(R) && !BN_add(R, R, r1r2x2))
crypto/openssl/crypto/der_writer.c
152
if (v == NULL || BN_is_negative(v))
crypto/openssl/crypto/dh/dh_check.c
87
if (BN_is_negative(dh->params.g)
crypto/openssl/crypto/dsa/dsa_ossl.c
238
|| BN_is_negative(dsa->params.p)
crypto/openssl/crypto/dsa/dsa_ossl.c
239
|| BN_is_negative(dsa->params.q)
crypto/openssl/crypto/dsa/dsa_ossl.c
240
|| BN_is_negative(dsa->params.g)) {
crypto/openssl/crypto/dsa/dsa_ossl.c
391
if (BN_is_zero(r) || BN_is_negative(r) || BN_ucmp(r, dsa->params.q) >= 0) {
crypto/openssl/crypto/dsa/dsa_ossl.c
395
if (BN_is_zero(s) || BN_is_negative(s) || BN_ucmp(s, dsa->params.q) >= 0) {
crypto/openssl/crypto/ec/ec_asn1.c
652
if (BN_is_negative(p) || BN_is_zero(p)) {
crypto/openssl/crypto/ec/ec_asn1.c
721
if (BN_is_negative(a) || BN_is_zero(a)) {
crypto/openssl/crypto/ec/ec_key.c
507
if (BN_is_negative(x)
crypto/openssl/crypto/ec/ec_key.c
509
|| BN_is_negative(y)
crypto/openssl/crypto/ec/ec_lib.c
1638
if (BN_is_negative(p) || BN_is_zero(p)) {
crypto/openssl/crypto/ec/ec_lib.c
1703
|| (BN_is_negative(order) || BN_is_zero(order))
crypto/openssl/crypto/ec/ec_lib.c
380
|| BN_is_negative(group->field)) {
crypto/openssl/crypto/ec/ec_lib.c
390
if (order == NULL || BN_is_zero(order) || BN_is_negative(order)
crypto/openssl/crypto/ec/ec_lib.c
401
if (cofactor != NULL && BN_is_negative(cofactor)) {
crypto/openssl/crypto/ec/ec_mult.c
223
if ((BN_num_bits(k) > cardinality_bits) || (BN_is_negative(k))) {
crypto/openssl/crypto/ec/ecdsa_ossl.c
487
if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || BN_ucmp(sig->r, order) >= 0 || BN_is_zero(sig->s) || BN_is_negative(sig->s) || BN_ucmp(sig->s, order) >= 0) {
crypto/openssl/crypto/ec/ecp_nistp224.c
1486
|| (BN_is_negative(p_scalar))) {
crypto/openssl/crypto/ec/ecp_nistp224.c
1536
if ((BN_num_bits(scalar) > 224) || (BN_is_negative(scalar))) {
crypto/openssl/crypto/ec/ecp_nistp224.c
335
if (BN_is_negative(bn)) {
crypto/openssl/crypto/ec/ecp_nistp256.c
156
if (BN_is_negative(bn)) {
crypto/openssl/crypto/ec/ecp_nistp256.c
2110
|| (BN_is_negative(p_scalar))) {
crypto/openssl/crypto/ec/ecp_nistp256.c
2162
if ((BN_num_bits(scalar) > 256) || (BN_is_negative(scalar))) {
crypto/openssl/crypto/ec/ecp_nistp384.c
146
if (BN_is_negative(bn)) {
crypto/openssl/crypto/ec/ecp_nistp384.c
1829
|| (BN_is_negative(p_scalar))) {
crypto/openssl/crypto/ec/ecp_nistp384.c
1874
if ((BN_num_bits(scalar) > 384) || (BN_is_negative(scalar))) {
crypto/openssl/crypto/ec/ecp_nistp521.c
180
if (BN_is_negative(bn)) {
crypto/openssl/crypto/ec/ecp_nistp521.c
1923
|| (BN_is_negative(p_scalar))) {
crypto/openssl/crypto/ec/ecp_nistp521.c
1973
if ((BN_num_bits(scalar) > 521) || (BN_is_negative(scalar))) {
crypto/openssl/crypto/ec/ecp_nistz256.c
1008
|| BN_is_negative(scalar)) {
crypto/openssl/crypto/ec/ecp_nistz256.c
1304
if ((BN_num_bits(x) > 256) || BN_is_negative(x)) {
crypto/openssl/crypto/ec/ecp_nistz256.c
637
if ((BN_num_bits(scalar[i]) > 256) || BN_is_negative(scalar[i])) {
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
274
if (BN_is_negative(sig->r) || BN_is_negative(sig->s)
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
82
if ((scalar != NULL && num == 0 && BN_is_negative(scalar) == 0)
crypto/openssl/crypto/ec/ecp_s390x_nistp.c
83
|| (scalar == NULL && num == 1 && BN_is_negative(scalars[0]) == 0)) {
crypto/openssl/crypto/ec/ecp_sm2p256.c
476
if ((BN_num_bits(scalar[i]) > 256) || BN_is_negative(scalar[i])) {
crypto/openssl/crypto/encode_decode/encoder_lib.c
729
if (BN_is_negative(bn))
crypto/openssl/crypto/param_build.c
264
if (type == OSSL_PARAM_UNSIGNED_INTEGER && BN_is_negative(bn)) {
crypto/openssl/crypto/param_build.c
301
if (bn != NULL && BN_is_negative(bn))
crypto/openssl/crypto/param_build.c
316
if (bn != NULL && BN_is_negative(bn))
crypto/openssl/crypto/params.c
1125
if (p->data_type == OSSL_PARAM_UNSIGNED_INTEGER && BN_is_negative(val)) {
crypto/openssl/crypto/params_from_text.c
163
&& BN_is_negative(tmpbn)) {
crypto/openssl/crypto/params_from_text.c
59
&& BN_is_negative(*tmpbn)) {
crypto/openssl/crypto/params_from_text.c
74
if (p->data_type == OSSL_PARAM_INTEGER && BN_is_negative(*tmpbn)
crypto/openssl/crypto/rsa/rsa_ossl.c
1021
if (BN_is_negative(r0))
crypto/openssl/crypto/rsa/rsa_ossl.c
1049
if (BN_is_negative(r0))
crypto/openssl/crypto/rsa/rsa_ossl.c
1084
if (BN_is_negative(r1))
crypto/openssl/crypto/rsa/rsa_ossl.c
1129
if (BN_is_negative(vrfy))
crypto/openssl/fuzz/bndiv.c
107
printf("%d %d %d %d %d %d %d\n", BN_is_negative(b1),
crypto/openssl/fuzz/bndiv.c
108
BN_is_negative(b2),
crypto/openssl/fuzz/bndiv.c
109
BN_is_negative(b3), BN_is_negative(b4), BN_is_zero(b4),
crypto/openssl/fuzz/bndiv.c
110
BN_is_negative(b3) != BN_is_negative(b2)
crypto/openssl/fuzz/bndiv.c
111
&& (BN_is_negative(b4) || BN_is_zero(b4)),
crypto/openssl/fuzz/bndiv.c
86
else if (BN_is_negative(b1))
crypto/openssl/fuzz/bndiv.c
87
success = (BN_is_negative(b3) != BN_is_negative(b2) || BN_is_zero(b3))
crypto/openssl/fuzz/bndiv.c
88
&& (BN_is_negative(b4) || BN_is_zero(b4));
crypto/openssl/fuzz/bndiv.c
90
success = (BN_is_negative(b3) == BN_is_negative(b2) || BN_is_zero(b3))
crypto/openssl/fuzz/bndiv.c
91
&& (!BN_is_negative(b4) || BN_is_zero(b4));
crypto/openssl/include/openssl/bn.h
272
int BN_is_negative(const BIGNUM *b);
crypto/openssl/test/bntest.c
1202
if (BN_is_negative(a) && BN_is_negative(b))
crypto/openssl/test/bntest.c
1269
if (!BN_is_negative(a) && !BN_is_negative(b) && BN_cmp(a, b) >= 0) {
crypto/openssl/test/bntest.c
1308
if (!BN_is_negative(b) && b_word != (BN_ULONG)-1) {
crypto/openssl/test/bntest.c
1560
if (!BN_is_negative(b) && b_word != (BN_ULONG)-1) {
crypto/openssl/test/bntest.c
1594
if (!BN_is_negative(b)) {
crypto/openssl/test/bntest.c
1596
|| (BN_is_negative(nnmod)
crypto/openssl/test/bntest.c
1804
if (BN_is_negative(mod_sqrt)) {
crypto/openssl/test/bntest.c
2508
if (BN_is_negative(a))
crypto/openssl/test/params_api_test.c
556
if (!TEST_false(!!(raw_values[n].value[len - 1] & 0x80) ^ BN_is_negative(b)))
crypto/openssl/test/testutil/format_output.c
186
return BN_is_negative(bn) ? "-0" : "0";
crypto/openssl/test/testutil/format_output.c
227
if ((in[bytes] & 0xf0) != 0 && BN_is_negative(bn)) {
crypto/openssl/test/testutil/format_output.c
234
if (BN_is_negative(bn)) {
crypto/openssl/test/testutil/format_output.c
256
r = BN_is_negative(bn) ? "-0" : "0";
crypto/openssl/test/testutil/format_output.c
281
l1 = bn1 == NULL ? 0 : (BN_num_bytes(bn1) + (BN_is_negative(bn1) ? 1 : 0));
crypto/openssl/test/testutil/format_output.c
282
l2 = bn2 == NULL ? 0 : (BN_num_bytes(bn2) + (BN_is_negative(bn2) ? 1 : 0));
crypto/openssl/test/testutil/format_output.c
400
BN_is_negative(bn) ? "-" : "", p);
crypto/openssl/test/testutil/tests.c
383
DEFINE_BN_COMPARISONS(gt, >, !BN_is_negative(a) && !BN_is_zero(a))
crypto/openssl/test/testutil/tests.c
384
DEFINE_BN_COMPARISONS(ge, >=, !BN_is_negative(a) || BN_is_zero(a))
crypto/openssl/test/testutil/tests.c
385
DEFINE_BN_COMPARISONS(lt, <, BN_is_negative(a) && !BN_is_zero(a))