-
Notifications
You must be signed in to change notification settings - Fork 62
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
Persistent private keys for agreement #302
Conversation
Nice! Thanks for this PR. |
50c4f85
to
5b52b3c
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #302 +/- ##
==========================================
+ Coverage 95.73% 95.86% +0.13%
==========================================
Files 59 60 +1
Lines 8091 8494 +403
==========================================
+ Hits 7746 8143 +397
- Misses 345 351 +6 ☔ View full report in Codecov by Sentry. |
9521468
to
f990089
Compare
4688e65
to
7c68274
Compare
aws-lc-rs/src/agreement.rs
Outdated
@@ -307,13 +307,11 @@ impl PrivateKey { | |||
) | |||
})? | |||
} else { | |||
let ec_group = unsafe { ec_group_from_nid(alg.id.nid())? }; | |||
let private_bn = DetachableLcPtr::try_from(key_bytes)?; | |||
let ec_group: LcPtr<EC_GROUP> = ec_group_from_nid(alg.id.nid())?; |
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.
Minor but ec_group_from_nid
doesn't technically need this since you aren't trying to convert to the type like the line right below it. Not really picky, just wasn't sure if you were doing it for clarity or had expected different.
4960ee4
to
3b6b283
Compare
Issues:
#300
Description of changes:
agreement::PrivateKey
Call-outs:
EphemeralPrivateKey
toPrivateKey
. I madeEphemeralPrivateKey
a wrapper aroundPrivateKey
and moved it to another file.Testing:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.