Lines Matching refs:neg
25 int neg, ret; in ASN1_INTEGER_cmp() local
27 neg = x->type & V_ASN1_NEG; in ASN1_INTEGER_cmp()
28 if (neg != (y->type & V_ASN1_NEG)) { in ASN1_INTEGER_cmp()
29 if (neg) in ASN1_INTEGER_cmp()
37 if (neg) in ASN1_INTEGER_cmp()
97 static size_t i2c_ibuf(const unsigned char *b, size_t blen, int neg, in i2c_ibuf() argument
107 if (!neg && (i > 127)) { in i2c_ibuf()
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()
192 if (pad && (neg == (p[1] & 0x80))) { in c2i_ibuf()
202 twos_complement(b, p, plen, neg ? 0xffU : 0); in c2i_ibuf()
256 int neg) in asn1_get_int64() argument
261 if (neg) { in asn1_get_int64()
291 int neg; in ossl_c2i_ASN1_INTEGER() local
311 c2i_ibuf(ret->data, &neg, *pp, len); in ossl_c2i_ASN1_INTEGER()
313 if (neg != 0) in ossl_c2i_ASN1_INTEGER()
616 int ossl_c2i_uint64_int(uint64_t *ret, int *neg, in ossl_c2i_uint64_int() argument
629 (void)c2i_ibuf(buf, neg, *pp, len); in ossl_c2i_uint64_int()
633 int ossl_i2c_uint64_int(unsigned char *p, uint64_t r, int neg) in ossl_i2c_uint64_int() argument
639 return i2c_ibuf(buf + off, sizeof(buf) - off, neg, &p); in ossl_i2c_uint64_int()