Lines Matching refs:p1
189 int p1; member
447 &ctx->p1); in default_fixup_args()
488 (unsigned int *)&ctx->p1); in default_fixup_args()
494 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
499 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
504 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
509 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
525 ctx->p1 = (int)ctx->params[0].return_size; in default_fixup_args()
608 ret = ctx->p1; in default_fixup_args()
619 return OSSL_PARAM_get_int(ctx->params, &ctx->p1); in default_fixup_args()
628 (unsigned int *)&ctx->p1)) in default_fixup_args()
638 (size_t *)&ctx->p1); in default_fixup_args()
654 size_t size = (size_t)ctx->p1; in default_fixup_args()
669 return OSSL_PARAM_set_int(ctx->params, ctx->p1); in default_fixup_args()
677 (unsigned int)ctx->p1); in default_fixup_args()
764 ctx->p1 = sizeof(ctx->name_buf); in fix_cipher_md()
772 ? OBJ_nid2sn(ctx->p1) in fix_cipher_md()
774 ctx->p1 = strlen(ctx->p2); in fix_cipher_md()
777 ctx->p1 = strlen(ctx->p2); in fix_cipher_md()
790 ctx->p1 = 1; in fix_cipher_md()
793 ctx->p1 = 0; in fix_cipher_md()
863 if (ctx->p1 == -2) { in fix_kdf_type()
873 ctx->p1 = sizeof(ctx->name_buf); in fix_kdf_type()
888 if (ctx->p1 == kdf_type_map->kdf_type_num) { in fix_kdf_type()
895 ctx->p1 = strlen(ctx->p2); in fix_kdf_type()
903 ctx->p1 = ret = -1; in fix_kdf_type()
908 ctx->p1 = kdf_type_map->kdf_type_num; in fix_kdf_type()
914 ctx->p1 = -2; in fix_kdf_type()
970 ctx->p1 = 0; /* let default_fixup_args() figure out the length */ in fix_oid()
1007 (ossl_ffc_uid_to_dh_named_group(ctx->p1))) == NULL) { in fix_dh_nid()
1011 ctx->p1 = 0; in fix_dh_nid()
1034 (ossl_ffc_uid_to_dh_named_group(ctx->p1))) == NULL) { in fix_dh_nid5114()
1039 ctx->p1 = 0; in fix_dh_nid5114()
1051 ctx->p1 = 0; in fix_dh_nid5114()
1081 ctx->p1 = strlen(ctx->p2); in fix_dh_paramgen_type()
1102 switch (ctx->p1) { in fix_ec_param_enc()
1113 ctx->p1 = 0; in fix_ec_param_enc()
1121 ctx->p1 = OPENSSL_EC_EXPLICIT_CURVE; in fix_ec_param_enc()
1123 ctx->p1 = OPENSSL_EC_NAMED_CURVE; in fix_ec_param_enc()
1125 ctx->p1 = ret = -2; in fix_ec_param_enc()
1151 ctx->p2 = (char *)OBJ_nid2sn(ctx->p1); in fix_ec_paramgen_curve_nid()
1152 ctx->p1 = 0; in fix_ec_paramgen_curve_nid()
1171 ctx->p1 = OBJ_sn2nid(p2); in fix_ec_paramgen_curve_nid()
1201 if (ctx->p1 == -2) in fix_ecdh_cofactor()
1219 if (ctx->p1 < -1 || ctx->p1 > 1) { in fix_ecdh_cofactor()
1229 if (ctx->p1 < 0 || ctx->p1 > 1) { in fix_ecdh_cofactor()
1234 ctx->p1 = ret = -1; in fix_ecdh_cofactor()
1237 ctx->p1 = -2; in fix_ecdh_cofactor()
1239 ctx->p1 = ret; in fix_ecdh_cofactor()
1279 ctx->p1 = sizeof(ctx->name_buf); in fix_rsa_padding_mode()
1299 &ctx->p1); in fix_rsa_padding_mode()
1312 return OSSL_PARAM_get_int(ctx->params, &ctx->p1); in fix_rsa_padding_mode()
1314 return OSSL_PARAM_get_uint(ctx->params, (unsigned int *)&ctx->p1); in fix_rsa_padding_mode()
1320 if (ctx->p1 == (int)str_value_map[i].id) in fix_rsa_padding_mode()
1326 ctx->action_type, state, ctx->p1); in fix_rsa_padding_mode()
1338 ctx->p1 = strlen(ctx->p2); in fix_rsa_padding_mode()
1356 ctx->action_type, state, ctx->p1); in fix_rsa_padding_mode()
1357 ctx->p1 = ret = -2; in fix_rsa_padding_mode()
1362 ctx->p1 = str_value_map[i].id; in fix_rsa_padding_mode()
1400 ctx->p1 = sizeof(ctx->name_buf); in fix_rsa_pss_saltlen()
1406 if (ctx->p1 == (int)str_value_map[i].id) in fix_rsa_pss_saltlen()
1410 BIO_snprintf(ctx->name_buf, sizeof(ctx->name_buf), "%d", ctx->p1); in fix_rsa_pss_saltlen()
1417 ctx->p1 = strlen(ctx->p2); in fix_rsa_pss_saltlen()
1442 ctx->p1 = val; in fix_rsa_pss_saltlen()
1470 if (ctx->p1 == (int)str_value_map[i].id) in fix_hkdf_mode()
1476 ctx->p1 = strlen(ctx->p2); in fix_hkdf_mode()
1495 ctx->p1 = str_value_map[i].id; in fix_hkdf_mode()
1561 ctx->p1 = strlen(ctx->p2); in get_payload_group_name()
1812 ctx->p1 = val; in get_payload_int()
2056 ctx->p1 = 0; in fix_group_ecx()
2059 ctx->p1 = 1; in fix_group_ecx()
2709 int cmd, int p1, void *p2) in evp_pkey_ctx_ctrl_to_param() argument
2739 ctx.p1 = p1; in evp_pkey_ctx_ctrl_to_param()
2765 ctx.p1 = ret; in evp_pkey_ctx_ctrl_to_param()
2767 ret = ctx.p1; in evp_pkey_ctx_ctrl_to_param()
2805 ctx.p1 = (int)strlen(value); in evp_pkey_ctx_ctrl_str_to_param()
2870 ctx.ctrl_cmd, ctx.p1, ctx.p2); in evp_pkey_ctx_setget_params_to_ctrl()
2883 ctx.p1 = ret; in evp_pkey_ctx_setget_params_to_ctrl()
2885 ret = ctx.p1; in evp_pkey_ctx_setget_params_to_ctrl()