Home
last modified time | relevance | path

Searched refs:tctx (Results 1 – 12 of 12) sorted by relevance

/drivers/crypto/
A Dgeode-aes.c97 _writefield(AES_WRITEKEY0_REG, tctx->key); in geode_aes_crypt()
115 tctx->keylen = len; in geode_setkey_cip()
118 memcpy(tctx->key, key, len); in geode_setkey_cip()
130 tctx->fallback.cip->base.crt_flags |= in geode_setkey_cip()
141 tctx->keylen = len; in geode_setkey_skcipher()
144 memcpy(tctx->key, key, len); in geode_setkey_skcipher()
200 if (IS_ERR(tctx->fallback.cip)) { in fallback_init_cip()
202 return PTR_ERR(tctx->fallback.cip); in fallback_init_cip()
212 crypto_free_cipher(tctx->fallback.cip); in fallback_exit_cip()
243 tctx->fallback.skcipher = in geode_init_skcipher()
[all …]
A Domap-sham.c305 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_copy_hash_omap4()
452 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_write_ctrl_omap4()
990 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_init()
1102 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_finish_hmac()
1327 if (IS_ERR(tctx->fallback)) { in omap_sham_cra_init_alg()
1330 return PTR_ERR(tctx->fallback); in omap_sham_cra_init_alg()
1338 tctx->flags |= BIT(FLAGS_HMAC); in omap_sham_cra_init_alg()
1344 crypto_free_shash(tctx->fallback); in omap_sham_cra_init_alg()
1392 crypto_free_shash(tctx->fallback); in omap_sham_cra_exit()
1393 tctx->fallback = NULL; in omap_sham_cra_exit()
[all …]
A Ds5p-sss.c1471 return s5p_hash_handle_queue(tctx->dd, req); in s5p_hash_enqueue()
1580 ctx->dd = tctx->dd; in s5p_hash_init()
1629 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm); in s5p_hash_cra_init_alg() local
1632 tctx->dd = s5p_dev; in s5p_hash_cra_init_alg()
1634 tctx->fallback = crypto_alloc_shash(alg_name, 0, in s5p_hash_cra_init_alg()
1636 if (IS_ERR(tctx->fallback)) { in s5p_hash_cra_init_alg()
1638 return PTR_ERR(tctx->fallback); in s5p_hash_cra_init_alg()
1664 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm); in s5p_hash_cra_exit() local
1666 crypto_free_shash(tctx->fallback); in s5p_hash_cra_exit()
1667 tctx->fallback = NULL; in s5p_hash_cra_exit()
[all …]
A Dimg-hash.c630 struct img_hash_ctx *tctx = crypto_ahash_ctx(tfm); in img_hash_digest() local
637 if (!tctx->hdev) { in img_hash_digest()
642 tctx->hdev = hdev; in img_hash_digest()
645 hdev = tctx->hdev; in img_hash_digest()
678 err = img_hash_handle_queue(tctx->hdev, req); in img_hash_digest()
723 struct img_hash_ctx *tctx = crypto_tfm_ctx(tfm); in img_hash_cra_exit() local
725 crypto_free_ahash(tctx->fallback); in img_hash_cra_exit()
A Datmel-sha.c411 if (!tctx->dd) { in atmel_sha_find_dev()
416 tctx->dd = dd; in atmel_sha_find_dev()
418 dd = tctx->dd; in atmel_sha_find_dev()
429 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm); in atmel_sha_init() local
431 struct atmel_sha_dev *dd = atmel_sha_find_dev(tctx); in atmel_sha_init()
1154 struct atmel_sha_dev *dd = tctx->dd; in atmel_sha_enqueue()
2172 struct atmel_sha_ctx *tctx; in atmel_sha_authenc_spawn() local
2206 tctx = crypto_ahash_ctx(tfm); in atmel_sha_authenc_spawn()
2207 tctx->start = atmel_sha_authenc_start; in atmel_sha_authenc_spawn()
2208 tctx->flags = mode; in atmel_sha_authenc_spawn()
[all …]
/drivers/crypto/intel/keembay/
A Dkeembay-ocs-aes-core.c125 if (tctx->aes_dev) { in kmb_ocs_aes_find_dev()
132 tctx->aes_dev = aes_dev; in kmb_ocs_aes_find_dev()
176 tctx->cipher = cipher; in save_key()
901 rc = ocs_aes_ccm_op(tctx->aes_dev, tctx->cipher, in kmb_ocs_aead_run()
910 rc = ocs_aes_gcm_op(tctx->aes_dev, tctx->cipher, in kmb_ocs_aead_run()
959 err = ocs_aes_set_key(tctx->aes_dev, tctx->key_len, tctx->key, in kmb_ocs_aes_sk_do_one_request()
980 if (!tctx->aes_dev) in kmb_ocs_aes_aead_do_one_request()
983 err = ocs_aes_set_key(tctx->aes_dev, tctx->key_len, tctx->key, in kmb_ocs_aes_aead_do_one_request()
1178 if (tctx->aes_dev) in clear_key()
1187 clear_key(tctx); in ocs_exit_tfm()
[all …]
A Dkeembay-ocs-ecc.c205 if (tctx->ecc_dev) in kmb_ocs_ecc_find_dev()
216 return tctx->ecc_dev; in kmb_ocs_ecc_find_dev()
554 rc = kmb_ecc_gen_privkey(tctx->curve, tctx->private_key); in kmb_ocs_ecdh_set_secret()
569 tctx->curve = NULL; in kmb_ocs_ecdh_set_secret()
676 rc = kmb_ecc_point_mult(tctx->ecc_dev, pk, &curve->g, tctx->private_key, in kmb_ecc_do_public_key()
729 if (!tctx->curve) in kmb_ocs_ecdh_generate_public_key()
754 if (!tctx->curve) in kmb_ocs_ecdh_compute_shared_secret()
778 memset(tctx, 0, sizeof(*tctx)); in kmb_ecc_tctx_init()
780 tctx->ecc_dev = kmb_ocs_ecc_find_dev(tctx); in kmb_ecc_tctx_init()
789 if (!tctx->curve) in kmb_ecc_tctx_init()
[all …]
A Dkeembay-ocs-hcu-core.c169 struct ocs_hcu_ctx *tctx = crypto_ahash_ctx(tfm); in kmb_ocs_hcu_find_dev() local
172 if (tctx->hcu_dev) in kmb_ocs_hcu_find_dev()
173 return tctx->hcu_dev; in kmb_ocs_hcu_find_dev()
180 tctx->hcu_dev = list_first_entry_or_null(&ocs_hcu.dev_list, in kmb_ocs_hcu_find_dev()
185 return tctx->hcu_dev; in kmb_ocs_hcu_find_dev()
424 struct ocs_hcu_ctx *tctx = crypto_ahash_ctx(tfm); in kmb_ocs_hcu_do_one_request() local
444 rc = ocs_hcu_hmac(hcu_dev, rctx->algo, tctx->key, tctx->key_len, in kmb_ocs_hcu_do_one_request()
540 WARN_ON(tctx->key_len != rctx->blk_sz); in kmb_ocs_hcu_do_one_request()
542 rctx->buffer[i] = tctx->key[i] ^ HMAC_OPAD_VALUE; in kmb_ocs_hcu_do_one_request()
/drivers/crypto/xilinx/
A Dzynqmp-sha.c89 struct zynqmp_sha_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in zynqmp_sha_init() local
90 struct crypto_shash *fbtfm = tctx->fbk_tfm; in zynqmp_sha_init()
101 struct zynqmp_sha_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in zynqmp_sha_update() local
102 struct crypto_shash *fbtfm = tctx->fbk_tfm; in zynqmp_sha_update()
114 struct zynqmp_sha_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in zynqmp_sha_finup() local
115 struct crypto_shash *fbtfm = tctx->fbk_tfm; in zynqmp_sha_finup()
/drivers/crypto/aspeed/
A Daspeed-hace-hash.c463 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_ahash_do_request() local
464 struct aspeed_hace_dev *hace_dev = tctx->hace_dev; in aspeed_ahash_do_request()
483 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_ahash_prepare_request() local
484 struct aspeed_hace_dev *hace_dev = tctx->hace_dev; in aspeed_ahash_prepare_request()
506 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_sham_update() local
507 struct aspeed_hace_dev *hace_dev = tctx->hace_dev; in aspeed_sham_update()
523 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_sham_finup() local
524 struct aspeed_hace_dev *hace_dev = tctx->hace_dev; in aspeed_sham_finup()
537 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_sham_init() local
538 struct aspeed_hace_dev *hace_dev = tctx->hace_dev; in aspeed_sham_init()
[all …]
/drivers/crypto/rockchip/
A Drk3288_crypto_ahash.c348 struct rk_ahash_ctx *tctx = crypto_ahash_ctx(tfm); in rk_hash_init_tfm() local
354 tctx->fallback_tfm = crypto_alloc_ahash(alg_name, 0, in rk_hash_init_tfm()
356 if (IS_ERR(tctx->fallback_tfm)) { in rk_hash_init_tfm()
358 return PTR_ERR(tctx->fallback_tfm); in rk_hash_init_tfm()
363 crypto_ahash_reqsize(tctx->fallback_tfm)); in rk_hash_init_tfm()
370 struct rk_ahash_ctx *tctx = crypto_ahash_ctx(tfm); in rk_hash_exit_tfm() local
372 crypto_free_ahash(tctx->fallback_tfm); in rk_hash_exit_tfm()
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_uvd.c581 struct ttm_operation_ctx tctx = { false, false }; in amdgpu_uvd_cs_pass1() local
605 r = ttm_bo_validate(&bo->tbo, &bo->placement, &tctx); in amdgpu_uvd_cs_pass1()

Completed in 53 milliseconds