summaryrefslogtreecommitdiff
path: root/crypto/ecdh.c
diff options
context:
space:
mode:
authorHui Tang <tanghui20@huawei.com>2021-05-22 10:44:28 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-05-28 15:11:47 +0800
commitf962e85df3b6cbf5232410721612c09c24c618a8 (patch)
treefef689aec54783a1c0e0ac03b6cc518bcb9b2f6d /crypto/ecdh.c
parente866d9bcddb3e5a41dd19b1d3388b8f64664f760 (diff)
downloadlinux-crypto-f962e85df3b6cbf5232410721612c09c24c618a8.tar.gz
linux-crypto-f962e85df3b6cbf5232410721612c09c24c618a8.zip
crypto: ecdh - fix ecdh-nist-p192's entry in testmgr
Add a comment that p192 will fail to register in FIPS mode. Fix ecdh-nist-p192's entry in testmgr by removing the ifdefs and not setting fips_allowed. Signed-off-by: Hui Tang <tanghui20@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecdh.c')
-rw-r--r--crypto/ecdh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ecdh.c b/crypto/ecdh.c
index 07eb34fe..19746750 100644
--- a/crypto/ecdh.c
+++ b/crypto/ecdh.c
@@ -179,6 +179,7 @@ static int ecdh_init(void)
{
int ret;
+ /* NIST p192 will fail to register in FIPS mode */
ret = crypto_register_kpp(&ecdh_nist_p192);
ecdh_nist_p192_registered = ret == 0;