Searched refs:tctx (Results 1 – 2 of 2) sorted by relevance
/arch/cris/arch-v32/drivers/ |
D | cryptocop.c | 93 struct cryptocop_transform_ctx *tctx; member 453 if ((tc->tctx->init.alg == cryptocop_alg_aes) && (tc->tcfg->flags & CRYPTOCOP_DECRYPT)) { in setup_key_dl_desc() 455 if (!tc->tctx->dec_key_set){ in setup_key_dl_desc() 456 get_aes_decrypt_key(tc->tctx->dec_key, tc->tctx->init.key, tc->tctx->init.keylen); in setup_key_dl_desc() 457 tc->tctx->dec_key_set = 1; in setup_key_dl_desc() 459 key_desc->dma_descr->buf = (char*)virt_to_phys(tc->tctx->dec_key); in setup_key_dl_desc() 460 key_desc->dma_descr->after = key_desc->dma_descr->buf + tc->tctx->init.keylen/8; in setup_key_dl_desc() 462 key_desc->dma_descr->buf = (char*)virt_to_phys(tc->tctx->init.key); in setup_key_dl_desc() 463 key_desc->dma_descr->after = key_desc->dma_descr->buf + tc->tctx->init.keylen/8; in setup_key_dl_desc() 467 switch (tc->tctx->init.keylen) { in setup_key_dl_desc() [all …]
|
/arch/arm64/crypto/ |
D | aes-glue.c | 501 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in mac_update() local 514 mac_do_update(&tctx->key, p, blocks, ctx->dg, in mac_update() 541 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in cbcmac_final() local 544 mac_do_update(&tctx->key, NULL, 0, ctx->dg, 1, 0); in cbcmac_final() 553 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in cmac_final() local 555 u8 *consts = tctx->consts; in cmac_final() 562 mac_do_update(&tctx->key, consts, 1, ctx->dg, 0, 1); in cmac_final()
|