Lines Matching refs:in

21 static void swap_copy(unsigned char *out, const void *in, size_t len)  in swap_copy()  argument
26 out[j] = ((unsigned char *)in)[len - j - 1]; in swap_copy()
38 const void *in, size_t inlen) in le_copy() argument
43 memcpy(out, in, outlen); in le_copy()
46 in = (const char *)in + inlen - outlen; in le_copy()
47 swap_copy(out, in, outlen); in le_copy()
197 int in, out; in test_param_int() local
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()
210 if (!TEST_true(OSSL_PARAM_set_int(&param, in))) in test_param_int()
215 in = 0; in test_param_int()
216 if (!TEST_true(OSSL_PARAM_get_int(&param, &in))) in test_param_int()
218 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_int()
219 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int()
227 long int in, out; in test_param_long() local
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()
240 if (!TEST_true(OSSL_PARAM_set_long(&param, in))) in test_param_long()
245 in = 0; in test_param_long()
246 if (!TEST_true(OSSL_PARAM_get_long(&param, &in))) in test_param_long()
248 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_long()
249 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_long()
257 unsigned int in, out; in test_param_uint() local
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()
269 if (!TEST_true(OSSL_PARAM_set_uint(&param, in))) in test_param_uint()
274 in = 0; in test_param_uint()
275 if (!TEST_true(OSSL_PARAM_get_uint(&param, &in))) in test_param_uint()
277 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_uint()
278 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_uint()
286 unsigned long int in, out; in test_param_ulong() local
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()
299 if (!TEST_true(OSSL_PARAM_set_ulong(&param, in))) in test_param_ulong()
304 in = 0; in test_param_ulong()
305 if (!TEST_true(OSSL_PARAM_get_ulong(&param, &in))) in test_param_ulong()
307 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_ulong()
308 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_ulong()
316 int32_t in, out; in test_param_int32() local
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()
329 if (!TEST_true(OSSL_PARAM_set_int32(&param, in))) in test_param_int32()
334 in = 0; in test_param_int32()
335 if (!TEST_true(OSSL_PARAM_get_int32(&param, &in))) in test_param_int32()
337 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_int32()
338 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int32()
346 uint32_t in, out; in test_param_uint32() local
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()
359 if (!TEST_true(OSSL_PARAM_set_uint32(&param, in))) in test_param_uint32()
364 in = 0; in test_param_uint32()
365 if (!TEST_true(OSSL_PARAM_get_uint32(&param, &in))) in test_param_uint32()
367 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_uint32()
368 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_uint32()
376 int64_t in, out; in test_param_int64() local
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()
389 if (!TEST_true(OSSL_PARAM_set_int64(&param, in))) in test_param_int64()
394 in = 0; in test_param_int64()
395 if (!TEST_true(OSSL_PARAM_get_int64(&param, &in))) in test_param_int64()
397 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_int64()
398 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int64()
406 uint64_t in, out; in test_param_uint64() local
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()
419 if (!TEST_true(OSSL_PARAM_set_uint64(&param, in))) in test_param_uint64()
424 in = 0; in test_param_uint64()
425 if (!TEST_true(OSSL_PARAM_get_uint64(&param, &in))) in test_param_uint64()
427 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_uint64()
428 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_uint64()
436 size_t in, out; in test_param_size_t() local
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()
449 if (!TEST_true(OSSL_PARAM_set_size_t(&param, in))) in test_param_size_t()
454 in = 0; in test_param_size_t()
455 if (!TEST_true(OSSL_PARAM_get_size_t(&param, &in))) in test_param_size_t()
457 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_size_t()
458 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_size_t()
466 time_t in, out; in test_param_time_t() local
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()
479 if (!TEST_true(OSSL_PARAM_set_time_t(&param, in))) in test_param_time_t()
484 in = 0; in test_param_time_t()
485 if (!TEST_true(OSSL_PARAM_get_time_t(&param, &in))) in test_param_time_t()
487 le_copy(cmp, sizeof(in), &in, sizeof(in)); in test_param_time_t()
488 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_time_t()