Lines Matching refs:fallback
35 struct crypto_skcipher *fallback; member
43 struct crypto_skcipher *fallback; in p8_aes_cbc_init() local
46 fallback = crypto_alloc_skcipher(alg, 0, in p8_aes_cbc_init()
49 if (IS_ERR(fallback)) { in p8_aes_cbc_init()
52 alg, PTR_ERR(fallback)); in p8_aes_cbc_init()
53 return PTR_ERR(fallback); in p8_aes_cbc_init()
57 fallback, in p8_aes_cbc_init()
59 ctx->fallback = fallback; in p8_aes_cbc_init()
68 if (ctx->fallback) { in p8_aes_cbc_exit()
69 crypto_free_skcipher(ctx->fallback); in p8_aes_cbc_exit()
70 ctx->fallback = NULL; in p8_aes_cbc_exit()
89 ret += crypto_skcipher_setkey(ctx->fallback, key, keylen); in p8_aes_cbc_setkey()
103 SKCIPHER_REQUEST_ON_STACK(req, ctx->fallback); in p8_aes_cbc_encrypt()
104 skcipher_request_set_tfm(req, ctx->fallback); in p8_aes_cbc_encrypt()
142 SKCIPHER_REQUEST_ON_STACK(req, ctx->fallback); in p8_aes_cbc_decrypt()
143 skcipher_request_set_tfm(req, ctx->fallback); in p8_aes_cbc_decrypt()