Lines Matching full:fallback
24 struct shash_desc fallback; member
28 struct crypto_shash *fallback; member
36 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
37 return crypto_shash_init(&dctx->fallback); in padlock_sha_init()
45 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
52 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
60 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
61 return crypto_shash_import(&dctx->fallback, in); in padlock_sha_import()
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()
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()
199 /* Allocate a fallback and abort if it failed. */ in padlock_init_tfm()
203 printk(KERN_WARNING PFX "Fallback driver '%s' could not be loaded!\n", in padlock_init_tfm()
208 ctx->fallback = fallback_tfm; in padlock_init_tfm()
217 crypto_free_shash(ctx->fallback); in padlock_exit_tfm()