Lines Matching refs:buf

205 static int hexstr2buf_sep(unsigned char *buf, size_t buf_n, size_t *buflen,  in hexstr2buf_sep()  argument
214 for (p = (const unsigned char *)str, q = buf, cnt = 0; *p; ) { in hexstr2buf_sep()
248 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, size_t *buflen, in OPENSSL_hexstr2buf_ex() argument
251 return hexstr2buf_sep(buf, buf_n, buflen, str, sep); in OPENSSL_hexstr2buf_ex()
257 unsigned char *buf; in ossl_hexstr2buf_sep() local
266 if ((buf = OPENSSL_malloc(buf_n)) == NULL) in ossl_hexstr2buf_sep()
272 if (hexstr2buf_sep(buf, buf_n, &tmp_buflen, str, sep)) { in ossl_hexstr2buf_sep()
275 return buf; in ossl_hexstr2buf_sep()
277 OPENSSL_free(buf); in ossl_hexstr2buf_sep()
287 const unsigned char *buf, size_t buflen, in buf2hexstr_sep() argument
308 q += ossl_to_hex(q, buf[i]); in buf2hexstr_sep()
323 const unsigned char *buf, size_t buflen, in OPENSSL_buf2hexstr_ex() argument
326 return buf2hexstr_sep(str, str_n, strlength, buf, buflen, sep); in OPENSSL_buf2hexstr_ex()
329 char *ossl_buf2hexstr_sep(const unsigned char *buf, long buflen, char sep) in ossl_buf2hexstr_sep() argument
341 if (buf2hexstr_sep(tmp, tmp_n, NULL, buf, buflen, sep)) in ossl_buf2hexstr_sep()
353 char *OPENSSL_buf2hexstr(const unsigned char *buf, long buflen) in OPENSSL_buf2hexstr() argument
355 return ossl_buf2hexstr_sep(buf, buflen, DEFAULT_SEPARATOR); in OPENSSL_buf2hexstr()
358 int openssl_strerror_r(int errnum, char *buf, size_t buflen) in openssl_strerror_r() argument
361 return !strerror_s(buf, buflen, errnum); in openssl_strerror_r()
370 err = strerror_r(errnum, buf, buflen); in openssl_strerror_r()
380 if (err != buf) in openssl_strerror_r()
381 OPENSSL_strlcpy(buf, err, buflen); in openssl_strerror_r()
390 return !strerror_r(errnum, buf, buflen); in openssl_strerror_r()
401 OPENSSL_strlcpy(buf, err, buflen); in openssl_strerror_r()
429 size_t ossl_to_hex(char *buf, uint8_t n) in ossl_to_hex() argument
433 return to_hex(buf, n, hexdig); in ossl_to_hex()