Lines Matching defs:pdesc
83 static int hmac_export(struct shash_desc *pdesc, void *out)
85 struct shash_desc *desc = shash_desc_ctx(pdesc);
90 static int hmac_import(struct shash_desc *pdesc, const void *in)
92 struct shash_desc *desc = shash_desc_ctx(pdesc);
93 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm);
100 static int hmac_init(struct shash_desc *pdesc)
102 return hmac_import(pdesc, crypto_shash_ctx_aligned(pdesc->tfm));
105 static int hmac_update(struct shash_desc *pdesc,
108 struct shash_desc *desc = shash_desc_ctx(pdesc);
113 static int hmac_final(struct shash_desc *pdesc, u8 *out)
115 struct crypto_shash *parent = pdesc->tfm;
119 struct shash_desc *desc = shash_desc_ctx(pdesc);
126 static int hmac_finup(struct shash_desc *pdesc, const u8 *data,
130 struct crypto_shash *parent = pdesc->tfm;
134 struct shash_desc *desc = shash_desc_ctx(pdesc);