Note that I created the dsa2048.pem and signature text (signature_encoded.txt), that is used as a text to create the signature0 in the test_sign_verify by the following steps with the openssl CLI on FIPS module.
Skip the test_DSAPrivateKey_encrypted on FIPS because AES-128-CBC, the password based encryption used in the PEM format uses MD5 for deriving the encryption key from the password, and MD5 is not FIPS-approved. See also the comment on the test/openssl/utils.rb#omit_on_fips.
[ruby/openssl] Fix test_pkey_dsa.rb in FIPS.
Note that I created the
dsa2048.pemand signature text(
signature_encoded.txt), that is used as a text to create thesignature0inthe
test_sign_verifyby the following steps with theopensslCLI on FIPSmodule.
Skip the
test_DSAPrivateKey_encryptedon FIPS because AES-128-CBC, thepassword based encryption used in the PEM format uses MD5 for deriving the
encryption key from the password, and MD5 is not FIPS-approved.
See also the comment on the
test/openssl/utils.rb#omit_on_fips.https://github.com/ruby/openssl/commit/4bdcb419a9