Lines Matching refs:desc
91 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export() local
93 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_export()
95 return crypto_shash_export(desc, out); in hmac_export()
100 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import() local
103 desc->tfm = ctx->hash; in hmac_import()
104 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_import()
106 return crypto_shash_import(desc, in); in hmac_import()
117 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update() local
119 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_update()
121 return crypto_shash_update(desc, data, nbytes); in hmac_update()
130 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_final() local
132 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_final()
134 return crypto_shash_final(desc, out) ?: in hmac_final()
135 crypto_shash_import(desc, opad) ?: in hmac_final()
136 crypto_shash_finup(desc, out, ds, out); in hmac_final()
147 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_finup() local
149 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_finup()
151 return crypto_shash_finup(desc, data, nbytes, out) ?: in hmac_finup()
152 crypto_shash_import(desc, opad) ?: in hmac_finup()
153 crypto_shash_finup(desc, out, ds, out); in hmac_finup()