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