Lines Matching refs:dctx

34 	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()
81 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha1_finup() local
87 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
92 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha1_finup()
98 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha1_finup()
99 crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
142 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha256_finup() local
148 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha256_finup()
153 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha256_finup()
159 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha256_finup()
160 crypto_shash_export(&dctx->fallback, &state); in padlock_sha256_finup()