Lines Matching refs:fallback
126 * The requested key size is not supported by HW, do a fallback
128 tctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK;
129 tctx->fallback.cip->base.crt_flags |=
132 return crypto_cipher_setkey(tctx->fallback.cip, key, len);
152 * The requested key size is not supported by HW, do a fallback
154 crypto_skcipher_clear_flags(tctx->fallback.skcipher,
156 crypto_skcipher_set_flags(tctx->fallback.skcipher,
159 return crypto_skcipher_setkey(tctx->fallback.skcipher, key, len);
168 crypto_cipher_encrypt_one(tctx->fallback.cip, out, in);
183 crypto_cipher_decrypt_one(tctx->fallback.cip, out, in);
196 tctx->fallback.cip = crypto_alloc_cipher(name, 0,
199 if (IS_ERR(tctx->fallback.cip)) {
200 printk(KERN_ERR "Error allocating fallback algo %s\n", name);
201 return PTR_ERR(tctx->fallback.cip);
211 crypto_free_cipher(tctx->fallback.cip);
242 tctx->fallback.skcipher =
245 if (IS_ERR(tctx->fallback.skcipher)) {
246 printk(KERN_ERR "Error allocating fallback algo %s\n", name);
247 return PTR_ERR(tctx->fallback.skcipher);
251 crypto_skcipher_reqsize(tctx->fallback.skcipher));
259 crypto_free_skcipher(tctx->fallback.skcipher);
274 skcipher_request_set_tfm(subreq, tctx->fallback.skcipher);