Home
last modified time | relevance | path

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

/drivers/crypto/vmx/
Dghash.c47 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_init() local
49 dctx->bytes = 0; in p8_ghash_init()
50 memset(dctx->shash, 0, GHASH_DIGEST_SIZE); in p8_ghash_init()
76 struct p8_ghash_desc_ctx *dctx) in __ghash_block() argument
82 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_block()
83 dctx->buffer, GHASH_DIGEST_SIZE); in __ghash_block()
88 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); in __ghash_block()
89 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_block()
94 struct p8_ghash_desc_ctx *dctx, in __ghash_blocks() argument
101 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_blocks()
[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 …]