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