Lines Matching refs: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()
211 ctx->fallback = fallback_tfm; in padlock_cra_init()
223 crypto_free_shash(ctx->fallback); in padlock_cra_exit()