Lines Matching refs:dctx

33 	struct padlock_sha_desc *dctx = shash_desc_ctx(desc);  in padlock_sha_init()  local
36 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
37 return crypto_shash_init(&dctx->fallback); in padlock_sha_init()
43 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_update() local
45 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
50 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_export() local
52 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
57 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_import() local
60 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
61 return crypto_shash_import(&dctx->fallback, in); in padlock_sha_import()
80 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha1_finup() local
86 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
91 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha1_finup()
97 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha1_finup()
98 crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
141 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha256_finup() local
147 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha256_finup()
152 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha256_finup()
158 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha256_finup()
159 crypto_shash_export(&dctx->fallback, &state); in padlock_sha256_finup()