Lines Matching refs:pdesc
90 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export() argument
92 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export()
94 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_export()
99 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import() argument
101 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import()
102 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); in hmac_import()
105 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_import()
110 static int hmac_init(struct shash_desc *pdesc) in hmac_init() argument
112 return hmac_import(pdesc, crypto_shash_ctx_aligned(pdesc->tfm)); in hmac_init()
115 static int hmac_update(struct shash_desc *pdesc, in hmac_update() argument
118 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update()
120 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_update()
125 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final() argument
127 struct crypto_shash *parent = pdesc->tfm; in hmac_final()
131 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_final()
133 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_final()
140 static int hmac_finup(struct shash_desc *pdesc, const u8 *data, in hmac_finup() argument
144 struct crypto_shash *parent = pdesc->tfm; in hmac_finup()
148 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_finup()
150 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_finup()