Lines Matching refs:fallback
25 struct shash_desc fallback; member
29 struct crypto_shash *fallback; member
37 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
38 return crypto_shash_init(&dctx->fallback); in padlock_sha_init()
46 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
53 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
61 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
62 return crypto_shash_import(&dctx->fallback, in); in padlock_sha_import()
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()
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()
209 ctx->fallback = fallback_tfm; in padlock_init_tfm()
218 crypto_free_shash(ctx->fallback); in padlock_exit_tfm()