Lines Matching refs:p1
115 static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_dh_ctrl() argument
120 if (p1 < 256) in pkey_dh_ctrl()
122 dctx->prime_len = p1; in pkey_dh_ctrl()
128 dctx->subprime_len = p1; in pkey_dh_ctrl()
132 dctx->pad = p1; in pkey_dh_ctrl()
138 dctx->generator = p1; in pkey_dh_ctrl()
143 if (p1 != DH_PARAMGEN_TYPE_GENERATOR) in pkey_dh_ctrl()
146 if (p1 < 0 || p1 > 2) in pkey_dh_ctrl()
149 dctx->paramgen_type = p1; in pkey_dh_ctrl()
153 if (p1 < 1 || p1 > 3 || dctx->param_nid != NID_undef) in pkey_dh_ctrl()
155 dctx->param_nid = p1; in pkey_dh_ctrl()
159 if (p1 <= 0 || dctx->param_nid != NID_undef) in pkey_dh_ctrl()
161 dctx->param_nid = p1; in pkey_dh_ctrl()
169 if (p1 == -2) in pkey_dh_ctrl()
171 if (p1 != EVP_PKEY_DH_KDF_NONE && p1 != EVP_PKEY_DH_KDF_X9_42) in pkey_dh_ctrl()
173 dctx->kdf_type = p1; in pkey_dh_ctrl()
185 if (p1 <= 0) in pkey_dh_ctrl()
187 dctx->kdf_outlen = (size_t)p1; in pkey_dh_ctrl()
198 dctx->kdf_ukmlen = p1; in pkey_dh_ctrl()