Lines Matching refs:pdesc
89 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export() argument
91 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export()
93 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_export()
98 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import() argument
100 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import()
101 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); in hmac_import()
104 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_import()
109 static int hmac_init(struct shash_desc *pdesc) in hmac_init() argument
111 return hmac_import(pdesc, crypto_shash_ctx_aligned(pdesc->tfm)); in hmac_init()
114 static int hmac_update(struct shash_desc *pdesc, in hmac_update() argument
117 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update()
119 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_update()
124 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final() argument
126 struct crypto_shash *parent = pdesc->tfm; in hmac_final()
130 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_final()
132 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_final()
139 static int hmac_finup(struct shash_desc *pdesc, const u8 *data, in hmac_finup() argument
143 struct crypto_shash *parent = pdesc->tfm; in hmac_finup()
147 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_finup()
149 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_finup()