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

Allow the key type to be a Buffer #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kf6kjg
Copy link

@kf6kjg kf6kjg commented Oct 8, 2020

The underlying code doesn't really care; I've been running with these scissors for several months in a private patch. Allowing a Buffer through allows for some more clever ways of handling the key - for instance being able to wipe the memory used by that buffer after it's done, or passing in other kinds of keys: whatever the underlying crypto handles.

The underlying code doesn't really care, been running with these scissors for several months in a private patch.  Allowing a Buffer through allows for some more clever ways of handling the key - for instance being able to wipe the memory used by that buffer after it's done, or passing in other kinds of keys: whatever the [underlying crypto](https://nodejs.org/api/crypto.html#crypto_crypto_createhmac_algorithm_key_options) handles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant