Lines Matching full:fallback
22 struct crypto_cipher *fallback; member
30 struct crypto_cipher *fallback; in p8_aes_init() local
33 fallback = crypto_alloc_cipher(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in p8_aes_init()
34 if (IS_ERR(fallback)) { in p8_aes_init()
37 alg, PTR_ERR(fallback)); in p8_aes_init()
38 return PTR_ERR(fallback); in p8_aes_init()
41 crypto_cipher_set_flags(fallback, in p8_aes_init()
45 ctx->fallback = fallback; in p8_aes_init()
54 if (ctx->fallback) { in p8_aes_exit()
55 crypto_free_cipher(ctx->fallback); in p8_aes_exit()
56 ctx->fallback = NULL; in p8_aes_exit()
75 ret |= crypto_cipher_setkey(ctx->fallback, key, keylen); in p8_aes_setkey()
85 crypto_cipher_encrypt_one(ctx->fallback, dst, src); in p8_aes_encrypt()
102 crypto_cipher_decrypt_one(ctx->fallback, dst, src); in p8_aes_decrypt()