diff options
author | Hui Tang <tanghui20@huawei.com> | 2021-05-22 04:44:28 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-05-28 09:11:47 +0200 |
commit | 6889fc2104e5d20899b91e61daf07a7524b2010d (patch) | |
tree | 82d322121e238490be4e40c86002f1436be7d213 /crypto/ecdh.c | |
parent | crypto: hisilicon/qm - fix the process of VF's list adding (diff) | |
download | linux-6889fc2104e5d20899b91e61daf07a7524b2010d.tar.xz linux-6889fc2104e5d20899b91e61daf07a7524b2010d.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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ecdh.c b/crypto/ecdh.c index 07eb34fef25b..197467509323 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; |