Home GnuPG

tests: Add options --fips to keygen for manual tests.
d328095dd4deUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

tests: Add options --fips to keygen for manual tests.

(main): Add option --fips.
* tests/keygen.c (check_rsa_keys): Create an 2048 bit key with e=65539
because that is valid in FIPS mode.  Check that key generation fails
for too short keys in FIPS mode.
(check_ecc_keys): Check that key generation fails for Ed25519 keys in
FIPS mode.

This option allows to test the FIPS mode manually for key generation.
We should eventually expand all tests to allow testing in FIPS mode in
non FIPS enabled boxes.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 22 2016, 5:49 PM
Parents
rC5f9b3c2e220c: rsa: Add FIPS 186-4 compliant RSA probable prime key generator.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCd328095dd4de: tests: Add options --fips to keygen for manual tests. (authored by Werner Koch <wk@gnupg.org>).Mar 22 2016, 5:49 PM