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