Lines Matching refs:buf
66 unsigned char *buf = NULL; in test_hexstr_sep_to_from() local
70 if (!TEST_ptr(buf = ossl_hexstr2buf_sep(test->in, &len, test->sep)) in test_hexstr_sep_to_from()
71 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_sep_to_from()
72 || !TEST_ptr(out = ossl_buf2hexstr_sep(buf, len, test->sep)) in test_hexstr_sep_to_from()
78 OPENSSL_free(buf); in test_hexstr_sep_to_from()
87 unsigned char *buf = NULL; in test_hexstr_to_from() local
92 if (!TEST_ptr(buf = OPENSSL_hexstr2buf(test->in, &len)) in test_hexstr_to_from()
93 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_to_from()
94 || !TEST_ptr(out = OPENSSL_buf2hexstr(buf, len))) in test_hexstr_to_from()
103 if (!TEST_ptr_null(buf = OPENSSL_hexstr2buf(test->in, &len))) in test_hexstr_to_from()
108 OPENSSL_free(buf); in test_hexstr_to_from()
117 unsigned char buf[64]; in test_hexstr_ex_to_from() local
120 return TEST_true(OPENSSL_hexstr2buf_ex(buf, sizeof(buf), &len, test->in, ':')) in test_hexstr_ex_to_from()
121 && TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_ex_to_from()
122 && TEST_false(OPENSSL_buf2hexstr_ex(out, 3 * len - 1, NULL, buf, len, in test_hexstr_ex_to_from()
124 && TEST_true(OPENSSL_buf2hexstr_ex(out, sizeof(out), NULL, buf, len, in test_hexstr_ex_to_from()
127 && TEST_true(OPENSSL_buf2hexstr_ex(out, sizeof(out), NULL, buf, 0, in test_hexstr_ex_to_from()