Skip to content

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Sep 9, 2025

Also adds a hazmat-gated RsaPrivateKey::new_unchecked as an escape hatch.

Partial step towards addressing #445.

cc @pinkforest

Also adds a `hazmat`-gated `RsaPrivateKey::new_unchecked` as an escape
hatch.

Partial step towards addressing #445.
@tarcieri
Copy link
Member Author

tarcieri commented Sep 9, 2025

#526 was probably trying to do too much at once.

This is at least a "stop-the-bleeding" fix that will hopefully deter people from generating insecurely sized keys, at least so easily.

@tarcieri tarcieri merged commit eb1cca7 into master Sep 10, 2025
12 checks passed
@tarcieri tarcieri deleted the min-size-1024-keygen branch September 10, 2025 21:43
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