Lines Matching refs:fallback
31 * @fallback : used for unsupported curves or when user wants to use its own
43 struct crypto_kpp *fallback;
109 /* fallback to ecdh software implementation */
111 return crypto_kpp_set_secret(ctx->fallback, buf, len);
158 kpp_request_set_tfm(req, ctx->fallback);
187 kpp_request_set_tfm(req, ctx->fallback);
263 struct crypto_kpp *fallback;
272 fallback = crypto_alloc_kpp(alg, 0, CRYPTO_ALG_NEED_FALLBACK);
273 if (IS_ERR(fallback)) {
275 alg, PTR_ERR(fallback));
276 return PTR_ERR(fallback);
279 crypto_kpp_set_flags(fallback, crypto_kpp_get_flags(tfm));
280 ctx->fallback = fallback;
290 crypto_free_kpp(ctx->fallback);
298 if (ctx->fallback)
299 return crypto_kpp_maxsize(ctx->fallback);