Lines Matching refs:cp

519     OSSL_PARAM *cp;  in test_param_construct()  local
571 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, int_names[j])) in test_param_construct()
572 || !TEST_true(OSSL_PARAM_set_int32(cp, (int32_t)(3 + j))) in test_param_construct()
573 || !TEST_true(OSSL_PARAM_get_int64(cp, &i64)) in test_param_construct()
574 || !TEST_size_t_eq(cp->data_size, cp->return_size) in test_param_construct()
582 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, uint_names[j])) in test_param_construct()
583 || !TEST_true(OSSL_PARAM_set_uint32(cp, (uint32_t)(3 + j))) in test_param_construct()
584 || !TEST_true(OSSL_PARAM_get_uint64(cp, &u64)) in test_param_construct()
585 || !TEST_size_t_eq(cp->data_size, cp->return_size) in test_param_construct()
592 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "double")) in test_param_construct()
593 || !TEST_true(OSSL_PARAM_set_double(cp, 3.14)) in test_param_construct()
594 || !TEST_true(OSSL_PARAM_get_double(cp, &d2)) in test_param_construct()
595 || !TEST_size_t_eq(cp->return_size, sizeof(double)) in test_param_construct()
601 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "utf8str")) in test_param_construct()
602 || !TEST_true(OSSL_PARAM_set_utf8_string(cp, "abcdef")) in test_param_construct()
603 || !TEST_size_t_eq(cp->return_size, sizeof("abcdef") - 1) in test_param_construct()
604 || !TEST_true(OSSL_PARAM_get_utf8_string(cp, &bufp, 0)) in test_param_construct()
611 if (!TEST_true(OSSL_PARAM_get_utf8_string(cp, &bufp, sizeof(buf2))) in test_param_construct()
617 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "utf8ptr")) in test_param_construct()
618 || !TEST_true(OSSL_PARAM_set_utf8_ptr(cp, "tuvwxyz")) in test_param_construct()
619 || !TEST_size_t_eq(cp->return_size, sizeof("tuvwxyz") - 1) in test_param_construct()
620 || !TEST_true(OSSL_PARAM_get_utf8_ptr(cp, (const char **)&bufp2)) in test_param_construct()
625 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "octstr")) in test_param_construct()
626 || !TEST_true(OSSL_PARAM_set_octet_string(cp, "abcdefghi", in test_param_construct()
628 || !TEST_size_t_eq(cp->return_size, sizeof("abcdefghi"))) in test_param_construct()
631 cp->data_size = cp->return_size; in test_param_construct()
632 if (!TEST_true(OSSL_PARAM_get_octet_string(cp, &vpn, 0, &s)) in test_param_construct()
638 if (!TEST_true(OSSL_PARAM_get_octet_string(cp, &vp, sizeof(buf2), &s)) in test_param_construct()
645 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "octptr")) in test_param_construct()
646 || !TEST_true(OSSL_PARAM_set_octet_ptr(cp, &ul, sizeof(ul))) in test_param_construct()
647 || !TEST_size_t_eq(cp->return_size, sizeof(ul)) in test_param_construct()
651 cp->data_size = cp->return_size; in test_param_construct()
652 if (!TEST_true(OSSL_PARAM_get_octet_ptr(cp, (const void **)&vp2, &k)) in test_param_construct()
657 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "bignum")) in test_param_construct()
659 || !TEST_true(OSSL_PARAM_set_BN(cp, bn)) in test_param_construct()
660 || !TEST_size_t_eq(cp->data_size, cp->return_size)) in test_param_construct()
663 cp->data_size = cp->return_size; in test_param_construct()
664 if (!TEST_true(OSSL_PARAM_get_BN(cp, &bn2)) in test_param_construct()