Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/crypto/
H A Dtgr192.c462 static void tgr192_transform(struct tgr192_ctx *tctx, const u8 * data) in tgr192_transform() argument
472 a = aa = tctx->a; in tgr192_transform()
473 b = bb = tctx->b; in tgr192_transform()
474 c = cc = tctx->c; in tgr192_transform()
488 tctx->a = a; in tgr192_transform()
489 tctx->b = b; in tgr192_transform()
490 tctx->c = c; in tgr192_transform()
495 struct tgr192_ctx *tctx = shash_desc_ctx(desc); in tgr192_init() local
497 tctx->a = 0x0123456789abcdefULL; in tgr192_init()
498 tctx->b = 0xfedcba9876543210ULL; in tgr192_init()
[all …]
H A Dessiv.c69 struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in essiv_skcipher_setkey() local
73 crypto_skcipher_clear_flags(tctx->u.skcipher, CRYPTO_TFM_REQ_MASK); in essiv_skcipher_setkey()
74 crypto_skcipher_set_flags(tctx->u.skcipher, in essiv_skcipher_setkey()
77 err = crypto_skcipher_setkey(tctx->u.skcipher, key, keylen); in essiv_skcipher_setkey()
81 err = crypto_shash_tfm_digest(tctx->hash, key, keylen, salt); in essiv_skcipher_setkey()
85 crypto_cipher_clear_flags(tctx->essiv_cipher, CRYPTO_TFM_REQ_MASK); in essiv_skcipher_setkey()
86 crypto_cipher_set_flags(tctx->essiv_cipher, in essiv_skcipher_setkey()
89 return crypto_cipher_setkey(tctx->essiv_cipher, salt, in essiv_skcipher_setkey()
90 crypto_shash_digestsize(tctx->hash)); in essiv_skcipher_setkey()
96 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_setkey() local
[all …]
H A Dadiantum.c120 struct adiantum_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in adiantum_setkey() local
132 crypto_skcipher_clear_flags(tctx->streamcipher, CRYPTO_TFM_REQ_MASK); in adiantum_setkey()
133 crypto_skcipher_set_flags(tctx->streamcipher, in adiantum_setkey()
136 err = crypto_skcipher_setkey(tctx->streamcipher, key, keylen); in adiantum_setkey()
142 crypto_skcipher_reqsize(tctx->streamcipher), GFP_KERNEL); in adiantum_setkey()
148 skcipher_request_set_tfm(&data->req, tctx->streamcipher); in adiantum_setkey()
160 crypto_cipher_clear_flags(tctx->blockcipher, CRYPTO_TFM_REQ_MASK); in adiantum_setkey()
161 crypto_cipher_set_flags(tctx->blockcipher, in adiantum_setkey()
164 err = crypto_cipher_setkey(tctx->blockcipher, keyp, in adiantum_setkey()
171 poly1305_core_setkey(&tctx->header_hash_key, keyp); in adiantum_setkey()
[all …]
H A Dvmac.c399 static void vhash_blocks(const struct vmac_tfm_ctx *tctx, in vhash_blocks() argument
403 const u64 *kptr = tctx->nhkey; in vhash_blocks()
404 const u64 pkh = tctx->polykey[0]; in vhash_blocks()
405 const u64 pkl = tctx->polykey[1]; in vhash_blocks()
433 struct vmac_tfm_ctx *tctx = crypto_shash_ctx(tfm); in vmac_setkey() local
442 err = crypto_cipher_setkey(tctx->cipher, key, keylen); in vmac_setkey()
448 for (i = 0; i < ARRAY_SIZE(tctx->nhkey); i += 2) { in vmac_setkey()
449 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); in vmac_setkey()
450 tctx->nhkey[i] = be64_to_cpu(out[0]); in vmac_setkey()
451 tctx->nhkey[i+1] = be64_to_cpu(out[1]); in vmac_setkey()
[all …]
H A Dxxhash_generic.c23 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(tfm); in xxhash64_setkey() local
25 if (keylen != sizeof(tctx->seed)) in xxhash64_setkey()
27 tctx->seed = get_unaligned_le64(key); in xxhash64_setkey()
33 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in xxhash64_init() local
36 xxh64_reset(&dctx->xxhstate, tctx->seed); in xxhash64_init()
63 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in xxhash64_digest() local
65 put_unaligned_le64(xxh64(data, length, tctx->seed), out); in xxhash64_digest()
H A Dxcbc.c90 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_update() local
92 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update()
136 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_final() local
138 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final()
140 u8 *consts = PTR_ALIGN(&tctx->ctx[0], alignmask + 1); in crypto_xcbc_digest_final()
H A Dcmac.c123 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_update() local
125 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update()
169 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_final() local
171 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final()
173 u8 *consts = PTR_ALIGN((void *)tctx->ctx, in crypto_cmac_digest_final()
H A Dccm.c802 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_update() local
804 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_update()
828 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_final() local
830 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_final()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-connectivity/samba/samba/
H A Dsamba-4.3.9-remove-getpwent_r.patch20 @@ -247,7 +247,6 @@ static bool test_getgrnam_r(struct torture_context *tctx,
25 static bool test_getgrgid(struct torture_context *tctx,
28 @@ -333,6 +332,7 @@ static bool test_enum_passwd(struct torture_context *tctx,
33 static bool test_enum_r_passwd(struct torture_context *tctx,
36 @@ -381,6 +381,7 @@ static bool test_enum_r_passwd(struct torture_context *tctx,
42 static bool torture_assert_passwd_equal(struct torture_context *tctx,
44 @@ -432,7 +433,7 @@ static bool test_passwd_r(struct torture_context *tctx)
48 - torture_assert(tctx, test_enum_r_passwd(tctx, &pwd, &num_pwd),
49 + torture_assert(tctx, test_enum_passwd(tctx, &pwd, &num_pwd),
53 @@ -460,7 +461,7 @@ static bool test_passwd_r_cross(struct torture_context *tctx)
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/
H A Dgeode-aes.c70 geode_aes_crypt(const struct geode_aes_tfm_ctx *tctx, const void *src, in geode_aes_crypt() argument
97 _writefield(AES_WRITEKEY0_REG, tctx->key); in geode_aes_crypt()
113 struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in geode_setkey_cip() local
115 tctx->keylen = len; in geode_setkey_cip()
118 memcpy(tctx->key, key, len); in geode_setkey_cip()
129 tctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in geode_setkey_cip()
130 tctx->fallback.cip->base.crt_flags |= in geode_setkey_cip()
133 return crypto_cipher_setkey(tctx->fallback.cip, key, len); in geode_setkey_cip()
139 struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in geode_setkey_skcipher() local
141 tctx->keylen = len; in geode_setkey_skcipher()
[all …]
H A Domap-sham.c309 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_copy_hash_omap4() local
310 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_copy_hash_omap4()
474 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_write_ctrl_omap4() local
475 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_write_ctrl_omap4()
964 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_init() local
1013 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_init()
1015 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_init()
1117 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_finish_hmac() local
1118 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_finish_hmac()
1233 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_final_shash() local
[all …]
H A Ds5p-sss.c1491 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in s5p_hash_enqueue() local
1495 return s5p_hash_handle_queue(tctx->dd, req); in s5p_hash_enqueue()
1556 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in s5p_hash_final() local
1558 return crypto_shash_tfm_digest(tctx->fallback, ctx->buffer, in s5p_hash_final()
1602 struct s5p_hash_ctx *tctx = crypto_ahash_ctx(tfm); in s5p_hash_init() local
1604 ctx->dd = tctx->dd; in s5p_hash_init()
1612 dev_dbg(tctx->dd->dev, "init: digest size: %d\n", in s5p_hash_init()
1653 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm); in s5p_hash_cra_init_alg() local
1656 tctx->dd = s5p_dev; in s5p_hash_cra_init_alg()
1658 tctx->fallback = crypto_alloc_shash(alg_name, 0, in s5p_hash_cra_init_alg()
[all …]
H A Dimg-hash.c620 struct img_hash_ctx *tctx = crypto_ahash_ctx(tfm); in img_hash_digest() local
627 if (!tctx->hdev) { in img_hash_digest()
632 tctx->hdev = hdev; in img_hash_digest()
635 hdev = tctx->hdev; in img_hash_digest()
668 err = img_hash_handle_queue(tctx->hdev, req); in img_hash_digest()
718 struct img_hash_ctx *tctx = crypto_tfm_ctx(tfm); in img_hash_cra_exit() local
720 crypto_free_ahash(tctx->fallback); in img_hash_cra_exit()
H A Datmel-sha.c404 static struct atmel_sha_dev *atmel_sha_find_dev(struct atmel_sha_ctx *tctx) in atmel_sha_find_dev() argument
410 if (!tctx->dd) { in atmel_sha_find_dev()
415 tctx->dd = dd; in atmel_sha_find_dev()
417 dd = tctx->dd; in atmel_sha_find_dev()
428 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm); in atmel_sha_init() local
430 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()
2146 struct atmel_sha_ctx *tctx; in atmel_sha_authenc_spawn() local
2180 tctx = crypto_ahash_ctx(tfm); in atmel_sha_authenc_spawn()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c167 struct rk_ahash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in rk_ahash_digest() local
168 struct rk_crypto_info *dev = tctx->dev; in rk_ahash_digest()
275 struct rk_ahash_ctx *tctx = crypto_tfm_ctx(tfm); in rk_cra_hash_init() local
283 tctx->dev = algt->dev; in rk_cra_hash_init()
284 tctx->dev->addr_vir = (void *)__get_free_page(GFP_KERNEL); in rk_cra_hash_init()
285 if (!tctx->dev->addr_vir) { in rk_cra_hash_init()
286 dev_err(tctx->dev->dev, "failed to kmalloc for addr_vir\n"); in rk_cra_hash_init()
289 tctx->dev->start = rk_ahash_start; in rk_cra_hash_init()
290 tctx->dev->update = rk_ahash_crypto_rx; in rk_cra_hash_init()
291 tctx->dev->complete = rk_ahash_crypto_complete; in rk_cra_hash_init()
[all …]
H A Drk_crypto_v1_ahash.c215 struct rk_ahash_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in rk_ahash_digest() local
216 struct rk_crypto_dev *rk_dev = tctx->rk_dev; in rk_ahash_digest()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/tsp/
H A Drockchip_tsp.c79 struct tsp_ctx *tctx);
709 static int rockchip_demux_alloc(struct tsp_dev *dev, struct tsp_ctx *tctx) in rockchip_demux_alloc() argument
714 tctx->base = dma_alloc_writecombine(dev->dev, tctx->buf_len, in rockchip_demux_alloc()
715 &tctx->dma_buf, GFP_KERNEL); in rockchip_demux_alloc()
716 if (tctx->base) { in rockchip_demux_alloc()
717 memset(tctx->base, 0, tctx->buf_len); in rockchip_demux_alloc()
722 if (!tctx->base) { in rockchip_demux_alloc()
726 tctx->top = tctx->base + tctx->buf_len; in rockchip_demux_alloc()
727 tctx->write = tctx->base; in rockchip_demux_alloc()
728 tctx->read = tctx->base; in rockchip_demux_alloc()
[all …]
/OK3568_Linux_fs/kernel/include/crypto/internal/
H A Dblake2b.h75 struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(tfm); in crypto_blake2b_setkey() local
80 memcpy(tctx->key, key, keylen); in crypto_blake2b_setkey()
81 tctx->keylen = keylen; in crypto_blake2b_setkey()
88 const struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in crypto_blake2b_init() local
92 __blake2b_init(state, outlen, tctx->key, tctx->keylen); in crypto_blake2b_init()
H A Dblake2s.h89 struct blake2s_tfm_ctx *tctx = crypto_shash_ctx(tfm); in crypto_blake2s_setkey() local
94 memcpy(tctx->key, key, keylen); in crypto_blake2s_setkey()
95 tctx->keylen = keylen; in crypto_blake2s_setkey()
102 const struct blake2s_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in crypto_blake2s_init() local
106 __blake2s_init(state, outlen, tctx->key, tctx->keylen); in crypto_blake2s_init()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/esa/common/
H A Dhmac_md5.c55 Mrvl_MD5_CTX tctx; in Mrvl_hmac_md5() local
57 wpa_MD5Init(&tctx); in Mrvl_hmac_md5()
58 wpa_MD5Update((void *)priv, &tctx, key, key_len); in Mrvl_hmac_md5()
59 wpa_MD5Final((void *)priv, context->buffer, &tctx); in Mrvl_hmac_md5()
/OK3568_Linux_fs/kernel/drivers/crypto/mediatek/
H A Dmtk-sha.c153 static struct mtk_cryp *mtk_sha_find_dev(struct mtk_sha_ctx *tctx) in mtk_sha_find_dev() argument
159 if (!tctx->cryp) { in mtk_sha_find_dev()
164 tctx->cryp = cryp; in mtk_sha_find_dev()
166 cryp = tctx->cryp; in mtk_sha_find_dev()
173 tctx->id = cryp->rec; in mtk_sha_find_dev()
358 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in mtk_sha_finish_hmac() local
359 struct mtk_sha_hmac_ctx *bctx = tctx->base; in mtk_sha_finish_hmac()
375 struct mtk_sha_ctx *tctx = crypto_ahash_ctx(tfm); in mtk_sha_init() local
408 ctx->buffer = tctx->buf; in mtk_sha_init()
410 if (tctx->flags & SHA_FLAGS_HMAC) { in mtk_sha_init()
[all …]
/OK3568_Linux_fs/kernel/io_uring/
H A Dio_uring.c1480 struct io_uring_task *tctx = req->task->io_uring; in io_queue_async_work() local
1485 BUG_ON(!tctx); in io_queue_async_work()
1486 BUG_ON(!tctx->io_wq); in io_queue_async_work()
1503 io_wq_enqueue(tctx->io_wq, &req->work); in io_queue_async_work()
1729 struct io_uring_task *tctx = task->io_uring; in io_put_task() local
1732 tctx->cached_refs += nr; in io_put_task()
1734 percpu_counter_sub(&tctx->inflight, nr); in io_put_task()
1735 if (unlikely(atomic_read(&tctx->in_idle))) in io_put_task()
1736 wake_up(&tctx->wait); in io_put_task()
1741 static void io_task_refs_refill(struct io_uring_task *tctx) in io_task_refs_refill() argument
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/crypto/
H A Daes-glue.c837 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in mac_update() local
850 mac_do_update(&tctx->key, p, blocks, ctx->dg, in mac_update()
877 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in cbcmac_final() local
880 mac_do_update(&tctx->key, NULL, 0, ctx->dg, (ctx->len != 0), 0); in cbcmac_final()
889 struct mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in cmac_final() local
891 u8 *consts = tctx->consts; in cmac_final()
898 mac_do_update(&tctx->key, consts, 1, ctx->dg, 0, 1); in cmac_final()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_uvd.c516 struct ttm_operation_ctx tctx = { false, false }; in amdgpu_uvd_cs_pass1() local
539 r = ttm_bo_validate(&bo->tbo, &bo->placement, &tctx); in amdgpu_uvd_cs_pass1()