Lines Matching defs:pdesc
87 static int hmac_export(struct shash_desc *pdesc, void *out)
89 struct shash_desc *desc = shash_desc_ctx(pdesc);
94 static int hmac_import(struct shash_desc *pdesc, const void *in)
96 struct shash_desc *desc = shash_desc_ctx(pdesc);
97 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm);
104 static int hmac_init(struct shash_desc *pdesc)
106 return hmac_import(pdesc, crypto_shash_ctx_aligned(pdesc->tfm));
109 static int hmac_update(struct shash_desc *pdesc,
112 struct shash_desc *desc = shash_desc_ctx(pdesc);
117 static int hmac_final(struct shash_desc *pdesc, u8 *out)
119 struct crypto_shash *parent = pdesc->tfm;
123 struct shash_desc *desc = shash_desc_ctx(pdesc);
130 static int hmac_finup(struct shash_desc *pdesc, const u8 *data,
134 struct crypto_shash *parent = pdesc->tfm;
138 struct shash_desc *desc = shash_desc_ctx(pdesc);