Lines Matching refs:fallback
31 * @fallback : used for unsupported curves or when user wants to use its own
42 struct crypto_kpp *fallback;
97 /* fallback to ecdh software implementation */
99 return crypto_kpp_set_secret(ctx->fallback, buf, len);
145 kpp_request_set_tfm(req, ctx->fallback);
174 kpp_request_set_tfm(req, ctx->fallback);
250 struct crypto_kpp *fallback;
260 fallback = crypto_alloc_kpp(alg, 0, CRYPTO_ALG_NEED_FALLBACK);
261 if (IS_ERR(fallback)) {
263 alg, PTR_ERR(fallback));
264 return PTR_ERR(fallback);
267 crypto_kpp_set_flags(fallback, crypto_kpp_get_flags(tfm));
268 ctx->fallback = fallback;
278 crypto_free_kpp(ctx->fallback);
286 if (ctx->fallback)
287 return crypto_kpp_maxsize(ctx->fallback);