Lines Matching refs:tctx

41 	struct hmac_ctx *tctx = crypto_shash_ctx(parent);  in hmac_setkey()  local
42 struct crypto_shash *hash = tctx->hash; in hmac_setkey()
43 u8 *ipad = &tctx->pads[0]; in hmac_setkey()
44 u8 *opad = &tctx->pads[ss]; in hmac_setkey()
92 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_import() local
94 desc->tfm = tctx->hash; in hmac_import()
108 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_import_core() local
111 desc->tfm = tctx->hash; in hmac_import_core()
117 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_init() local
119 return hmac_import(pdesc, &tctx->pads[0]); in hmac_init()
137 const struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_finup() local
138 const u8 *opad = &tctx->pads[ss]; in hmac_finup()
151 struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_init_tfm() local
157 tctx->hash = hash; in hmac_init_tfm()
177 struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_exit_tfm() local
179 crypto_free_shash(tctx->hash); in hmac_exit_tfm()
254 struct ahash_hmac_ctx *tctx = crypto_ahash_ctx(parent); in hmac_setkey_ahash() local
255 struct crypto_ahash *fb = crypto_ahash_fb(tctx->hash); in hmac_setkey_ahash()
260 u8 *opad = &tctx->pads[ss]; in hmac_setkey_ahash()
261 u8 *ipad = &tctx->pads[0]; in hmac_setkey_ahash()
311 struct ahash_hmac_ctx *tctx = crypto_ahash_ctx(tfm); in hmac_import_ahash() local
314 ahash_request_set_tfm(req, tctx->hash); in hmac_import_ahash()
326 struct ahash_hmac_ctx *tctx = crypto_ahash_ctx(tfm); in hmac_import_core_ahash() local
329 ahash_request_set_tfm(req, tctx->hash); in hmac_import_core_ahash()
336 struct ahash_hmac_ctx *tctx = crypto_ahash_ctx(tfm); in hmac_init_ahash() local
338 return hmac_import_ahash(preq, &tctx->pads[0]); in hmac_init_ahash()
358 struct ahash_hmac_ctx *tctx = crypto_ahash_ctx(tfm); in hmac_finup_finish() local
361 const u8 *opad = &tctx->pads[ss]; in hmac_finup_finish()
411 struct ahash_hmac_ctx *tctx = crypto_ahash_ctx(parent); in hmac_init_ahash_tfm() local
422 tctx->hash = hash; in hmac_init_ahash_tfm()
443 struct ahash_hmac_ctx *tctx = crypto_ahash_ctx(parent); in hmac_exit_ahash_tfm() local
445 crypto_free_ahash(tctx->hash); in hmac_exit_ahash_tfm()