mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
crypto: kdf - silence noisy self-test
Make the kdf_sp800108 self-test only print a message on success when fips_enabled, so that it's consistent with testmgr.c and doesn't spam the kernel log with a message that isn't really important. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -140,7 +140,7 @@ static int __init crypto_kdf108_init(void)
|
|||||||
WARN(1,
|
WARN(1,
|
||||||
"alg: self-tests for CTR-KDF (hmac(sha256)) failed (rc=%d)\n",
|
"alg: self-tests for CTR-KDF (hmac(sha256)) failed (rc=%d)\n",
|
||||||
ret);
|
ret);
|
||||||
} else {
|
} else if (fips_enabled) {
|
||||||
pr_info("alg: self-tests for CTR-KDF (hmac(sha256)) passed\n");
|
pr_info("alg: self-tests for CTR-KDF (hmac(sha256)) passed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user