Lines Matching +full:2 +full:p5
66 char p5[256]; member
112 strcpy(obj->p5, p5_init); in init_object()
150 } else if (strcmp(params->key, "p5") == 0) { in raw_set_params()
152 * Protect obj->p5 against too much data. This should not in raw_set_params()
158 if (!TEST_size_t_lt(data_length, sizeof(obj->p5))) in raw_set_params()
160 strncpy(obj->p5, params->data, data_length); in raw_set_params()
161 obj->p5[data_length] = '\0'; in raw_set_params()
162 obj->p5_l = strlen(obj->p5); in raw_set_params()
192 } else if (strcmp(params->key, "p5") == 0) { in raw_get_params()
193 params->return_size = strlen(obj->p5); in raw_get_params()
196 strcpy(params->data, obj->p5); in raw_get_params()
230 if ((p = OSSL_PARAM_locate_const(params, "p5")) != NULL) { in api_set_params()
231 char *p5_ptr = obj->p5; in api_set_params()
232 if (!TEST_true(OSSL_PARAM_get_utf8_string(p, &p5_ptr, sizeof(obj->p5)))) in api_set_params()
234 obj->p5_l = strlen(obj->p5); in api_set_params()
262 if ((p = OSSL_PARAM_locate(params, "p5")) != NULL in api_get_params()
263 && !TEST_true(OSSL_PARAM_set_utf8_string(p, obj->p5))) in api_get_params()
310 static char app_p5[256]; /* "p5" */
357 { "p5", OSSL_PARAM_UTF8_STRING, &app_p5, sizeof(app_p5), 0 },
369 OSSL_PARAM_DEFN("p5", OSSL_PARAM_UTF8_STRING, &app_p5, sizeof(app_p5)),
390 params[n++] = OSSL_PARAM_construct_utf8_string("p5", app_p5, in construct_api_params()
466 || !TEST_ptr(p = OSSL_PARAM_locate(params, "p5")) in test_case_variant()
493 || !TEST_str_eq(sneakpeek->p5, app_p5) /* app value set */ in test_case_variant()
517 || !TEST_ptr(p = OSSL_PARAM_locate(params, "p5")) in test_case_variant()
589 { "short", "0x7fff", INT16_MAX, 1, 2 },
590 { "short", "32767", INT16_MAX, 1, 2 },
592 { "ushort", "0xffff", UINT16_MAX, 1, 2 },
593 { "ushort", "65535", UINT16_MAX, 1, 2 },
598 { "num", "0xff", 0xff, 1, 2 }, /* sign extension */
599 { "num", "-0xff", -0xff, 1, 2 }, /* sign extension */
602 { "num", "0x80", 0x80, 1, 2 }, /* sign extension */
604 { "num", "0x81", 0x81, 1, 2 }, /* sign extension */
605 { "num", "-0x81", -0x81, 1, 2 }, /* sign extension */
669 int expected = (strlen(values[i]) % 2) != 1; in check_octetstr_from_hexstr()