/Linux-v4.19/crypto/ |
D | tgr192.c | 466 static void tgr192_transform(struct tgr192_ctx *tctx, const u8 * data) in tgr192_transform() argument 477 a = aa = tctx->a; in tgr192_transform() 478 b = bb = tctx->b; in tgr192_transform() 479 c = cc = tctx->c; in tgr192_transform() 493 tctx->a = a; in tgr192_transform() 494 tctx->b = b; in tgr192_transform() 495 tctx->c = c; in tgr192_transform() 500 struct tgr192_ctx *tctx = shash_desc_ctx(desc); in tgr192_init() local 502 tctx->a = 0x0123456789abcdefULL; in tgr192_init() 503 tctx->b = 0xfedcba9876543210ULL; in tgr192_init() [all …]
|
D | vmac.c | 398 static void vhash_blocks(const struct vmac_tfm_ctx *tctx, in vhash_blocks() argument 402 const u64 *kptr = tctx->nhkey; in vhash_blocks() 403 const u64 pkh = tctx->polykey[0]; in vhash_blocks() 404 const u64 pkl = tctx->polykey[1]; in vhash_blocks() 432 struct vmac_tfm_ctx *tctx = crypto_shash_ctx(tfm); in vmac_setkey() local 443 err = crypto_cipher_setkey(tctx->cipher, key, keylen); in vmac_setkey() 449 for (i = 0; i < ARRAY_SIZE(tctx->nhkey); i += 2) { in vmac_setkey() 450 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); in vmac_setkey() 451 tctx->nhkey[i] = be64_to_cpu(out[0]); in vmac_setkey() 452 tctx->nhkey[i+1] = be64_to_cpu(out[1]); in vmac_setkey() [all …]
|
D | xcbc.c | 99 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_update() local 101 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update() 145 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_final() local 147 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final() 149 u8 *consts = PTR_ALIGN(&tctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_final()
|
D | cmac.c | 127 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_update() local 129 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update() 173 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_final() local 175 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final() 177 u8 *consts = PTR_ALIGN((void *)tctx->ctx, in crypto_cmac_digest_final()
|
D | ccm.c | 884 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_update() local 886 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_update() 910 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_final() local 912 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_final()
|
/Linux-v4.19/drivers/crypto/rockchip/ |
D | rk3288_crypto_ahash.c | 169 struct rk_ahash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in rk_ahash_digest() local 170 struct rk_crypto_info *dev = tctx->dev; in rk_ahash_digest() 277 struct rk_ahash_ctx *tctx = crypto_tfm_ctx(tfm); in rk_cra_hash_init() local 285 tctx->dev = algt->dev; in rk_cra_hash_init() 286 tctx->dev->addr_vir = (void *)__get_free_page(GFP_KERNEL); in rk_cra_hash_init() 287 if (!tctx->dev->addr_vir) { in rk_cra_hash_init() 288 dev_err(tctx->dev->dev, "failed to kmalloc for addr_vir\n"); in rk_cra_hash_init() 291 tctx->dev->start = rk_ahash_start; in rk_cra_hash_init() 292 tctx->dev->update = rk_ahash_crypto_rx; in rk_cra_hash_init() 293 tctx->dev->complete = rk_ahash_crypto_complete; in rk_cra_hash_init() [all …]
|
/Linux-v4.19/drivers/crypto/mediatek/ |
D | mtk-sha.c | 156 static struct mtk_cryp *mtk_sha_find_dev(struct mtk_sha_ctx *tctx) in mtk_sha_find_dev() argument 162 if (!tctx->cryp) { in mtk_sha_find_dev() 167 tctx->cryp = cryp; in mtk_sha_find_dev() 169 cryp = tctx->cryp; in mtk_sha_find_dev() 176 tctx->id = cryp->rec; in mtk_sha_find_dev() 361 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in mtk_sha_finish_hmac() local 362 struct mtk_sha_hmac_ctx *bctx = tctx->base; in mtk_sha_finish_hmac() 379 struct mtk_sha_ctx *tctx = crypto_ahash_ctx(tfm); in mtk_sha_init() local 412 ctx->buffer = tctx->buf; in mtk_sha_init() 414 if (tctx->flags & SHA_FLAGS_HMAC) { in mtk_sha_init() [all …]
|
/Linux-v4.19/drivers/crypto/ |
D | omap-sham.c | 307 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_copy_hash_omap4() local 308 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_copy_hash_omap4() 469 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_write_ctrl_omap4() local 470 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_write_ctrl_omap4() 927 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_init() local 933 if (!tctx->dd) { in omap_sham_init() 938 tctx->dd = dd; in omap_sham_init() 940 dd = tctx->dd; in omap_sham_init() 984 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_init() 986 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_init() [all …]
|
D | s5p-sss.c | 1484 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in s5p_hash_enqueue() local 1488 return s5p_hash_handle_queue(tctx->dd, req); in s5p_hash_enqueue() 1542 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in s5p_hash_final_shash() local 1545 return s5p_hash_shash_digest(tctx->fallback, req->base.flags, in s5p_hash_final_shash() 1623 struct s5p_hash_ctx *tctx = crypto_ahash_ctx(tfm); in s5p_hash_init() local 1625 ctx->dd = tctx->dd; in s5p_hash_init() 1633 dev_dbg(tctx->dd->dev, "init: digest size: %d\n", in s5p_hash_init() 1674 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm); in s5p_hash_cra_init_alg() local 1677 tctx->dd = s5p_dev; in s5p_hash_cra_init_alg() 1679 tctx->fallback = crypto_alloc_shash(alg_name, 0, in s5p_hash_cra_init_alg() [all …]
|
D | img-hash.c | 622 struct img_hash_ctx *tctx = crypto_ahash_ctx(tfm); in img_hash_digest() local 629 if (!tctx->hdev) { in img_hash_digest() 634 tctx->hdev = hdev; in img_hash_digest() 637 hdev = tctx->hdev; in img_hash_digest() 670 err = img_hash_handle_queue(tctx->hdev, req); in img_hash_digest() 720 struct img_hash_ctx *tctx = crypto_tfm_ctx(tfm); in img_hash_cra_exit() local 722 crypto_free_ahash(tctx->fallback); in img_hash_cra_exit()
|
D | atmel-sha.c | 407 static struct atmel_sha_dev *atmel_sha_find_dev(struct atmel_sha_ctx *tctx) in atmel_sha_find_dev() argument 413 if (!tctx->dd) { in atmel_sha_find_dev() 418 tctx->dd = dd; in atmel_sha_find_dev() 420 dd = tctx->dd; in atmel_sha_find_dev() 431 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm); in atmel_sha_init() local 433 struct atmel_sha_dev *dd = atmel_sha_find_dev(tctx); in atmel_sha_init() 1153 struct atmel_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in atmel_sha_enqueue() local 1154 struct atmel_sha_dev *dd = tctx->dd; in atmel_sha_enqueue() 2290 struct atmel_sha_ctx *tctx; in atmel_sha_authenc_spawn() local 2324 tctx = crypto_ahash_ctx(tfm); in atmel_sha_authenc_spawn() [all …]
|
/Linux-v4.19/arch/arm64/crypto/ |
D | aes-glue.c | 498 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in mac_update() local 511 mac_do_update(&tctx->key, p, blocks, ctx->dg, in mac_update() 538 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in cbcmac_final() local 541 mac_do_update(&tctx->key, NULL, 0, ctx->dg, 1, 0); in cbcmac_final() 550 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in cmac_final() local 552 u8 *consts = tctx->consts; in cmac_final() 559 mac_do_update(&tctx->key, consts, 1, ctx->dg, 0, 1); in cmac_final()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_uvd.c | 477 struct ttm_operation_ctx tctx = { false, false }; in amdgpu_uvd_cs_pass1() local 500 r = ttm_bo_validate(&bo->tbo, &bo->placement, &tctx); in amdgpu_uvd_cs_pass1()
|