Lines Matching defs:pdesc
76 static int hmac_export(struct shash_desc *pdesc, void *out)
78 struct shash_desc *desc = shash_desc_ctx(pdesc);
83 static int hmac_import(struct shash_desc *pdesc, const void *in)
85 struct shash_desc *desc = shash_desc_ctx(pdesc);
86 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm);
93 static int hmac_init(struct shash_desc *pdesc)
95 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm);
97 return hmac_import(pdesc, &tctx->pads[0]);
100 static int hmac_update(struct shash_desc *pdesc,
103 struct shash_desc *desc = shash_desc_ctx(pdesc);
108 static int hmac_final(struct shash_desc *pdesc, u8 *out)
110 struct crypto_shash *parent = pdesc->tfm;
115 struct shash_desc *desc = shash_desc_ctx(pdesc);
122 static int hmac_finup(struct shash_desc *pdesc, const u8 *data,
126 struct crypto_shash *parent = pdesc->tfm;
131 struct shash_desc *desc = shash_desc_ctx(pdesc);