-
Notifications
You must be signed in to change notification settings - Fork 727
Allow AeadKey
to be constructed outside crate
#2369
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
base: main
Are you sure you want to change the base?
Conversation
Benchmark resultsInstruction countsSignificant differencesThere are no significant instruction count differences Other differencesClick to expand
Wall-timeSignificant differencesThere are no significant wall-time differences Other differencesClick to expand
Additional informationCheckout details:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2369 +/- ##
==========================================
- Coverage 94.90% 94.89% -0.01%
==========================================
Files 103 103
Lines 24551 24548 -3
==========================================
- Hits 23299 23294 -5
- Misses 1252 1254 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Previously this was constructable, but only for 256-bit keys via `From<[u8; 32]>`. Instead of just publicising `AeadKey::new`, recast the type as an enum containing variants for the two usual symmetric key lengths. Unfortunately for semver reasons this needs to be wrapped in the original struct type.
In an experimental project I'm working on I included an |
Previously this was constructable, but only for 256-bit keys via
From<[u8; 32]>
.Instead of just publicising
AeadKey::new
, recast the type as an enum containing variants for the two usual symmetric key lengths (this prevents misuses like empty keys, one byte keys, etc). Unfortunately for semver reasons this needs to be wrapped in the original struct type.The underlying rationale for this change is to support some changes I want to make in quinn; this is draft while I solidify those.