summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2019-06-21 16:37:06 +0200
committerTobias Nießen <tniessen@tnie.de>2019-08-07 13:45:42 +0200
commit0c9ad34427cdc8a68c8b3e7c2d4748f462567680 (patch)
tree4daa9f7d90a2c5583c1d0052817c26f5a68bdb9a /src/node_crypto.h
parent0b5b81c82af70072eac09d39ec43b5707d8d8a0c (diff)
downloadandroid-node-v8-0c9ad34427cdc8a68c8b3e7c2d4748f462567680.tar.gz
android-node-v8-0c9ad34427cdc8a68c8b3e7c2d4748f462567680.tar.bz2
android-node-v8-0c9ad34427cdc8a68c8b3e7c2d4748f462567680.zip
crypto: extend RSA-OAEP support with oaepHash
This adds an oaepHash option to asymmetric encryption which allows users to specify a hash function when using OAEP padding. This feature is required for interoperability with WebCrypto applications. PR-URL: https://github.com/nodejs/node/pull/28335 Fixes: https://github.com/nodejs/node/issues/25756 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 07ca412e8f..a121c82295 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -713,6 +713,7 @@ class PublicKeyCipher {
static bool Cipher(Environment* env,
const ManagedEVPPKey& pkey,
int padding,
+ const char* oaep_hash,
const unsigned char* data,
int len,
AllocatedBuffer* out);