Lines Matching refs:neg
349 a->neg = b->neg; in BN_copy()
377 tmp_neg = a->neg; in BN_swap()
382 a->neg = b->neg; in BN_swap()
387 b->neg = tmp_neg; in BN_swap()
402 a->neg = 0; in BN_clear()
422 a->neg = 0; in BN_set_word()
439 int neg = 0, xor = 0, carry = 0; in bin2bn() local
481 neg = !!(*s2 & 0x80); in bin2bn()
482 xor = neg ? 0xff : 0x00; in bin2bn()
483 carry = neg; in bin2bn()
513 ret->neg = neg; in bin2bn()
564 xor = a->neg ? 0xff : 0x00; in bn2binpad()
565 carry = a->neg; in bn2binpad()
574 ? !a->neg /* MSbit set on nonnegative bignum */ in bn2binpad()
575 : a->neg; /* MSbit unset on negative bignum */ in bn2binpad()
762 if (a->neg != b->neg) { in BN_cmp()
763 if (a->neg) in BN_cmp()
768 if (a->neg == 0) { in BN_cmp()
881 a->neg = 1; in BN_set_negative()
883 a->neg = 0; in BN_set_negative()
957 t = (a->neg ^ b->neg) & condition; in BN_consttime_swap()
958 a->neg ^= t; in BN_consttime_swap()
959 b->neg ^= t; in BN_consttime_swap()
1026 a->neg = 0; in BN_zero_ex()
1043 return BN_abs_is_word(a, 1) && !a->neg; in BN_is_one()
1048 return BN_abs_is_word(a, w) && (!w || !a->neg); in BN_is_word()
1056 if (a->neg || a->top == 0) in ossl_bn_is_word_fixed_top()
1074 return (a->neg != 0); in BN_is_negative()
1088 dest->neg = b->neg; in BN_with_flags()
1169 a->neg = constant_time_select_int(mask, 0, a->neg); in bn_correct_top_consttime()
1187 a->neg = 0; in bn_correct_top()