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()
1289 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->fallback.skcipher); in sa_cipher_run()
1291 skcipher_request_set_sync_tfm(subreq, ctx->fallback.skcipher); in sa_cipher_run()
1397 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run()
1489 ctx->fallback.ahash = in sa_sha_cra_init_alg()
1492 if (IS_ERR(ctx->fallback.ahash)) { in sa_sha_cra_init_alg()
1495 return PTR_ERR(ctx->fallback.ahash); in sa_sha_cra_init_alg()
1505 crypto_ahash_reqsize(ctx->fallback.ahash)); in sa_sha_cra_init_alg()
1524 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1537 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update()
1552 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final()
1566 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_finup()
1583 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_import()
1597 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_export()
1664 crypto_free_ahash(ctx->fallback.ahash); in sa_sha_cra_exit()
1711 const char *fallback) in sa_cra_init_aead() argument
1725 ctx->fallback.aead = crypto_alloc_aead(fallback, 0, in sa_cra_init_aead()
1728 if (IS_ERR(ctx->fallback.aead)) { in sa_cra_init_aead()
1730 fallback); in sa_cra_init_aead()
1731 return PTR_ERR(ctx->fallback.aead); in sa_cra_init_aead()
1735 crypto_aead_reqsize(ctx->fallback.aead)); in sa_cra_init_aead()
1772 crypto_free_aead(ctx->fallback.aead); in sa_exit_tfm_aead()
1847 crypto_aead_clear_flags(ctx->fallback.aead, CRYPTO_TFM_REQ_MASK); in sa_aead_setkey()
1848 crypto_aead_set_flags(ctx->fallback.aead, in sa_aead_setkey()
1851 crypto_aead_setkey(ctx->fallback.aead, key, keylen); in sa_aead_setkey()
1860 return crypto_aead_setauthsize(ctx->fallback.aead, authsize); in sa_aead_setauthsize()
1910 aead_request_set_tfm(subreq, ctx->fallback.aead); in sa_aead_run()