Lines Matching defs:fallback
50 } fallback;
58 struct crypto_skcipher *fallback;
77 sctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK;
78 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags &
81 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len);
110 crypto_cipher_encrypt_one(sctx->fallback.cip, out, in);
121 crypto_cipher_decrypt_one(sctx->fallback.cip, out, in);
133 sctx->fallback.cip = crypto_alloc_cipher(name, 0,
136 if (IS_ERR(sctx->fallback.cip)) {
137 pr_err("Allocating AES fallback algorithm %s failed\n",
139 return PTR_ERR(sctx->fallback.cip);
149 crypto_free_cipher(sctx->fallback.cip);
150 sctx->fallback.cip = NULL;
180 crypto_skcipher_clear_flags(sctx->fallback.skcipher,
182 crypto_skcipher_set_flags(sctx->fallback.skcipher,
185 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len);
195 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher);
259 sctx->fallback.skcipher = crypto_alloc_skcipher(name, 0,
262 if (IS_ERR(sctx->fallback.skcipher)) {
263 pr_err("Allocating AES fallback algorithm %s failed\n",
265 return PTR_ERR(sctx->fallback.skcipher);
269 crypto_skcipher_reqsize(sctx->fallback.skcipher));
277 crypto_free_skcipher(sctx->fallback.skcipher);
383 crypto_skcipher_clear_flags(xts_ctx->fallback, CRYPTO_TFM_REQ_MASK);
384 crypto_skcipher_set_flags(xts_ctx->fallback,
387 return crypto_skcipher_setkey(xts_ctx->fallback, key, len);
444 skcipher_request_set_tfm(subreq, xts_ctx->fallback);
491 xts_ctx->fallback = crypto_alloc_skcipher(name, 0,
494 if (IS_ERR(xts_ctx->fallback)) {
495 pr_err("Allocating XTS fallback algorithm %s failed\n",
497 return PTR_ERR(xts_ctx->fallback);
500 crypto_skcipher_reqsize(xts_ctx->fallback));
508 crypto_free_skcipher(xts_ctx->fallback);