commit | f66a211e8c5d9b1b0531364c1b16874b0499e0d2 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Wed Feb 21 13:19:15 2024 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Mar 01 18:35:40 2024 +0800 |
tree | 9ced31bac6d0fe2e57973aa0311adb64c2b32085 | |
parent | a24e3b583ea2db3418f0c6ae1f12b07ca96531cc [diff] |
crypto: dh - Make public key test FIPS-only The function dh_is_pubkey_valid was added to for FIPS but it was only partially conditional to fips_enabled. In particular, the first test in the function relies on the last test to work properly, but the last test is only run in FIPS mode. Fix this inconsistency by making the whole function conditional on fips_enabled. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>