Lines Matching refs:cp

601     OSSL_PARAM *cp;  in test_param_construct()  local
653 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, int_names[j])) in test_param_construct()
654 || !TEST_true(OSSL_PARAM_set_int32(cp, (int32_t)(3 + j))) in test_param_construct()
655 || !TEST_true(OSSL_PARAM_get_int64(cp, &i64)) in test_param_construct()
656 || !TEST_size_t_eq(cp->data_size, cp->return_size) in test_param_construct()
664 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, uint_names[j])) in test_param_construct()
665 || !TEST_true(OSSL_PARAM_set_uint32(cp, (uint32_t)(3 + j))) in test_param_construct()
666 || !TEST_true(OSSL_PARAM_get_uint64(cp, &u64)) in test_param_construct()
667 || !TEST_size_t_eq(cp->data_size, cp->return_size) in test_param_construct()
674 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "double")) in test_param_construct()
675 || !TEST_true(OSSL_PARAM_set_double(cp, 3.14)) in test_param_construct()
676 || !TEST_true(OSSL_PARAM_get_double(cp, &d2)) in test_param_construct()
677 || !TEST_size_t_eq(cp->return_size, sizeof(double)) in test_param_construct()
683 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "utf8str")) in test_param_construct()
684 || !TEST_true(OSSL_PARAM_set_utf8_string(cp, "abcdef")) in test_param_construct()
685 || !TEST_size_t_eq(cp->return_size, sizeof("abcdef") - 1) in test_param_construct()
686 || !TEST_true(OSSL_PARAM_get_utf8_string(cp, &bufp, 0)) in test_param_construct()
693 if (!TEST_true(OSSL_PARAM_get_utf8_string(cp, &bufp, sizeof(buf2))) in test_param_construct()
699 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "utf8ptr")) in test_param_construct()
700 || !TEST_true(OSSL_PARAM_set_utf8_ptr(cp, "tuvwxyz")) in test_param_construct()
701 || !TEST_size_t_eq(cp->return_size, sizeof("tuvwxyz") - 1) in test_param_construct()
702 || !TEST_true(OSSL_PARAM_get_utf8_ptr(cp, (const char **)&bufp2)) in test_param_construct()
707 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "octstr")) in test_param_construct()
708 || !TEST_true(OSSL_PARAM_set_octet_string(cp, "abcdefghi", in test_param_construct()
710 || !TEST_size_t_eq(cp->return_size, sizeof("abcdefghi"))) in test_param_construct()
713 cp->data_size = cp->return_size; in test_param_construct()
714 if (!TEST_true(OSSL_PARAM_get_octet_string(cp, &vpn, 0, &s)) in test_param_construct()
720 if (!TEST_true(OSSL_PARAM_get_octet_string(cp, &vp, sizeof(buf2), &s)) in test_param_construct()
727 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "octptr")) in test_param_construct()
728 || !TEST_true(OSSL_PARAM_set_octet_ptr(cp, &ul, sizeof(ul))) in test_param_construct()
729 || !TEST_size_t_eq(cp->return_size, sizeof(ul)) in test_param_construct()
733 cp->data_size = cp->return_size; in test_param_construct()
734 if (!TEST_true(OSSL_PARAM_get_octet_ptr(cp, (const void **)&vp2, &k)) in test_param_construct()
739 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "bignum")) in test_param_construct()
741 || !TEST_true(OSSL_PARAM_set_BN(cp, bn)) in test_param_construct()
742 || !TEST_size_t_eq(cp->data_size, cp->return_size)) in test_param_construct()
745 cp->data_size = cp->return_size; in test_param_construct()
746 if (!TEST_true(OSSL_PARAM_get_BN(cp, &bn2)) in test_param_construct()