Lines Matching refs:fallback
50 } fallback; member
58 struct crypto_skcipher *fallback; member
77 sctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_cip()
78 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip()
81 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip()
110 crypto_cipher_encrypt_one(sctx->fallback.cip, out, in); in crypto_aes_encrypt()
121 crypto_cipher_decrypt_one(sctx->fallback.cip, out, in); in crypto_aes_decrypt()
133 sctx->fallback.cip = crypto_alloc_cipher(name, 0, in fallback_init_cip()
136 if (IS_ERR(sctx->fallback.cip)) { in fallback_init_cip()
139 return PTR_ERR(sctx->fallback.cip); in fallback_init_cip()
149 crypto_free_cipher(sctx->fallback.cip); in fallback_exit_cip()
150 sctx->fallback.cip = NULL; in fallback_exit_cip()
180 crypto_skcipher_clear_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
182 crypto_skcipher_set_flags(sctx->fallback.skcipher, in setkey_fallback_skcipher()
185 return crypto_skcipher_setkey(sctx->fallback.skcipher, key, len); in setkey_fallback_skcipher()
195 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher); in fallback_skcipher_crypt()
259 sctx->fallback.skcipher = crypto_alloc_skcipher(name, 0, in fallback_init_skcipher()
262 if (IS_ERR(sctx->fallback.skcipher)) { in fallback_init_skcipher()
265 return PTR_ERR(sctx->fallback.skcipher); in fallback_init_skcipher()
269 crypto_skcipher_reqsize(sctx->fallback.skcipher)); in fallback_init_skcipher()
277 crypto_free_skcipher(sctx->fallback.skcipher); in fallback_exit_skcipher()
383 crypto_skcipher_clear_flags(xts_ctx->fallback, CRYPTO_TFM_REQ_MASK); in xts_fallback_setkey()
384 crypto_skcipher_set_flags(xts_ctx->fallback, in xts_fallback_setkey()
387 return crypto_skcipher_setkey(xts_ctx->fallback, key, len); in xts_fallback_setkey()
448 skcipher_request_set_tfm(subreq, xts_ctx->fallback); in xts_aes_crypt()
495 xts_ctx->fallback = crypto_alloc_skcipher(name, 0, in xts_fallback_init()
498 if (IS_ERR(xts_ctx->fallback)) { in xts_fallback_init()
501 return PTR_ERR(xts_ctx->fallback); in xts_fallback_init()
504 crypto_skcipher_reqsize(xts_ctx->fallback)); in xts_fallback_init()
512 crypto_free_skcipher(xts_ctx->fallback); in xts_fallback_exit()