Lines Matching refs:ret

51     int ret;  in EVP_PKEY_CTX_set_dh_paramgen_gindex()  local
54 if ((ret = dh_paramgen_check(ctx)) <= 0) in EVP_PKEY_CTX_set_dh_paramgen_gindex()
55 return ret; in EVP_PKEY_CTX_set_dh_paramgen_gindex()
67 int ret; in EVP_PKEY_CTX_set_dh_paramgen_seed() local
70 if ((ret = dh_paramgen_check(ctx)) <= 0) in EVP_PKEY_CTX_set_dh_paramgen_seed()
71 return ret; in EVP_PKEY_CTX_set_dh_paramgen_seed()
92 int ret; in EVP_PKEY_CTX_set_dh_paramgen_prime_len() local
96 if ((ret = dh_paramgen_check(ctx)) <= 0) in EVP_PKEY_CTX_set_dh_paramgen_prime_len()
97 return ret; in EVP_PKEY_CTX_set_dh_paramgen_prime_len()
106 int ret; in EVP_PKEY_CTX_set_dh_paramgen_subprime_len() local
110 if ((ret = dh_paramgen_check(ctx)) <= 0) in EVP_PKEY_CTX_set_dh_paramgen_subprime_len()
111 return ret; in EVP_PKEY_CTX_set_dh_paramgen_subprime_len()
121 int ret; in EVP_PKEY_CTX_set_dh_paramgen_generator() local
124 if ((ret = dh_paramgen_check(ctx)) <= 0) in EVP_PKEY_CTX_set_dh_paramgen_generator()
125 return ret; in EVP_PKEY_CTX_set_dh_paramgen_generator()
238 int ret; in EVP_PKEY_CTX_set_dh_kdf_outlen() local
242 ret = dh_param_derive_check(ctx); in EVP_PKEY_CTX_set_dh_kdf_outlen()
243 if (ret != 1) in EVP_PKEY_CTX_set_dh_kdf_outlen()
244 return ret; in EVP_PKEY_CTX_set_dh_kdf_outlen()
259 ret = evp_pkey_ctx_set_params_strict(ctx, params); in EVP_PKEY_CTX_set_dh_kdf_outlen()
260 if (ret == -2) in EVP_PKEY_CTX_set_dh_kdf_outlen()
262 return ret; in EVP_PKEY_CTX_set_dh_kdf_outlen()
267 int ret; in EVP_PKEY_CTX_get_dh_kdf_outlen() local
271 ret = dh_param_derive_check(ctx); in EVP_PKEY_CTX_get_dh_kdf_outlen()
272 if (ret != 1) in EVP_PKEY_CTX_get_dh_kdf_outlen()
273 return ret; in EVP_PKEY_CTX_get_dh_kdf_outlen()
279 ret = evp_pkey_ctx_get_params_strict(ctx, params); in EVP_PKEY_CTX_get_dh_kdf_outlen()
280 if (ret == -2) in EVP_PKEY_CTX_get_dh_kdf_outlen()
282 if (ret != 1 || len > INT_MAX) in EVP_PKEY_CTX_get_dh_kdf_outlen()
292 int ret; in EVP_PKEY_CTX_set0_dh_kdf_ukm() local
298 ret = dh_param_derive_check(ctx); in EVP_PKEY_CTX_set0_dh_kdf_ukm()
299 if (ret != 1) in EVP_PKEY_CTX_set0_dh_kdf_ukm()
300 return ret; in EVP_PKEY_CTX_set0_dh_kdf_ukm()
311 ret = evp_pkey_ctx_set_params_strict(ctx, params); in EVP_PKEY_CTX_set0_dh_kdf_ukm()
312 if (ret == -2) in EVP_PKEY_CTX_set0_dh_kdf_ukm()
314 if (ret == 1) in EVP_PKEY_CTX_set0_dh_kdf_ukm()
316 return ret; in EVP_PKEY_CTX_set0_dh_kdf_ukm()
322 int ret; in EVP_PKEY_CTX_get0_dh_kdf_ukm() local
326 ret = dh_param_derive_check(ctx); in EVP_PKEY_CTX_get0_dh_kdf_ukm()
327 if (ret != 1) in EVP_PKEY_CTX_get0_dh_kdf_ukm()
328 return ret; in EVP_PKEY_CTX_get0_dh_kdf_ukm()
334 ret = evp_pkey_ctx_get_params_strict(ctx, params); in EVP_PKEY_CTX_get0_dh_kdf_ukm()
335 if (ret == -2) in EVP_PKEY_CTX_get0_dh_kdf_ukm()
337 if (ret != 1) in EVP_PKEY_CTX_get0_dh_kdf_ukm()