Lines Matching defs:fallback

49 	} fallback;
57 struct crypto_skcipher *fallback;
76 sctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK;
77 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags &
80 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len);
109 crypto_cipher_encrypt_one(sctx->fallback.cip, out, in);
120 crypto_cipher_decrypt_one(sctx->fallback.cip, out, in);
132 sctx->fallback.cip = crypto_alloc_cipher(name, 0,
135 if (IS_ERR(sctx->fallback.cip)) {
136 pr_err("Allocating AES fallback algorithm %s failed\n",
138 return PTR_ERR(sctx->fallback.cip);
148 crypto_free_cipher(sctx->fallback.cip);
149 sctx->fallback.cip = NULL;
179 crypto_skcipher_clear_flags(sctx->fallback.skcipher,
181 crypto_skcipher_set_flags(sctx->fallback.skcipher,
184 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len);
194 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher);
258 sctx->fallback.skcipher = crypto_alloc_skcipher(name, 0,
261 if (IS_ERR(sctx->fallback.skcipher)) {
262 pr_err("Allocating AES fallback algorithm %s failed\n",
264 return PTR_ERR(sctx->fallback.skcipher);
268 crypto_skcipher_reqsize(sctx->fallback.skcipher));
276 crypto_free_skcipher(sctx->fallback.skcipher);
382 crypto_skcipher_clear_flags(xts_ctx->fallback, CRYPTO_TFM_REQ_MASK);
383 crypto_skcipher_set_flags(xts_ctx->fallback,
386 return crypto_skcipher_setkey(xts_ctx->fallback, key, len);
447 skcipher_request_set_tfm(subreq, xts_ctx->fallback);
494 xts_ctx->fallback = crypto_alloc_skcipher(name, 0,
497 if (IS_ERR(xts_ctx->fallback)) {
498 pr_err("Allocating XTS fallback algorithm %s failed\n",
500 return PTR_ERR(xts_ctx->fallback);
503 crypto_skcipher_reqsize(xts_ctx->fallback));
511 crypto_free_skcipher(xts_ctx->fallback);