Lines Matching refs:fallback

822 	crypto_free_sync_skcipher(ctx->fallback.skcipher);  in sa_cipher_cra_exit()
844 ctx->fallback.skcipher = in sa_cipher_cra_init()
847 if (IS_ERR(ctx->fallback.skcipher)) { in sa_cipher_cra_init()
849 return PTR_ERR(ctx->fallback.skcipher); in sa_cipher_cra_init()
877 crypto_sync_skcipher_clear_flags(ctx->fallback.skcipher, in sa_cipher_setkey()
879 crypto_sync_skcipher_set_flags(ctx->fallback.skcipher, in sa_cipher_setkey()
882 ret = crypto_sync_skcipher_setkey(ctx->fallback.skcipher, key, keylen); in sa_cipher_setkey()
1285 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->fallback.skcipher); in sa_cipher_run()
1287 skcipher_request_set_sync_tfm(subreq, ctx->fallback.skcipher); in sa_cipher_run()
1393 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run()
1485 ctx->fallback.ahash = in sa_sha_cra_init_alg()
1488 if (IS_ERR(ctx->fallback.ahash)) { in sa_sha_cra_init_alg()
1491 return PTR_ERR(ctx->fallback.ahash); in sa_sha_cra_init_alg()
1501 crypto_ahash_reqsize(ctx->fallback.ahash)); in sa_sha_cra_init_alg()
1520 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1533 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update()
1548 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final()
1562 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_finup()
1579 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_import()
1593 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_export()
1660 crypto_free_ahash(ctx->fallback.ahash); in sa_sha_cra_exit()
1707 const char *fallback) in sa_cra_init_aead() argument
1721 ctx->fallback.aead = crypto_alloc_aead(fallback, 0, in sa_cra_init_aead()
1724 if (IS_ERR(ctx->fallback.aead)) { in sa_cra_init_aead()
1726 fallback); in sa_cra_init_aead()
1727 return PTR_ERR(ctx->fallback.aead); in sa_cra_init_aead()
1731 crypto_aead_reqsize(ctx->fallback.aead)); in sa_cra_init_aead()
1768 crypto_free_aead(ctx->fallback.aead); in sa_exit_tfm_aead()
1843 crypto_aead_clear_flags(ctx->fallback.aead, CRYPTO_TFM_REQ_MASK); in sa_aead_setkey()
1844 crypto_aead_set_flags(ctx->fallback.aead, in sa_aead_setkey()
1847 crypto_aead_setkey(ctx->fallback.aead, key, keylen); in sa_aead_setkey()
1856 return crypto_aead_setauthsize(ctx->fallback.aead, authsize); in sa_aead_setauthsize()
1906 aead_request_set_tfm(subreq, ctx->fallback.aead); in sa_aead_run()