[ruby/openssl] test_s_generate_parameters: Consider a DSA error in FIPS.
DSA kengen is not FIPS-approved. The `EVP_PKEY_paramgen` in the `OpenSSL::PKey.generate_parameters("DSA")` raises a DSA error in FIPS by the following commit. Split the test for DSA. https://github.com/openssl/openssl/commit/49a35f0#diff-605396c063194975af8ce31399d42690ab18186b422fb5012101cc9132660fe1R611-R614 https://github.com/ruby/openssl/commit/5ca6eb4eca
This commit is contained in:
parent
018bd07f07
commit
08db4bc672
@ -38,6 +38,12 @@ class OpenSSL::TestPKey < OpenSSL::PKeyTestCase
|
|||||||
assert_raise(OpenSSL::PKey::PKeyError) {
|
assert_raise(OpenSSL::PKey::PKeyError) {
|
||||||
OpenSSL::PKey.generate_parameters("EC", "invalid" => "option")
|
OpenSSL::PKey.generate_parameters("EC", "invalid" => "option")
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_s_generate_parameters_with_block
|
||||||
|
# DSA kengen is not FIPS-approved.
|
||||||
|
# https://github.com/openssl/openssl/commit/49a35f0#diff-605396c063194975af8ce31399d42690ab18186b422fb5012101cc9132660fe1R611-R614
|
||||||
|
omit_on_fips
|
||||||
|
|
||||||
# Parameter generation callback is called
|
# Parameter generation callback is called
|
||||||
if openssl?(3, 0, 0, 0) && !openssl?(3, 0, 0, 6)
|
if openssl?(3, 0, 0, 0) && !openssl?(3, 0, 0, 6)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user