diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2019-10-10 01:33:15 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-16 20:00:00 +0300 |
commit | 9f203f927c732a1f2f707ecce5e8656e3e4c2459 (patch) | |
tree | ade2a25aa62778f0e215fc124ef8deed9ea85b08 /src/node_crypto.h | |
parent | e22efba812b2a6c2ee6d35f4e11af5b08afd881d (diff) |
crypto: add Hash.prototype.copy() method
Make it possible to clone the internal state of a Hash object
into a new Hash object, i.e., to fork the state of the object.
Fixes: https://github.com/nodejs/node/issues/29903
PR-URL: https://github.com/nodejs/node/pull/29910
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 206a19119a7..777ba5d302a 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -591,7 +591,7 @@ class Hash : public BaseObject { SET_MEMORY_INFO_NAME(Hash) SET_SELF_SIZE(Hash) - bool HashInit(const char* hash_type, v8::Maybe<unsigned int> xof_md_len); + bool HashInit(const EVP_MD* md, v8::Maybe<unsigned int> xof_md_len); bool HashUpdate(const char* data, int len); protected: |