Home
last modified time | relevance | path

Searched refs:dctx (Results 1 – 3 of 3) sorted by relevance

/drivers/crypto/vmx/
Dghash.c48 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_init() local
50 dctx->bytes = 0; in p8_ghash_init()
51 memset(dctx->shash, 0, GHASH_DIGEST_SIZE); in p8_ghash_init()
77 struct p8_ghash_desc_ctx *dctx) in __ghash_block() argument
83 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_block()
84 dctx->buffer, GHASH_DIGEST_SIZE); in __ghash_block()
89 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); in __ghash_block()
90 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_block()
95 struct p8_ghash_desc_ctx *dctx, in __ghash_blocks() argument
102 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_blocks()
[all …]
/drivers/crypto/xilinx/
Dzynqmp-sha.c83 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_init() local
86 dctx->fbk_req.tfm = tctx->fbk_tfm; in zynqmp_sha_init()
87 return crypto_shash_init(&dctx->fbk_req); in zynqmp_sha_init()
92 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_update() local
94 return crypto_shash_update(&dctx->fbk_req, data, length); in zynqmp_sha_update()
99 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_final() local
101 return crypto_shash_final(&dctx->fbk_req, out); in zynqmp_sha_final()
106 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_finup() local
108 return crypto_shash_finup(&dctx->fbk_req, data, length, out); in zynqmp_sha_finup()
113 struct zynqmp_sha_desc_ctx *dctx = shash_desc_ctx(desc); in zynqmp_sha_import() local
[all …]
/drivers/crypto/
Dpadlock-sha.c34 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_init() local
37 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
38 return crypto_shash_init(&dctx->fallback); in padlock_sha_init()
44 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_update() local
46 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
51 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_export() local
53 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
58 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_import() local
61 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
62 return crypto_shash_import(&dctx->fallback, in); in padlock_sha_import()
[all …]