Lines Matching refs:ret
42 int ret; in EVP_PKEY_CTX_set_ecdh_cofactor_mode() local
45 ret = evp_pkey_ctx_getset_ecdh_param_checks(ctx); in EVP_PKEY_CTX_set_ecdh_cofactor_mode()
46 if (ret != 1) in EVP_PKEY_CTX_set_ecdh_cofactor_mode()
47 return ret; in EVP_PKEY_CTX_set_ecdh_cofactor_mode()
64 ret = evp_pkey_ctx_set_params_strict(ctx, params); in EVP_PKEY_CTX_set_ecdh_cofactor_mode()
65 if (ret == -2) in EVP_PKEY_CTX_set_ecdh_cofactor_mode()
67 return ret; in EVP_PKEY_CTX_set_ecdh_cofactor_mode()
72 int ret, mode; in EVP_PKEY_CTX_get_ecdh_cofactor_mode() local
75 ret = evp_pkey_ctx_getset_ecdh_param_checks(ctx); in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
76 if (ret != 1) in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
77 return ret; in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
83 ret = evp_pkey_ctx_get_params_strict(ctx, params); in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
85 switch (ret) { in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
90 ret = mode; in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
96 ret = -1; in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
100 ret = -1; in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
104 return ret; in EVP_PKEY_CTX_get_ecdh_cofactor_mode()
149 int ret; in EVP_PKEY_CTX_set_ecdh_kdf_outlen() local
153 ret = evp_pkey_ctx_getset_ecdh_param_checks(ctx); in EVP_PKEY_CTX_set_ecdh_kdf_outlen()
154 if (ret != 1) in EVP_PKEY_CTX_set_ecdh_kdf_outlen()
155 return ret; in EVP_PKEY_CTX_set_ecdh_kdf_outlen()
170 ret = evp_pkey_ctx_set_params_strict(ctx, params); in EVP_PKEY_CTX_set_ecdh_kdf_outlen()
171 if (ret == -2) in EVP_PKEY_CTX_set_ecdh_kdf_outlen()
173 return ret; in EVP_PKEY_CTX_set_ecdh_kdf_outlen()
179 int ret; in EVP_PKEY_CTX_get_ecdh_kdf_outlen() local
182 ret = evp_pkey_ctx_getset_ecdh_param_checks(ctx); in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
183 if (ret != 1) in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
184 return ret; in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
190 ret = evp_pkey_ctx_get_params_strict(ctx, params); in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
192 switch (ret) { in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
200 ret = -1; in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
203 ret = -1; in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
207 return ret; in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
212 int ret; in EVP_PKEY_CTX_set0_ecdh_kdf_ukm() local
215 ret = evp_pkey_ctx_getset_ecdh_param_checks(ctx); in EVP_PKEY_CTX_set0_ecdh_kdf_ukm()
216 if (ret != 1) in EVP_PKEY_CTX_set0_ecdh_kdf_ukm()
217 return ret; in EVP_PKEY_CTX_set0_ecdh_kdf_ukm()
228 ret = evp_pkey_ctx_set_params_strict(ctx, params); in EVP_PKEY_CTX_set0_ecdh_kdf_ukm()
230 switch (ret) { in EVP_PKEY_CTX_set0_ecdh_kdf_ukm()
239 return ret; in EVP_PKEY_CTX_set0_ecdh_kdf_ukm()
246 int ret; in EVP_PKEY_CTX_get0_ecdh_kdf_ukm() local
249 ret = evp_pkey_ctx_getset_ecdh_param_checks(ctx); in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
250 if (ret != 1) in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
251 return ret; in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
257 ret = evp_pkey_ctx_get_params_strict(ctx, params); in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
259 switch (ret) { in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
264 ret = -1; in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
267 ret = (int)ukmlen; in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
270 ret = -1; in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
274 return ret; in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()