Skip to content
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

evp: simplify overall logic #12

Merged
merged 7 commits into from
May 21, 2015
Merged

evp: simplify overall logic #12

merged 7 commits into from
May 21, 2015

Conversation

dcousens
Copy link
Member

Just a passing refactor

@dcousens
Copy link
Member Author

Good to merge @calvinmetcalf, I'm not sure if travis has run though, so if you could just test it locally before merge please (not at my PC right now, did this through the GitHub interface).


// zero the temporary buffer
buffer.fill(0)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the reasoning for this, but can we even make the guarantee that the key won't be around in some other buffer?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't make us less secure and hopefully at least lowers the number of places in memory the key sits and makes it less likely for somebody to recover it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'm just trying to ensure we don't give off any false assertions, this could very easily still be in memory.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we could leave a comment

On Wed, May 20, 2015 at 9:59 AM Daniel Cousens notifications@github.com
wrote:

In EVP_BytesToKey.js
#12 (comment)
:

\ No newline at end of file
+

  • // zero the temporary buffer
  • buffer.fill(0)

Sure, I'm just trying to ensure we don't give off any false assertions,
this could very much still be in memory.


Reply to this email directly or view it on GitHub
https://github.com/crypto-browserify/parse-asn1/pull/12/files#r30703967.

dcousens added a commit that referenced this pull request May 21, 2015
@dcousens dcousens merged commit a9937b4 into master May 21, 2015
@dcousens dcousens deleted the dcousens-patch-2 branch May 21, 2015 03:33
@dcousens
Copy link
Member Author

Sorry @calvinmetcalf this probably shouldn't have been merged.

Can you please still verify.

Also, if keyLen === 0, is undefined an acceptable return value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants