diff options
author | Jakub Jelen <jjelen@redhat.com> | 2021-10-14 17:58:57 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-10-15 11:33:08 +0900 |
commit | d45db4ad16fec0fe7d32aae60f356a386fbf909b (patch) | |
tree | 8c92b00c744a96f5df2d75e702017ddaa23902b2 /doc | |
parent | b496868dc37d1e9a899e127f54f5c3d5ee2e91cc (diff) | |
download | libgcrypt-d45db4ad16fec0fe7d32aae60f356a386fbf909b.tar.gz |
fips: Improve selftests invocation.
* src/fips.c (run_digest_selftests): Skip SHA256 selftest if they were
already executed as part of the integrity check.
(run_mac_selftests): Skip HMAC-SHA256 selftest if they were already
executed as part of the integrity check.
(run_hmac_sha256_selftests): Run SHA256 selftest too.
(_gcry_fips_run_selftests): Run the sha256 selftests regardless of the
fips mode status.
--
Prevent running the SHA256 tests twice and runs the SHA256 test
before the HMAC-SHA256 also from when manually invoked.
GnuPG-bug-id: 5617
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions