diff options
author | Tobias Nießen <tniessen@tnie.de> | 2019-06-21 17:37:06 +0300 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2019-08-07 14:45:42 +0300 |
commit | 0c9ad34427cdc8a68c8b3e7c2d4748f462567680 (patch) | |
tree | 4daa9f7d90a2c5583c1d0052817c26f5a68bdb9a /src/node_crypto.h | |
parent | 0b5b81c82af70072eac09d39ec43b5707d8d8a0c (diff) |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 07ca412e8f7..a121c822959 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); |