-
Notifications
You must be signed in to change notification settings - Fork 169
Add hazmat RSAPrivateKey::new_unchecked
and Make Tony's tests green again
#561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hazmat RSAPrivateKey::new_unchecked
and Make Tony's tests green again
#561
Conversation
Changes the existing checked APIs to respect a minimum modulus size in addition to a maximum one. Note: several tests fail because of this, so we'll need to go through them and convert to an unchecked API where appropriate (or decide if the test is bogus to begin with)
513af0a
to
5849cc3
Compare
I can rebase my branch... this is a lot |
b83ae75
to
f016f0b
Compare
Rebased |
Re-merged in Testing takes ~14 mins in github CI with 1024/2048 bits keysizes instead of 4 mins 64 bits It's mainly that one integration test one but units don't take that long. |
RSAPrivateKey::new_unchecked
and Make Tony's tests green again
Tests complete with 512bit proptests in 5 mins now so pretty much the ~same :) Units are all 1024/2048 with no real difference in speed overall However proptests are gated under hazmat feature given these are now using |
# does not understand concat! macro | ||
# typos: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: crate-ci/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has a rules language for writing exceptions. I guess this is fine for a PR-to-a-PR, but it would be nice to figure out a solution to actually get this merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting it green. We can hash out the details on the other PR.
… again (#561) `RSAPrivateKey::new_unchecked` added (gated under hazmat) All unit RSAPrivateKeys are now 1024/2048 bits and I re-ran the snapshots based on that. I don't think it makes sense to test with smol keysize and it doesn't take that much longer regardless. If we insist on using the existing test data i can re-do with unchecked but 🤷♀️ proptests (gated now to hazmat using `RSAPrivateKey::new_unchecked()` are using 512 bits given with 2048 bits CI increases from 4 mins to 15 mins instead of staying the ~same time. --------- Co-authored-by: Tony Arcieri <[email protected]>
RSAPrivateKey::new_unchecked
added (gated under hazmat)All unit RSAPrivateKeys are now 1024/2048 bits and I re-ran the snapshots based on that.
I don't think it makes sense to test with smol keysize and it doesn't take that much longer regardless.
If we insist on using the existing test data i can re-do with unchecked but 🤷♀️
proptests (gated now to hazmat using
RSAPrivateKey::new_unchecked()
are using 512 bits given with 2048 bits CI increases from 4 mins to 15 mins instead of staying the ~same time.