Home
last modified time | relevance | path

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

12

/openbsd/src/regress/lib/libcrypto/bn/
Dbn_convert.c205 if (BN_is_negative(bn) != bat->neg) { in test_bn_asc2bn()
207 "in negative %d, want %d", i, BN_is_negative(bn), in test_bn_asc2bn()
542 if (BN_is_negative(bn) != bct->neg) { in test_bn_convert()
544 "in negative %d, want %d", i, BN_is_negative(bn), in test_bn_convert()
556 if (BN_is_negative(bn) != bct->neg) { in test_bn_convert()
558 "in negative %d, want %d", i, BN_is_negative(bn), in test_bn_convert()
570 if (BN_is_negative(bn) != bct->neg) { in test_bn_convert()
572 "in negative %d, want %d", i, BN_is_negative(bn), in test_bn_convert()
630 if (BN_is_negative(bn)) { in test_bn_dec2bn()
645 if (BN_is_negative(bn)) { in test_bn_dec2bn()
[all …]
Dbn_bits.c114 if (BN_is_negative(bn)) { in test_bn_clear_bit()
199 if (BN_is_negative(bn)) { in test_bn_mask_bits()
Dbn_word.c47 if (BN_is_negative(bn) != bwt->out_is_negative) { in check_bn_word_test()
49 op_name, BN_is_negative(bn), bwt->out_is_negative); in check_bn_word_test()
62 if (BN_is_zero(bn) && BN_is_negative(bn) != 0) { in check_bn_word_test()
Dbn_test.c328 BN_set_negative(a, !BN_is_negative(a)); in test_add()
329 BN_set_negative(b, !BN_is_negative(b)); in test_add()
977 if ((BN_is_negative(a) ^ BN_is_negative(b)) && in test_mod_mul()
1526 if (BN_is_negative(a) && BN_is_negative(b)) in test_kron()
Dbn_shift.c344 if (BN_is_negative(bn1)) { in test_bn_rshift_to_zero()
Dbn_gcd.c3566 if (BN_is_negative(gcd)) { in bn_binomial_gcd_test()
/openbsd/src/lib/libcrypto/bn/
Dbn_kron.c122 if (BN_is_negative(b)) { in BN_kronecker()
125 if (BN_is_negative(a)) in BN_kronecker()
170 if ((BN_is_negative(a) ? ~BN_lsw(a) : BN_lsw(a)) & BN_lsw(b) & 2) in BN_kronecker()
Dbn_isqrt.c56 if (BN_is_negative(n)) { in bn_isqrt()
206 if (BN_is_negative(n)) in bn_is_perfect_square()
Dbn_print.c51 if (BN_is_negative(bn)) in bn_print_word()
87 if (BN_is_negative(bn)) { in bn_print_bignum()
Dbn_mod.c145 if (BN_is_negative(r)) in BN_nnmod()
311 if (BN_is_negative(m)) { in BN_mod_lshift()
Dbn_convert.c337 if (BN_is_negative(bn)) { in BN_bn2dec()
497 if (BN_is_negative(bn) && include_sign) { in bn_bn2hex_internal()
Dbn_lib.c668 BN_is_negative(const BIGNUM *a) in BN_is_negative() function
672 LCRYPTO_ALIAS(BN_is_negative);
Dbn.h351 int BN_is_negative(const BIGNUM *b);
/openbsd/src/lib/libcrypto/dsa/
Ddsa_ossl.c326 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in dsa_do_verify()
331 if (BN_is_zero(sig->s) || BN_is_negative(sig->s) || in dsa_do_verify()
Ddsa_lib.c436 if (BN_is_negative(dsa->q)) { in dsa_check_key()
/openbsd/src/usr.bin/dc/
Dbcode.c434 BN_set_negative(n->number, !BN_is_negative(n->number)); in negate()
586 if (BN_is_negative(n->number)) in set_scale()
908 if (BN_is_negative(inumber->number)) in load_array()
946 if (BN_is_negative(inumber->number)) { in store_array()
1187 neg = BN_is_negative(p->number); in bexp()
1270 } else if (BN_is_negative(n->number)) in bsqrt()
Dinout.c337 if (BN_is_negative(b->number)) in printnumber()
/openbsd/src/lib/libcrypto/rsa/
Drsa_eay.c738 if (BN_is_negative(r0)) in rsa_mod_exp()
760 if (BN_is_negative(r0)) in rsa_mod_exp()
782 if (BN_is_negative(vrfy)) in rsa_mod_exp()
/openbsd/src/lib/libcrypto/asn1/
Da_enum.c187 if (BN_is_negative(bn)) in BN_to_ASN1_ENUMERATED()
Da_int.c351 if (BN_is_negative(bn)) in BN_to_ASN1_INTEGER()
/openbsd/src/lib/libcrypto/ec/
Dec_mult.c118 sign = BN_is_negative(bn) ? -1 : 1; in ec_compute_wnaf()
Dec_convert.c175 return !BN_is_negative(bn) && BN_cmp(group->p, bn) > 0; in ec_field_element_is_valid()
Dec_lib.c262 if (BN_is_negative(in_cofactor)) { in ec_set_cofactor()
325 if (BN_is_zero(group->p) || BN_is_negative(group->p)) { in EC_GROUP_set_generator()
/openbsd/src/usr.bin/ssh/
Ddh.c239 if (BN_is_negative(dh_pub)) { in dh_pub_is_valid()
/openbsd/src/usr.sbin/rpki-client/
Dx509.c1046 if (BN_is_negative(bn)) { in x509_seqnum_to_bn()

12