Lines Matching refs:fallback
127 * The requested key size is not supported by HW, do a fallback
129 tctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK;
130 tctx->fallback.cip->base.crt_flags |=
133 return crypto_cipher_setkey(tctx->fallback.cip, key, len);
153 * The requested key size is not supported by HW, do a fallback
155 crypto_skcipher_clear_flags(tctx->fallback.skcipher,
157 crypto_skcipher_set_flags(tctx->fallback.skcipher,
160 return crypto_skcipher_setkey(tctx->fallback.skcipher, key, len);
169 crypto_cipher_encrypt_one(tctx->fallback.cip, out, in);
184 crypto_cipher_decrypt_one(tctx->fallback.cip, out, in);
197 tctx->fallback.cip = crypto_alloc_cipher(name, 0,
200 if (IS_ERR(tctx->fallback.cip)) {
201 printk(KERN_ERR "Error allocating fallback algo %s\n", name);
202 return PTR_ERR(tctx->fallback.cip);
212 crypto_free_cipher(tctx->fallback.cip);
243 tctx->fallback.skcipher =
246 if (IS_ERR(tctx->fallback.skcipher)) {
247 printk(KERN_ERR "Error allocating fallback algo %s\n", name);
248 return PTR_ERR(tctx->fallback.skcipher);
252 crypto_skcipher_reqsize(tctx->fallback.skcipher));
260 crypto_free_skcipher(tctx->fallback.skcipher);
275 skcipher_request_set_tfm(subreq, tctx->fallback.skcipher);