Lines Matching defs:fallback

822 	crypto_free_sync_skcipher(ctx->fallback.skcipher);
844 ctx->fallback.skcipher =
847 if (IS_ERR(ctx->fallback.skcipher)) {
848 dev_err(sa_k3_dev, "Error allocating fallback algo %s\n", name);
849 return PTR_ERR(ctx->fallback.skcipher);
877 crypto_sync_skcipher_clear_flags(ctx->fallback.skcipher,
879 crypto_sync_skcipher_set_flags(ctx->fallback.skcipher,
882 ret = crypto_sync_skcipher_setkey(ctx->fallback.skcipher, key, keylen);
1093 * avoided. This will be handled by the SW fallback mechanism by
1285 /* Use SW fallback if the data size is not supported */
1289 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->fallback.skcipher);
1291 skcipher_request_set_sync_tfm(subreq, ctx->fallback.skcipher);
1397 ahash_request_set_tfm(subreq, ctx->fallback.ahash);
1488 /* for fallback */
1489 ctx->fallback.ahash =
1492 if (IS_ERR(ctx->fallback.ahash)) {
1494 "Could not load fallback driver\n");
1495 return PTR_ERR(ctx->fallback.ahash);
1505 crypto_ahash_reqsize(ctx->fallback.ahash));
1524 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash);
1537 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash);
1552 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash);
1566 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash);
1583 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash);
1597 ahash_request_set_tfm(subreq, ctx->fallback.ahash);
1664 crypto_free_ahash(ctx->fallback.ahash);
1711 const char *fallback)
1725 ctx->fallback.aead = crypto_alloc_aead(fallback, 0,
1728 if (IS_ERR(ctx->fallback.aead)) {
1729 dev_err(sa_k3_dev, "fallback driver %s couldn't be loaded\n",
1730 fallback);
1731 return PTR_ERR(ctx->fallback.aead);
1735 crypto_aead_reqsize(ctx->fallback.aead));
1772 crypto_free_aead(ctx->fallback.aead);
1847 crypto_aead_clear_flags(ctx->fallback.aead, CRYPTO_TFM_REQ_MASK);
1848 crypto_aead_set_flags(ctx->fallback.aead,
1852 return crypto_aead_setkey(ctx->fallback.aead, key, keylen);
1859 return crypto_aead_setauthsize(ctx->fallback.aead, authsize);
1909 aead_request_set_tfm(subreq, ctx->fallback.aead);