Lines Matching refs:ret
22 static int dsa_precheck_params(const DSA *dsa, int *ret) in dsa_precheck_params() argument
26 *ret = FFC_CHECK_INVALID_PQ; in dsa_precheck_params()
32 *ret = FFC_CHECK_INVALID_PQ; in dsa_precheck_params()
38 *ret = FFC_CHECK_INVALID_PQ; in dsa_precheck_params()
45 int ossl_dsa_check_params(const DSA *dsa, int checktype, int *ret) in ossl_dsa_check_params() argument
47 if (!dsa_precheck_params(dsa, ret)) in ossl_dsa_check_params()
52 FFC_PARAM_TYPE_DSA, ret); in ossl_dsa_check_params()
60 FFC_PARAM_TYPE_DSA, ret); in ossl_dsa_check_params()
66 int ossl_dsa_check_pub_key(const DSA *dsa, const BIGNUM *pub_key, int *ret) in ossl_dsa_check_pub_key() argument
68 if (!dsa_precheck_params(dsa, ret)) in ossl_dsa_check_pub_key()
71 return ossl_ffc_validate_public_key(&dsa->params, pub_key, ret) in ossl_dsa_check_pub_key()
72 && *ret == 0; in ossl_dsa_check_pub_key()
80 int ossl_dsa_check_pub_key_partial(const DSA *dsa, const BIGNUM *pub_key, int *ret) in ossl_dsa_check_pub_key_partial() argument
82 if (!dsa_precheck_params(dsa, ret)) in ossl_dsa_check_pub_key_partial()
85 return ossl_ffc_validate_public_key_partial(&dsa->params, pub_key, ret) in ossl_dsa_check_pub_key_partial()
86 && *ret == 0; in ossl_dsa_check_pub_key_partial()
89 int ossl_dsa_check_priv_key(const DSA *dsa, const BIGNUM *priv_key, int *ret) in ossl_dsa_check_priv_key() argument
91 *ret = 0; in ossl_dsa_check_priv_key()
93 if (!dsa_precheck_params(dsa, ret)) in ossl_dsa_check_priv_key()
96 return ossl_ffc_validate_private_key(dsa->params.q, priv_key, ret); in ossl_dsa_check_priv_key()
105 int ret = 0; in ossl_dsa_check_pairwise() local
109 if (!dsa_precheck_params(dsa, &ret)) in ossl_dsa_check_pairwise()
128 ret = BN_cmp(pub_key, dsa->pub_key) == 0; in ossl_dsa_check_pairwise()
132 return ret; in ossl_dsa_check_pairwise()