ANDROID: fips140: log already-live algorithms

It may be helpful to know whether the "already-live algorithms" code
path is being executed or not, and if so, with which algorithms.  Add a
log message for it.

Bug: 153614920
Bug: 188620248
Change-Id: Ie3757794b1e43f630d5dc8f888c6ad33acacbc4c
Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
Eric Biggers
2021-07-08 14:46:42 -07:00
committed by Ard Biesheuvel
parent 0a7da21583
commit 92de53472e

View File

@@ -152,6 +152,8 @@ static void __init unregister_existing_fips140_algos(void)
* transformations. We will swap these out * transformations. We will swap these out
* later with integrity checked versions. * later with integrity checked versions.
*/ */
pr_info("found already-live algorithm '%s' ('%s')\n",
alg->cra_name, alg->cra_driver_name);
list_move(&alg->cra_list, list_move(&alg->cra_list,
&unchecked_fips140_algos); &unchecked_fips140_algos);
} }