Lines Matching refs:fallback

29 	struct shash_desc fallback;  member
33 struct crypto_shash *fallback; member
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()
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()
59 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
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()
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()
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()
229 ctx->fallback = fallback_tfm; in padlock_cra_init()
241 crypto_free_shash(ctx->fallback); in padlock_cra_exit()