Lines Matching refs:ret
29 int ret; in x509_get_sig_params() local
66 ret = -ENOMEM; in x509_get_sig_params()
77 ret = crypto_shash_digest(desc, cert->tbs, cert->tbs_size, sig->digest); in x509_get_sig_params()
78 if (ret < 0) in x509_get_sig_params()
81 ret = is_hash_blacklisted(sig->digest, sig->digest_size, "tbs"); in x509_get_sig_params()
82 if (ret == -EKEYREJECTED) { in x509_get_sig_params()
86 ret = 0; in x509_get_sig_params()
93 pr_devel("<==%s() = %d\n", __func__, ret); in x509_get_sig_params()
94 return ret; in x509_get_sig_params()
103 int ret = 0; in x509_check_for_self_signed() local
122 ret = -EKEYREJECTED; in x509_check_for_self_signed()
128 ret = -EKEYREJECTED; in x509_check_for_self_signed()
132 ret = public_key_verify_signature(cert->pub, cert->sig); in x509_check_for_self_signed()
133 if (ret < 0) { in x509_check_for_self_signed()
134 if (ret == -ENOPKG) { in x509_check_for_self_signed()
136 ret = 0; in x509_check_for_self_signed()
145 pr_devel("<==%s() = %d\n", __func__, ret); in x509_check_for_self_signed()
146 return ret; in x509_check_for_self_signed()
163 int ret; in x509_key_preparse() local
173 ret = -ENOPKG; in x509_key_preparse()
191 ret = -EKEYREJECTED; in x509_key_preparse()
205 ret = -ENOMEM; in x509_key_preparse()
237 ret = 0; in x509_key_preparse()
243 return ret; in x509_key_preparse()