Lines Matching refs:buf
75 unsigned char buf[MAX_LEN]; in test_param_type_extra() local
101 le_copy(buf, &i32, sizeof(i32)); in test_param_type_extra()
103 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
106 le_copy(buf, &i64, sizeof(i64)); in test_param_type_extra()
108 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
111 le_copy(buf, &s, sizeof(s)); in test_param_type_extra()
113 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
151 unsigned char buf[MAX_LEN], cmp[sizeof(int)]; in test_param_int() local
156 memset(buf, 0, sizeof(buf)); in test_param_int()
157 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_int()
158 memcpy(&in, buf, sizeof(in)); in test_param_int()
178 unsigned char buf[MAX_LEN], cmp[sizeof(long int)]; in test_param_long() local
183 memset(buf, 0, sizeof(buf)); in test_param_long()
184 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_long()
185 memcpy(&in, buf, sizeof(in)); in test_param_long()
205 unsigned char buf[MAX_LEN], cmp[sizeof(unsigned int)]; in test_param_uint() local
209 memset(buf, 0, sizeof(buf)); in test_param_uint()
210 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_uint()
211 memcpy(&in, buf, sizeof(in)); in test_param_uint()
231 unsigned char buf[MAX_LEN], cmp[sizeof(unsigned long int)]; in test_param_ulong() local
236 memset(buf, 0, sizeof(buf)); in test_param_ulong()
237 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_ulong()
238 memcpy(&in, buf, sizeof(in)); in test_param_ulong()
258 unsigned char buf[MAX_LEN], cmp[sizeof(int32_t)]; in test_param_int32() local
263 memset(buf, 0, sizeof(buf)); in test_param_int32()
264 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_int32()
265 memcpy(&in, buf, sizeof(in)); in test_param_int32()
285 unsigned char buf[MAX_LEN], cmp[sizeof(uint32_t)]; in test_param_uint32() local
290 memset(buf, 0, sizeof(buf)); in test_param_uint32()
291 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_uint32()
292 memcpy(&in, buf, sizeof(in)); in test_param_uint32()
312 unsigned char buf[MAX_LEN], cmp[sizeof(int64_t)]; in test_param_int64() local
317 memset(buf, 0, sizeof(buf)); in test_param_int64()
318 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_int64()
319 memcpy(&in, buf, sizeof(in)); in test_param_int64()
339 unsigned char buf[MAX_LEN], cmp[sizeof(uint64_t)]; in test_param_uint64() local
344 memset(buf, 0, sizeof(buf)); in test_param_uint64()
345 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_uint64()
346 memcpy(&in, buf, sizeof(in)); in test_param_uint64()
366 unsigned char buf[MAX_LEN], cmp[sizeof(size_t)]; in test_param_size_t() local
371 memset(buf, 0, sizeof(buf)); in test_param_size_t()
372 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_size_t()
373 memcpy(&in, buf, sizeof(in)); in test_param_size_t()
393 unsigned char buf[MAX_LEN], cmp[sizeof(time_t)]; in test_param_time_t() local
398 memset(buf, 0, sizeof(buf)); in test_param_time_t()
399 le_copy(buf, raw_values[n].value, sizeof(in)); in test_param_time_t()
400 memcpy(&in, buf, sizeof(in)); in test_param_time_t()
419 unsigned char buf[MAX_LEN], bnbuf[MAX_LEN]; in test_param_bignum() local
429 le_copy(buf, raw_values[n].value, len); in test_param_bignum()
434 || !TEST_mem_eq(bnbuf, param.return_size, buf, param.return_size)) in test_param_bignum()
475 char buf[100], buf2[100], *bufp, *bufp2; in test_param_construct() local
502 params[n++] = OSSL_PARAM_construct_utf8_string("utf8str", buf, sizeof(buf)); in test_param_construct()
503 params[n++] = OSSL_PARAM_construct_octet_string("octstr", buf, sizeof(buf)); in test_param_construct()
575 bufp = buf; in test_param_construct()