Skip to content

Conversation

@rhenium
Copy link
Member

@rhenium rhenium commented Oct 16, 2025

Replace fixed-sized RSA keys with the generic rsa-{1,2,3}.pem keys. Those test cases do not depend on specific keys or key sizes, and just need several different keys.

Replace DSA keys with EC keys so that we can run more tests in the FIPS mode, which do not seem to support DSA anymore.

Also, clean up duplicate test cases using very small keys or obsolete hash functions.


This is a follow-up to the unfinished refactoring changes in 2018.

Fixes #217
Fixes #913 (comment)

Replace fixed-sized RSA keys with the generic rsa-{1,2,3}.pem keys.
Those test cases do not depend on specific keys or key sizes, and just
need several different keys.

Replace DSA keys with EC keys so that we can run more tests in the FIPS
mode, which do not seem to support DSA anymore.

Also, clean up duplicate test cases using very small keys or obsolete
hash functions.

rake test_fips no longer skips those test cases.
Use generic keys whenever possible.
Use generic keys whenever possible.
Use generic keys whenever possible.
Use generic keys whenever possible.
Use generic keys whenever possible.
Previous commits removed all usages of those small keys.
@rhenium rhenium force-pushed the ky/test-use-generic-test-keys branch from 6349f2c to f9d87d7 Compare October 17, 2025 16:59
@rhenium rhenium merged commit fe5f2aa into ruby:master Oct 27, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant