Lines Matching refs:raw_values
54 } raw_values[] = { variable
199 const size_t len = raw_values[n].len >= sizeof(int) ? in test_param_int()
200 sizeof(int) : raw_values[n].len; in test_param_int()
207 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_int()
213 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_int()
219 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int()
222 return test_param_type_extra(¶m, raw_values[n].value, sizeof(int)); in test_param_int()
229 const size_t len = raw_values[n].len >= sizeof(long int) in test_param_long()
230 ? sizeof(long int) : raw_values[n].len; in test_param_long()
237 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_long()
243 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_long()
249 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_long()
252 return test_param_type_extra(¶m, raw_values[n].value, sizeof(long int)); in test_param_long()
259 …const size_t len = raw_values[n].len >= sizeof(unsigned int) ? sizeof(unsigned int) : raw_values[n… in test_param_uint()
266 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_uint()
272 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_uint()
278 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_uint()
281 return test_param_type_extra(¶m, raw_values[n].value, sizeof(unsigned int)); in test_param_uint()
288 const size_t len = raw_values[n].len >= sizeof(unsigned long int) in test_param_ulong()
289 ? sizeof(unsigned long int) : raw_values[n].len; in test_param_ulong()
296 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_ulong()
302 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_ulong()
308 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_ulong()
311 return test_param_type_extra(¶m, raw_values[n].value, sizeof(unsigned long int)); in test_param_ulong()
318 const size_t len = raw_values[n].len >= sizeof(int32_t) in test_param_int32()
319 ? sizeof(int32_t) : raw_values[n].len; in test_param_int32()
326 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_int32()
332 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_int32()
338 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int32()
341 return test_param_type_extra(¶m, raw_values[n].value, sizeof(int32_t)); in test_param_int32()
348 const size_t len = raw_values[n].len >= sizeof(uint32_t) in test_param_uint32()
349 ? sizeof(uint32_t) : raw_values[n].len; in test_param_uint32()
356 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_uint32()
362 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_uint32()
368 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_uint32()
371 return test_param_type_extra(¶m, raw_values[n].value, sizeof(uint32_t)); in test_param_uint32()
378 const size_t len = raw_values[n].len >= sizeof(int64_t) in test_param_int64()
379 ? sizeof(int64_t) : raw_values[n].len; in test_param_int64()
386 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_int64()
392 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_int64()
398 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int64()
401 return test_param_type_extra(¶m, raw_values[n].value, sizeof(int64_t)); in test_param_int64()
408 const size_t len = raw_values[n].len >= sizeof(uint64_t) in test_param_uint64()
409 ? sizeof(uint64_t) : raw_values[n].len; in test_param_uint64()
416 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_uint64()
422 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_uint64()
428 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_uint64()
431 return test_param_type_extra(¶m, raw_values[n].value, sizeof(uint64_t)); in test_param_uint64()
438 const size_t len = raw_values[n].len >= sizeof(size_t) in test_param_size_t()
439 ? sizeof(size_t) : raw_values[n].len; in test_param_size_t()
446 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_size_t()
452 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_size_t()
458 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_size_t()
461 return test_param_type_extra(¶m, raw_values[n].value, sizeof(size_t)); in test_param_size_t()
468 const size_t len = raw_values[n].len >= sizeof(time_t) in test_param_time_t()
469 ? sizeof(time_t) : raw_values[n].len; in test_param_time_t()
476 le_copy(buf, sizeof(in), raw_values[n].value, sizeof(in)); in test_param_time_t()
482 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_time_t()
488 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_time_t()
491 return test_param_type_extra(¶m, raw_values[n].value, sizeof(size_t)); in test_param_time_t()
497 const size_t len = raw_values[n].len; in test_param_bignum()
509 if (!TEST_ptr(b = BN_lebin2bn(raw_values[n].value, (int)len, NULL))) in test_param_bignum()
515 if (!TEST_mem_eq(raw_values[n].value, len, buf, len)) in test_param_bignum()
532 const size_t len = raw_values[n].len; in test_param_signed_bignum()
543 if (!TEST_ptr(b = BN_signed_lebin2bn(raw_values[n].value, (int)len, NULL))) in test_param_signed_bignum()
547 if (!TEST_false(!!(raw_values[n].value[len - 1] & 0x80) ^ BN_is_negative(b))) in test_param_signed_bignum()
552 if (!TEST_mem_eq(raw_values[n].value, len, buf, len)) in test_param_signed_bignum()
821 ADD_ALL_TESTS(test_param_int, OSSL_NELEM(raw_values)); in setup_tests()
822 ADD_ALL_TESTS(test_param_long, OSSL_NELEM(raw_values)); in setup_tests()
823 ADD_ALL_TESTS(test_param_uint, OSSL_NELEM(raw_values)); in setup_tests()
824 ADD_ALL_TESTS(test_param_ulong, OSSL_NELEM(raw_values)); in setup_tests()
825 ADD_ALL_TESTS(test_param_int32, OSSL_NELEM(raw_values)); in setup_tests()
826 ADD_ALL_TESTS(test_param_uint32, OSSL_NELEM(raw_values)); in setup_tests()
827 ADD_ALL_TESTS(test_param_size_t, OSSL_NELEM(raw_values)); in setup_tests()
828 ADD_ALL_TESTS(test_param_time_t, OSSL_NELEM(raw_values)); in setup_tests()
829 ADD_ALL_TESTS(test_param_int64, OSSL_NELEM(raw_values)); in setup_tests()
830 ADD_ALL_TESTS(test_param_uint64, OSSL_NELEM(raw_values)); in setup_tests()
831 ADD_ALL_TESTS(test_param_bignum, OSSL_NELEM(raw_values)); in setup_tests()
832 ADD_ALL_TESTS(test_param_signed_bignum, OSSL_NELEM(raw_values)); in setup_tests()