[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yv9dvvy0rK/1T0sU@gondor.apana.org.au>
Date: Fri, 19 Aug 2022 17:54:06 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Ignat Korchagin <ignat@...udflare.com>
Cc: "David S . Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-team@...udflare.com
Subject: Re: [PATCH] crypto: akcipher - default implementations for setting
private/public keys
On Fri, Jul 29, 2022 at 05:59:54PM +0100, Ignat Korchagin wrote:
>
> @@ -132,6 +138,10 @@ int crypto_register_akcipher(struct akcipher_alg *alg)
> alg->encrypt = akcipher_default_op;
> if (!alg->decrypt)
> alg->decrypt = akcipher_default_op;
> + if (!alg->set_priv_key)
> + alg->set_priv_key = akcipher_default_set_key;
> + if (!alg->set_pub_key)
> + alg->set_pub_key = akcipher_default_set_key;
Under what circumstances could we have an algorithm without a
set_pub_key function?
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists