-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Securely erase memory & reduce public API #2224
Conversation
Here's one more spot that needs treatment: https://github.com/ripple/rippled/blob/develop/src/ripple/protocol/Serializer.h#L201 |
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.
Looks good!
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.
👍
@@ -199,6 +210,8 @@ generateSecretKey (KeyType type, Seed const& seed) | |||
|
|||
if (type == KeyType::secp256k1) | |||
{ | |||
// FIXME: Avoid copying the seed into a uint128 key only to have | |||
// generateRootDeterministicPrivateKey copy out of it. |
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.
I probably don't understand all the nuances of the data - why don't we need to secure_erase
the upk
below?
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.
We'd need to massage things a bit to do it, but it's possible. Perhaps in the interest of thoroughness we should, even if it's a bit of extra work.
As I've marked elsewhere in the file, ideally we should change generateRootDeterministicPrivateKey
to just take a Slice
and not a uint128
, and have it return a SecretKey
directly.
Codecov Report
@@ Coverage Diff @@
## develop #2224 +/- ##
===========================================
- Coverage 70.07% 70.06% -0.01%
===========================================
Files 689 689
Lines 50730 50734 +4
===========================================
- Hits 35550 35549 -1
- Misses 15180 15185 +5
Continue to review full report at Codecov.
|
👍 |
Merged as 39f9135 |
No description provided.