Lines Matching refs:desc
29 struct shash_desc *desc; in x509_get_sig_params() local
53 desc_size = crypto_shash_descsize(tfm) + sizeof(*desc); in x509_get_sig_params()
61 desc = kzalloc(desc_size, GFP_KERNEL); in x509_get_sig_params()
62 if (!desc) in x509_get_sig_params()
65 desc->tfm = tfm; in x509_get_sig_params()
69 crypto_shash_init(desc) ?: in x509_get_sig_params()
70 sm2_compute_z_digest(desc, cert->pub->key, in x509_get_sig_params()
72 crypto_shash_init(desc) ?: in x509_get_sig_params()
73 crypto_shash_update(desc, sig->digest, in x509_get_sig_params()
75 crypto_shash_finup(desc, cert->tbs, cert->tbs_size, in x509_get_sig_params()
78 ret = crypto_shash_digest(desc, cert->tbs, cert->tbs_size, in x509_get_sig_params()
95 kfree(desc); in x509_get_sig_params()
168 char *desc = NULL, *p; in x509_key_preparse() local
206 desc = kmalloc(sulen + 2 + srlen * 2 + 1, GFP_KERNEL); in x509_key_preparse()
207 if (!desc) in x509_key_preparse()
209 p = memcpy(desc, cert->subject, sulen); in x509_key_preparse()
235 prep->description = desc; in x509_key_preparse()
243 desc = NULL; in x509_key_preparse()
250 kfree(desc); in x509_key_preparse()