• Home
  • Raw
  • Download

Lines Matching refs:dctx

38 	struct padlock_sha_desc *dctx = shash_desc_ctx(desc);  in padlock_sha_init()  local
41 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
42 dctx->fallback.flags = desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in padlock_sha_init()
43 return crypto_shash_init(&dctx->fallback); in padlock_sha_init()
49 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_update() local
51 dctx->fallback.flags = desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in padlock_sha_update()
52 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
57 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_export() local
59 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
64 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_import() local
67 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
68 dctx->fallback.flags = desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in padlock_sha_import()
69 return crypto_shash_import(&dctx->fallback, in); in padlock_sha_import()
88 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha1_finup() local
95 dctx->fallback.flags = desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in padlock_sha1_finup()
96 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
101 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha1_finup()
107 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha1_finup()
108 crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
154 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha256_finup() local
161 dctx->fallback.flags = desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in padlock_sha256_finup()
162 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha256_finup()
167 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha256_finup()
173 err = crypto_shash_update(&dctx->fallback, in, space) ?: in padlock_sha256_finup()
174 crypto_shash_export(&dctx->fallback, &state); in padlock_sha256_finup()