Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f66a211e authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a24e3b58
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment