summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2019-10-10 00:33:15 +0200
committerRich Trott <rtrott@gmail.com>2019-10-16 10:00:00 -0700
commit9f203f927c732a1f2f707ecce5e8656e3e4c2459 (patch)
treeade2a25aa62778f0e215fc124ef8deed9ea85b08 /src/node_crypto.h
parente22efba812b2a6c2ee6d35f4e11af5b08afd881d (diff)
downloadandroid-node-v8-9f203f927c732a1f2f707ecce5e8656e3e4c2459.tar.gz
android-node-v8-9f203f927c732a1f2f707ecce5e8656e3e4c2459.tar.bz2
android-node-v8-9f203f927c732a1f2f707ecce5e8656e3e4c2459.zip
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 206a19119a..777ba5d302 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: