Lines Matching refs:buf
122 unsigned char buf[MAX_LEN]; in test_param_type_extra() local
148 le_copy(buf, sizeof(i32), &i32, sizeof(i32)); in test_param_type_extra()
150 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
153 le_copy(buf, sizeof(i64), &i64, sizeof(i64)); in test_param_type_extra()
155 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
158 le_copy(buf, sizeof(s), &s, sizeof(s)); in test_param_type_extra()
160 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
198 unsigned char buf[MAX_LEN], cmp[sizeof(int)]; in test_param_int() local
206 memset(buf, 0, sizeof(buf)); in test_param_int()
207 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_int()
208 memcpy(&in, buf, sizeof(in)); in test_param_int()
228 unsigned char buf[MAX_LEN], cmp[sizeof(long int)]; in test_param_long() local
236 memset(buf, 0, sizeof(buf)); in test_param_long()
237 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_long()
238 memcpy(&in, buf, sizeof(in)); in test_param_long()
258 unsigned char buf[MAX_LEN], cmp[sizeof(unsigned int)]; in test_param_uint() local
265 memset(buf, 0, sizeof(buf)); in test_param_uint()
266 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_uint()
267 memcpy(&in, buf, sizeof(in)); in test_param_uint()
287 unsigned char buf[MAX_LEN], cmp[sizeof(unsigned long int)]; in test_param_ulong() local
295 memset(buf, 0, sizeof(buf)); in test_param_ulong()
296 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_ulong()
297 memcpy(&in, buf, sizeof(in)); in test_param_ulong()
317 unsigned char buf[MAX_LEN], cmp[sizeof(int32_t)]; in test_param_int32() local
325 memset(buf, 0, sizeof(buf)); in test_param_int32()
326 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_int32()
327 memcpy(&in, buf, sizeof(in)); in test_param_int32()
347 unsigned char buf[MAX_LEN], cmp[sizeof(uint32_t)]; in test_param_uint32() local
355 memset(buf, 0, sizeof(buf)); in test_param_uint32()
356 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_uint32()
357 memcpy(&in, buf, sizeof(in)); in test_param_uint32()
377 unsigned char buf[MAX_LEN], cmp[sizeof(int64_t)]; in test_param_int64() local
385 memset(buf, 0, sizeof(buf)); in test_param_int64()
386 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_int64()
387 memcpy(&in, buf, sizeof(in)); in test_param_int64()
407 unsigned char buf[MAX_LEN], cmp[sizeof(uint64_t)]; in test_param_uint64() local
415 memset(buf, 0, sizeof(buf)); in test_param_uint64()
416 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_uint64()
417 memcpy(&in, buf, sizeof(in)); in test_param_uint64()
437 unsigned char buf[MAX_LEN], cmp[sizeof(size_t)]; in test_param_size_t() local
445 memset(buf, 0, sizeof(buf)); in test_param_size_t()
446 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_size_t()
447 memcpy(&in, buf, sizeof(in)); in test_param_size_t()
467 unsigned char buf[MAX_LEN], cmp[sizeof(time_t)]; in test_param_time_t() local
475 memset(buf, 0, sizeof(buf)); in test_param_time_t()
476 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_time_t()
477 memcpy(&in, buf, sizeof(in)); in test_param_time_t()
496 unsigned char buf[MAX_LEN], bnbuf[MAX_LEN]; in test_param_bignum() local
514 le_copy(buf, len, bnbuf, sizeof(bnbuf)); in test_param_bignum()
515 if (!TEST_mem_eq(raw_values[n].value, len, buf, len)) in test_param_bignum()
531 unsigned char buf[MAX_LEN], bnbuf[MAX_LEN]; in test_param_signed_bignum() local
551 le_copy(buf, len, bnbuf, sizeof(bnbuf)); in test_param_signed_bignum()
552 if (!TEST_mem_eq(raw_values[n].value, len, buf, len)) in test_param_signed_bignum()
598 char buf[100], buf2[100], *bufp, *bufp2; in test_param_construct() local
625 params[n++] = OSSL_PARAM_construct_utf8_string("utf8str", buf, sizeof(buf)); in test_param_construct()
626 params[n++] = OSSL_PARAM_construct_octet_string("octstr", buf, sizeof(buf)); in test_param_construct()
698 bufp = buf; in test_param_construct()