Lines Matching refs:p
22 OSSL_PARAM *params = NULL, *params_blt = NULL, *p; in template_public_single_zero_test() local
35 if (!TEST_ptr(p = OSSL_PARAM_locate(params, "zeronumber")) in template_public_single_zero_test()
36 || !TEST_str_eq(p->key, "zeronumber") in template_public_single_zero_test()
37 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_public_single_zero_test()
38 || !TEST_true(OSSL_PARAM_get_BN(p, &zbn_res)) in template_public_single_zero_test()
55 OSSL_PARAM *params = NULL, *params_blt = NULL, *p; in template_private_single_zero_test() local
67 if (!TEST_ptr(p = OSSL_PARAM_locate(params, "zeronumber")) in template_private_single_zero_test()
68 || !TEST_true(CRYPTO_secure_allocated(p->data)) in template_private_single_zero_test()
69 || !TEST_str_eq(p->key, "zeronumber") in template_private_single_zero_test()
70 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_private_single_zero_test()
71 || !TEST_true(OSSL_PARAM_get_BN(p, &zbn_res)) in template_private_single_zero_test()
89 OSSL_PARAM *params = NULL, *params_blt = NULL, *p1 = NULL, *p; in template_public_test() local
146 if (!TEST_ptr(p = OSSL_PARAM_locate(params, "i")) in template_public_test()
147 || !TEST_true(OSSL_PARAM_get_int(p, &i)) in template_public_test()
148 || !TEST_str_eq(p->key, "i") in template_public_test()
149 || !TEST_uint_eq(p->data_type, OSSL_PARAM_INTEGER) in template_public_test()
150 || !TEST_size_t_eq(p->data_size, sizeof(int)) in template_public_test()
153 || !TEST_ptr(p = OSSL_PARAM_locate(params, "i32")) in template_public_test()
154 || !TEST_true(OSSL_PARAM_get_int32(p, &i32)) in template_public_test()
155 || !TEST_str_eq(p->key, "i32") in template_public_test()
156 || !TEST_uint_eq(p->data_type, OSSL_PARAM_INTEGER) in template_public_test()
157 || !TEST_size_t_eq(p->data_size, sizeof(int32_t)) in template_public_test()
160 || !TEST_ptr(p = OSSL_PARAM_locate(params, "i64")) in template_public_test()
161 || !TEST_str_eq(p->key, "i64") in template_public_test()
162 || !TEST_uint_eq(p->data_type, OSSL_PARAM_INTEGER) in template_public_test()
163 || !TEST_size_t_eq(p->data_size, sizeof(int64_t)) in template_public_test()
164 || !TEST_true(OSSL_PARAM_get_int64(p, &i64)) in template_public_test()
167 || !TEST_ptr(p = OSSL_PARAM_locate(params, "l")) in template_public_test()
168 || !TEST_str_eq(p->key, "l") in template_public_test()
169 || !TEST_uint_eq(p->data_type, OSSL_PARAM_INTEGER) in template_public_test()
170 || !TEST_size_t_eq(p->data_size, sizeof(long int)) in template_public_test()
171 || !TEST_true(OSSL_PARAM_get_long(p, &l)) in template_public_test()
174 || !TEST_ptr(p = OSSL_PARAM_locate(params, "t")) in template_public_test()
175 || !TEST_str_eq(p->key, "t") in template_public_test()
176 || !TEST_uint_eq(p->data_type, OSSL_PARAM_INTEGER) in template_public_test()
177 || !TEST_size_t_eq(p->data_size, sizeof(time_t)) in template_public_test()
178 || !TEST_true(OSSL_PARAM_get_time_t(p, &t)) in template_public_test()
181 || !TEST_ptr(p = OSSL_PARAM_locate(params, "d")) in template_public_test()
182 || !TEST_true(OSSL_PARAM_get_double(p, &d)) in template_public_test()
183 || !TEST_str_eq(p->key, "d") in template_public_test()
184 || !TEST_uint_eq(p->data_type, OSSL_PARAM_REAL) in template_public_test()
185 || !TEST_size_t_eq(p->data_size, sizeof(double)) in template_public_test()
188 || !TEST_ptr(p = OSSL_PARAM_locate(params, "utf8_s")) in template_public_test()
189 || !TEST_str_eq(p->data, "foo") in template_public_test()
190 || !TEST_true(OSSL_PARAM_get_utf8_string(p, &utf, 0)) in template_public_test()
193 || !TEST_ptr(p = OSSL_PARAM_locate(params, "utf8_p")) in template_public_test()
194 || !TEST_true(OSSL_PARAM_get_utf8_ptr(p, &cutf)) in template_public_test()
197 || !TEST_ptr(p = OSSL_PARAM_locate(params, "zeronumber")) in template_public_test()
198 || !TEST_str_eq(p->key, "zeronumber") in template_public_test()
199 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_public_test()
200 || !TEST_true(OSSL_PARAM_get_BN(p, &zbn_res)) in template_public_test()
203 || !TEST_ptr(p = OSSL_PARAM_locate(params, "bignumber")) in template_public_test()
204 || !TEST_str_eq(p->key, "bignumber") in template_public_test()
205 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_public_test()
206 || !TEST_true(OSSL_PARAM_get_BN(p, &pbn_res)) in template_public_test()
209 || !TEST_ptr(p = OSSL_PARAM_locate(params, "negativebignumber")) in template_public_test()
210 || !TEST_str_eq(p->key, "negativebignumber") in template_public_test()
211 || !TEST_uint_eq(p->data_type, OSSL_PARAM_INTEGER) in template_public_test()
212 || !TEST_true(OSSL_PARAM_get_BN(p, &nbn_res)) in template_public_test()
240 OSSL_PARAM *params = NULL, *params_blt = NULL, *p1 = NULL, *p; in template_private_test() local
301 if (!TEST_ptr(p = OSSL_PARAM_locate(params, "i")) in template_private_test()
302 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
303 || !TEST_true(OSSL_PARAM_get_uint(p, &i)) in template_private_test()
304 || !TEST_str_eq(p->key, "i") in template_private_test()
305 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_private_test()
306 || !TEST_size_t_eq(p->data_size, sizeof(int)) in template_private_test()
309 || !TEST_ptr(p = OSSL_PARAM_locate(params, "i32")) in template_private_test()
310 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
311 || !TEST_true(OSSL_PARAM_get_uint32(p, &i32)) in template_private_test()
312 || !TEST_str_eq(p->key, "i32") in template_private_test()
313 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_private_test()
314 || !TEST_size_t_eq(p->data_size, sizeof(int32_t)) in template_private_test()
317 || !TEST_ptr(p = OSSL_PARAM_locate(params, "i64")) in template_private_test()
318 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
319 || !TEST_str_eq(p->key, "i64") in template_private_test()
320 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_private_test()
321 || !TEST_size_t_eq(p->data_size, sizeof(int64_t)) in template_private_test()
322 || !TEST_true(OSSL_PARAM_get_uint64(p, &i64)) in template_private_test()
325 || !TEST_ptr(p = OSSL_PARAM_locate(params, "l")) in template_private_test()
326 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
327 || !TEST_str_eq(p->key, "l") in template_private_test()
328 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_private_test()
329 || !TEST_size_t_eq(p->data_size, sizeof(unsigned long int)) in template_private_test()
330 || !TEST_true(OSSL_PARAM_get_ulong(p, &l)) in template_private_test()
333 || !TEST_ptr(p = OSSL_PARAM_locate(params, "st")) in template_private_test()
334 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
335 || !TEST_str_eq(p->key, "st") in template_private_test()
336 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_private_test()
337 || !TEST_size_t_eq(p->data_size, sizeof(size_t)) in template_private_test()
338 || !TEST_true(OSSL_PARAM_get_size_t(p, &st)) in template_private_test()
341 || !TEST_ptr(p = OSSL_PARAM_locate(params, "oct_s")) in template_private_test()
342 || !TEST_true(CRYPTO_secure_allocated(p->data)) in template_private_test()
343 || !TEST_str_eq(p->key, "oct_s") in template_private_test()
344 || !TEST_uint_eq(p->data_type, OSSL_PARAM_OCTET_STRING) in template_private_test()
345 || !TEST_mem_eq(p->data, p->data_size, data1, data1_size) in template_private_test()
347 || !TEST_ptr(p = OSSL_PARAM_locate(params, "oct_p")) in template_private_test()
348 || !TEST_false(CRYPTO_secure_allocated(p->data)) in template_private_test()
349 || !TEST_true(CRYPTO_secure_allocated(*(void **)p->data)) in template_private_test()
350 || !TEST_str_eq(p->key, "oct_p") in template_private_test()
351 || !TEST_uint_eq(p->data_type, OSSL_PARAM_OCTET_PTR) in template_private_test()
352 || !TEST_mem_eq(*(void **)p->data, p->data_size, data2, data2_size) in template_private_test()
354 || !TEST_ptr(p = OSSL_PARAM_locate(params, "zeronumber")) in template_private_test()
355 || !TEST_true(CRYPTO_secure_allocated(p->data)) in template_private_test()
356 || !TEST_str_eq(p->key, "zeronumber") in template_private_test()
357 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_private_test()
358 || !TEST_true(OSSL_PARAM_get_BN(p, &zbn_res)) in template_private_test()
362 || !TEST_ptr(p = OSSL_PARAM_locate(params, "bignumber")) in template_private_test()
363 || !TEST_true(CRYPTO_secure_allocated(p->data)) in template_private_test()
364 || !TEST_str_eq(p->key, "bignumber") in template_private_test()
365 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in template_private_test()
366 || !TEST_true(OSSL_PARAM_get_BN(p, &pbn_res)) in template_private_test()
370 || !TEST_ptr(p = OSSL_PARAM_locate(params, "negativebignumber")) in template_private_test()
371 || !TEST_true(CRYPTO_secure_allocated(p->data)) in template_private_test()
372 || !TEST_str_eq(p->key, "negativebignumber") in template_private_test()
373 || !TEST_uint_eq(p->data_type, OSSL_PARAM_INTEGER) in template_private_test()
374 || !TEST_true(OSSL_PARAM_get_BN(p, &nbn_res)) in template_private_test()
445 OSSL_PARAM *params = NULL, *params_blt = NULL, *params2_blt = NULL, *p; in builder_merge_test() local
482 if (!TEST_ptr(p = OSSL_PARAM_locate(params, "i")) in builder_merge_test()
483 || !TEST_true(OSSL_PARAM_get_uint(p, &i)) in builder_merge_test()
484 || !TEST_str_eq(p->key, "i") in builder_merge_test()
485 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in builder_merge_test()
486 || !TEST_size_t_eq(p->data_size, sizeof(int)) in builder_merge_test()
489 || !TEST_ptr(p = OSSL_PARAM_locate(params, "i32")) in builder_merge_test()
490 || !TEST_true(OSSL_PARAM_get_uint32(p, &i32)) in builder_merge_test()
491 || !TEST_str_eq(p->key, "i32") in builder_merge_test()
492 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in builder_merge_test()
493 || !TEST_size_t_eq(p->data_size, sizeof(int32_t)) in builder_merge_test()
496 || !TEST_ptr(p = OSSL_PARAM_locate(params, "i64")) in builder_merge_test()
497 || !TEST_str_eq(p->key, "i64") in builder_merge_test()
498 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in builder_merge_test()
499 || !TEST_size_t_eq(p->data_size, sizeof(int64_t)) in builder_merge_test()
500 || !TEST_true(OSSL_PARAM_get_uint64(p, &i64)) in builder_merge_test()
503 || !TEST_ptr(p = OSSL_PARAM_locate(params, "l")) in builder_merge_test()
504 || !TEST_str_eq(p->key, "l") in builder_merge_test()
505 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in builder_merge_test()
506 || !TEST_size_t_eq(p->data_size, sizeof(unsigned long int)) in builder_merge_test()
507 || !TEST_true(OSSL_PARAM_get_ulong(p, &l)) in builder_merge_test()
510 || !TEST_ptr(p = OSSL_PARAM_locate(params, "st")) in builder_merge_test()
511 || !TEST_str_eq(p->key, "st") in builder_merge_test()
512 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in builder_merge_test()
513 || !TEST_size_t_eq(p->data_size, sizeof(size_t)) in builder_merge_test()
514 || !TEST_true(OSSL_PARAM_get_size_t(p, &st)) in builder_merge_test()
517 || !TEST_ptr(p = OSSL_PARAM_locate(params, "oct_s")) in builder_merge_test()
518 || !TEST_str_eq(p->key, "oct_s") in builder_merge_test()
519 || !TEST_uint_eq(p->data_type, OSSL_PARAM_OCTET_STRING) in builder_merge_test()
520 || !TEST_mem_eq(p->data, p->data_size, data1, sizeof(data1)) in builder_merge_test()
522 || !TEST_ptr(p = OSSL_PARAM_locate(params, "oct_p")) in builder_merge_test()
523 || !TEST_str_eq(p->key, "oct_p") in builder_merge_test()
524 || !TEST_uint_eq(p->data_type, OSSL_PARAM_OCTET_PTR) in builder_merge_test()
525 || !TEST_mem_eq(*(void **)p->data, p->data_size, data2, sizeof(data2)) in builder_merge_test()
527 || !TEST_ptr(p = OSSL_PARAM_locate(params, "bignumber_pub")) in builder_merge_test()
528 || !TEST_str_eq(p->key, "bignumber_pub") in builder_merge_test()
529 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in builder_merge_test()
530 || !TEST_true(OSSL_PARAM_get_BN(p, &bn_pub_res)) in builder_merge_test()
532 || !TEST_ptr(p = OSSL_PARAM_locate(params, "bignumber_priv")) in builder_merge_test()
533 || !TEST_str_eq(p->key, "bignumber_priv") in builder_merge_test()
534 || !TEST_uint_eq(p->data_type, OSSL_PARAM_UNSIGNED_INTEGER) in builder_merge_test()
535 || !TEST_true(OSSL_PARAM_get_BN(p, &bn_priv_res)) in builder_merge_test()