Home
last modified time | relevance | path

Searched refs:neg (Results 1 – 25 of 45) sorted by relevance

12

/openssl/crypto/bn/
H A Dbn_add.c21 if (a->neg == b->neg) { in BN_add()
22 r_neg = a->neg; in BN_add()
27 r_neg = a->neg; in BN_add()
30 r_neg = b->neg; in BN_add()
39 r->neg = r_neg; in BN_add()
52 if (a->neg != b->neg) { in BN_sub()
53 r_neg = a->neg; in BN_sub()
58 r_neg = a->neg; in BN_sub()
70 r->neg = r_neg; in BN_sub()
119 r->neg = 0; in BN_uadd()
[all …]
H A Dbn_mpi.c37 if (a->neg) in BN_bn2mpi()
45 int neg = 0; in BN_mpi2bn() local
68 a->neg = 0; in BN_mpi2bn()
74 neg = 1; in BN_mpi2bn()
80 a->neg = neg; in BN_mpi2bn()
81 if (neg) { in BN_mpi2bn()
H A Dbn_conv.c27 if (a->neg) in BN_bn2hex()
123 int neg = 0, h, m, i, j, k, c; in BN_hex2bn() local
130 neg = 1; in BN_hex2bn()
140 num = i + neg; in BN_hex2bn()
188 ret->neg = neg; in BN_hex2bn()
200 int neg = 0, i, j; in BN_dec2bn() local
206 neg = 1; in BN_dec2bn()
216 num = i + neg; in BN_dec2bn()
258 ret->neg = neg; in BN_dec2bn()
282 (*bn)->neg = 1; in BN_asc2bn()
H A Dbn_lib.c349 a->neg = b->neg; in BN_copy()
382 a->neg = b->neg; in BN_swap()
402 a->neg = 0; in BN_clear()
422 a->neg = 0; in BN_set_word()
513 ret->neg = neg; in bin2bn()
762 if (a->neg != b->neg) { in BN_cmp()
957 t = (a->neg ^ b->neg) & condition; in BN_consttime_swap()
958 a->neg ^= t; in BN_consttime_swap()
1026 a->neg = 0; in BN_zero_ex()
1088 dest->neg = b->neg; in BN_with_flags()
[all …]
H A Dbn_word.c93 a->neg = 0; /* don't allow negative zero */ in BN_div_word()
113 if (a->neg) { in BN_add_word()
114 a->neg = 0; in BN_add_word()
117 a->neg = !(a->neg); in BN_add_word()
152 if (a->neg) { in BN_sub_word()
153 a->neg = 0; in BN_sub_word()
155 a->neg = 1; in BN_sub_word()
161 a->neg = 1; in BN_sub_word()
H A Dbn_shift.c23 r->neg = a->neg; in BN_lshift1()
62 r->neg = a->neg; in BN_rshift1()
76 r->neg = 0; /* don't allow negative zero */ in BN_rshift1()
143 r->neg = a->neg; in bn_lshift_fixed_top()
211 r->neg = a->neg; in bn_rshift_fixed_top()
H A Dbn_kron.c86 if (B->neg) { in BN_kronecker()
87 B->neg = 0; in BN_kronecker()
88 if (A->neg) in BN_kronecker()
122 if ((A->neg ? ~BN_lsw(A) : BN_lsw(A)) & BN_lsw(B) & 2) in BN_kronecker()
132 tmp->neg = 0; in BN_kronecker()
H A Dbn_recp.c136 d->neg = 0; in BN_div_recp()
142 r->neg = 0; in BN_div_recp()
156 r->neg = BN_is_zero(r) ? 0 : m->neg; in BN_div_recp()
157 d->neg = m->neg ^ recp->N.neg; in BN_div_recp()
H A Dbn_div.c80 rem->neg = BN_is_zero(rem) ? 0 : m->neg;
81 dv->neg = m->neg ^ d->neg;
292 sdiv->neg = 0; in bn_div_fixed_top()
329 num_neg = num->neg; in bn_div_fixed_top()
330 res->neg = (num_neg ^ divisor->neg); in bn_div_fixed_top()
446 snum->neg = num_neg; in bn_div_fixed_top()
H A Dbn_gcd.c58 A->neg = 0; in bn_mod_inverse_no_branch()
60 if (B->neg || (BN_ucmp(B, A) >= 0)) { in bn_mod_inverse_no_branch()
170 if (!Y->neg && BN_ucmp(Y, n) < 0) { in bn_mod_inverse_no_branch()
247 A->neg = 0; in int_bn_mod_inverse()
248 if (B->neg || (BN_ucmp(B, A) >= 0)) { in int_bn_mod_inverse()
495 if (!Y->neg && BN_ucmp(Y, n) < 0) { in int_bn_mod_inverse()
592 r->neg = 0; in BN_gcd()
597 r->neg = 0; in BN_gcd()
661 r->neg ^= cond; in BN_gcd()
678 r->neg = 0; in BN_gcd()
H A Dbn_mont.c49 r->neg = a->neg ^ b->neg; in bn_mul_mont_fixed_top()
106 r->neg ^= n->neg; in bn_from_montgomery_word()
137 ret->neg = r->neg; in bn_from_montgomery_word()
277 mont->N.neg = 0; in BN_MONT_CTX_set()
287 tmod.neg = 0; in BN_MONT_CTX_set()
326 Ri->neg = 0; in BN_MONT_CTX_set()
H A Dbn_mul.c180 unsigned int neg, zero; in bn_mul_recursive() local
210 zero = neg = 0; in bn_mul_recursive()
222 neg = 1; in bn_mul_recursive()
232 neg = 1; in bn_mul_recursive()
283 if (neg) { /* if t[32] is negative */ in bn_mul_recursive()
326 int c1, c2, neg; in bn_mul_part_recursive() local
337 neg = 0; in bn_mul_part_recursive()
347 neg = 1; in bn_mul_part_recursive()
355 neg = 1; in bn_mul_part_recursive()
438 if (neg) { /* if t[32] is negative */ in bn_mul_part_recursive()
[all …]
H A Dbn_mod.c28 if (!r->neg) in BN_nnmod()
31 return (d->neg ? BN_sub : BN_add) (r, r, d); in BN_nnmod()
95 r->neg = 0; in bn_mod_add_fixed_top()
181 r->neg = 0; in bn_mod_sub_fixed_top()
200 if (r->neg) in BN_mod_sub_quick()
274 if (m->neg) { in BN_mod_lshift()
278 abs_m->neg = 0; in BN_mod_lshift()
H A Dbn_sqrt.c98 q->neg = 0; in BN_mod_sqrt()
143 q->neg = 0; in BN_mod_sqrt()
175 q->neg = 0; in BN_mod_sqrt()
189 if (!(p->neg ? BN_add : BN_sub) (y, y, p)) in BN_mod_sqrt()
H A Dbn_exp.c144 if (a->top == 1 && !a->neg in BN_mod_exp()
207 if (m->neg) { in BN_mod_exp_recp()
211 aa->neg = 0; in BN_mod_exp_recp()
371 if (a->neg || BN_ucmp(a, m) >= 0) { in BN_mod_exp_mont()
673 if (a->neg || BN_ucmp(a, m) >= 0) { in BN_mod_exp_mont_consttime()
695 rr->neg = 0; in BN_mod_exp_mont_consttime()
704 rr->neg = 0; in BN_mod_exp_mont_consttime()
762 tmp.neg = am.neg = 0; in BN_mod_exp_mont_consttime()
1504 rr1->neg = 0; in BN_mod_exp_mont_consttime_x2()
1509 rr2->neg = 0; in BN_mod_exp_mont_consttime_x2()
H A Dbn_exp2.c71 if (a1->neg || BN_ucmp(a1, m) >= 0) { in BN_mod_exp2_mont()
100 if (a2->neg || BN_ucmp(a2, m) >= 0) { in BN_mod_exp2_mont()
/openssl/crypto/asn1/
H A Dx_int64.c51 int neg = 0; in uint64_i2c() local
65 neg = 1; in uint64_i2c()
68 return ossl_i2c_uint64_int(cont, utmp, neg); in uint64_i2c()
76 int neg = 0; in uint64_c2i() local
94 if ((it->size & INTxx_FLAG_SIGNED) == 0 && neg) { in uint64_c2i()
99 && !neg && utmp > INT64_MAX) { in uint64_c2i()
103 if (neg) in uint64_c2i()
144 int neg = 0; in uint32_i2c() local
158 neg = 1; in uint32_i2c()
177 int neg = 0; in uint32_c2i() local
[all …]
H A Da_int.c25 int neg, ret; in ASN1_INTEGER_cmp() local
29 if (neg) in ASN1_INTEGER_cmp()
37 if (neg) in ASN1_INTEGER_cmp()
110 } else if (neg) { in i2c_ibuf()
157 int neg, pad; in c2i_ibuf() local
163 neg = p[0] & 0x80; in c2i_ibuf()
165 *pneg = neg; in c2i_ibuf()
169 if (neg) in c2i_ibuf()
261 if (neg) { in asn1_get_int64()
291 int neg; in ossl_c2i_ASN1_INTEGER() local
[all …]
H A Dt_pkey.c49 const char *neg; in ASN1_bn_print() local
55 neg = BN_is_negative(num) ? "-" : ""; in ASN1_bn_print()
65 if (BIO_printf(bp, "%s %s%lu (%s0x%lx)\n", number, neg, in ASN1_bn_print()
66 (unsigned long)bn_get_words(num)[0], neg, in ASN1_bn_print()
78 (neg[0] == '-') ? " (Negative)" : "") <= 0) in ASN1_bn_print()
H A Dasn1_local.h89 int ossl_c2i_uint64_int(uint64_t *ret, int *neg, const unsigned char **pp,
91 int ossl_i2c_uint64_int(unsigned char *p, uint64_t r, int neg);
/openssl/crypto/x509/
H A Dt_x509.c516 const char *neg; in ossl_serial_number_print() local
528 neg = "-"; in ossl_serial_number_print()
531 neg = ""; in ossl_serial_number_print()
533 if (BIO_printf(out, " %s%lu (%s0x%lx)", neg, ul, neg, ul) <= 0) in ossl_serial_number_print()
536 neg = (bs->type == V_ASN1_NEG_INTEGER) ? " (Negative)" : ""; in ossl_serial_number_print()
537 if (BIO_printf(out, "\n%*s%s", indent, "", neg) <= 0) in ossl_serial_number_print()
/openssl/crypto/bn/asm/
H A Dvia-mont.pl143 &neg ("ebp");
201 &neg ("ebp");
/openssl/test/
H A Dbntests.pl83 my $neg = $a->is_neg() ? !$b->is_neg() : $b->is_neg();
87 $a->bneg() if $neg;
/openssl/providers/implementations/encode_decode/
H A Dencode_key2text.c59 const char *neg = ""; in DEFINE_SPECIAL_STACK_OF_CONST() local
76 neg = "-"; in DEFINE_SPECIAL_STACK_OF_CONST()
79 label, post_label_spc, neg, words[0], neg, words[0]); in DEFINE_SPECIAL_STACK_OF_CONST()
89 neg = " (Negative)"; in DEFINE_SPECIAL_STACK_OF_CONST()
91 if (BIO_printf(out, "%s%s\n", label, neg) <= 0) in DEFINE_SPECIAL_STACK_OF_CONST()
/openssl/crypto/ec/curve448/
H A Dfield.h150 static ossl_inline void gf_cond_neg(gf x, mask_t neg) in gf_cond_neg() argument
155 gf_cond_sel(x, x, y, neg); in gf_cond_neg()

Completed in 44 milliseconds

12