Lines Matching refs:p1
191 int p1; member
449 &ctx->p1); in default_fixup_args()
492 (unsigned int *)&ctx->p1); in default_fixup_args()
498 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
503 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
508 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
513 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
529 ctx->p1 = (int)ctx->params[0].return_size; in default_fixup_args()
612 ret = ctx->p1; in default_fixup_args()
623 return OSSL_PARAM_get_int(ctx->params, &ctx->p1); in default_fixup_args()
632 (unsigned int *)&ctx->p1)) in default_fixup_args()
658 size_t size = (size_t)ctx->p1; in default_fixup_args()
673 return OSSL_PARAM_set_int(ctx->params, ctx->p1); in default_fixup_args()
681 (unsigned int)ctx->p1); in default_fixup_args()
765 ctx->p1 = sizeof(ctx->name_buf); in fix_cipher_md()
773 ? OBJ_nid2sn(ctx->p1) in fix_cipher_md()
775 ctx->p1 = strlen(ctx->p2); in fix_cipher_md()
778 ctx->p1 = strlen(ctx->p2); in fix_cipher_md()
791 ctx->p1 = 1; in fix_cipher_md()
794 ctx->p1 = 0; in fix_cipher_md()
864 if (ctx->p1 == -2) { in fix_kdf_type()
874 ctx->p1 = sizeof(ctx->name_buf); in fix_kdf_type()
889 if (ctx->p1 == kdf_type_map->kdf_type_num) { in fix_kdf_type()
896 ctx->p1 = strlen(ctx->p2); in fix_kdf_type()
904 ctx->p1 = ret = -1; in fix_kdf_type()
909 ctx->p1 = kdf_type_map->kdf_type_num; in fix_kdf_type()
915 ctx->p1 = -2; in fix_kdf_type()
971 ctx->p1 = 0; /* let default_fixup_args() figure out the length */ in fix_oid()
1008 (ossl_ffc_uid_to_dh_named_group(ctx->p1)); in fix_dh_nid()
1009 ctx->p1 = 0; in fix_dh_nid()
1032 (ossl_ffc_uid_to_dh_named_group(ctx->p1)); in fix_dh_nid5114()
1033 ctx->p1 = 0; in fix_dh_nid5114()
1041 ctx->p1 = 0; in fix_dh_nid5114()
1067 ctx->p1 = strlen(ctx->p2); in fix_dh_paramgen_type()
1088 switch (ctx->p1) { in fix_ec_param_enc()
1099 ctx->p1 = 0; in fix_ec_param_enc()
1107 ctx->p1 = OPENSSL_EC_EXPLICIT_CURVE; in fix_ec_param_enc()
1109 ctx->p1 = OPENSSL_EC_NAMED_CURVE; in fix_ec_param_enc()
1111 ctx->p1 = ret = -2; in fix_ec_param_enc()
1136 ctx->p2 = (char *)OBJ_nid2sn(ctx->p1); in fix_ec_paramgen_curve_nid()
1137 ctx->p1 = 0; in fix_ec_paramgen_curve_nid()
1144 ctx->p1 = OBJ_sn2nid(ctx->p2); in fix_ec_paramgen_curve_nid()
1174 if (ctx->p1 == -2) in fix_ecdh_cofactor()
1190 if (ctx->p1 < -1 || ctx->p1 > 1) { in fix_ecdh_cofactor()
1200 if (ctx->p1 < 0 || ctx->p1 > 1) { in fix_ecdh_cofactor()
1205 ctx->p1 = ret = -1; in fix_ecdh_cofactor()
1208 ctx->p1 = -2; in fix_ecdh_cofactor()
1248 ctx->p1 = sizeof(ctx->name_buf); in fix_rsa_padding_mode()
1268 &ctx->p1); in fix_rsa_padding_mode()
1281 return OSSL_PARAM_get_int(ctx->params, &ctx->p1); in fix_rsa_padding_mode()
1283 return OSSL_PARAM_get_uint(ctx->params, (unsigned int *)&ctx->p1); in fix_rsa_padding_mode()
1289 if (ctx->p1 == (int)str_value_map[i].id) in fix_rsa_padding_mode()
1295 ctx->action_type, state, ctx->p1); in fix_rsa_padding_mode()
1307 ctx->p1 = strlen(ctx->p2); in fix_rsa_padding_mode()
1325 ctx->action_type, state, ctx->p1); in fix_rsa_padding_mode()
1326 ctx->p1 = ret = -2; in fix_rsa_padding_mode()
1331 ctx->p1 = str_value_map[i].id; in fix_rsa_padding_mode()
1369 ctx->p1 = sizeof(ctx->name_buf); in fix_rsa_pss_saltlen()
1375 if (ctx->p1 == (int)str_value_map[i].id) in fix_rsa_pss_saltlen()
1379 BIO_snprintf(ctx->name_buf, sizeof(ctx->name_buf), "%d", ctx->p1); in fix_rsa_pss_saltlen()
1386 ctx->p1 = strlen(ctx->p2); in fix_rsa_pss_saltlen()
1401 ctx->p1 = atoi(ctx->p2); in fix_rsa_pss_saltlen()
1409 ctx->p1 = (int)str_value_map[i].id; in fix_rsa_pss_saltlen()
1437 if (ctx->p1 == (int)str_value_map[i].id) in fix_hkdf_mode()
1443 ctx->p1 = strlen(ctx->p2); in fix_hkdf_mode()
1462 ctx->p1 = str_value_map[i].id; in fix_hkdf_mode()
1528 ctx->p1 = strlen(ctx->p2); in get_payload_group_name()
1721 ctx->p1 = val; in get_payload_int()
2519 int cmd, int p1, void *p2) in evp_pkey_ctx_ctrl_to_param() argument
2549 ctx.p1 = p1; in evp_pkey_ctx_ctrl_to_param()
2575 ctx.p1 = ret; in evp_pkey_ctx_ctrl_to_param()
2577 ret = ctx.p1; in evp_pkey_ctx_ctrl_to_param()
2615 ctx.p1 = (int)strlen(value); in evp_pkey_ctx_ctrl_str_to_param()
2680 ctx.ctrl_cmd, ctx.p1, ctx.p2); in evp_pkey_ctx_setget_params_to_ctrl()
2687 ctx.p1 = ret; in evp_pkey_ctx_setget_params_to_ctrl()
2689 ret = ctx.p1; in evp_pkey_ctx_setget_params_to_ctrl()