diff options
author | Tobias Nießen <tniessen@tnie.de> | 2019-03-17 01:51:26 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-04-08 10:22:32 +0300 |
commit | 969bd1eb7b56fda3573ad3d41745a491f2b06dde (patch) | |
tree | eb6a429995c6bc99105ab944a72cc0b85c463043 /src/node_crypto.h | |
parent | d834275a48bc1f85e2289bf7e52a5035a4d97f7e (diff) |
crypto: add support for RSA-PSS keys
This commit adds support for RSA-PSS keys, including
- KeyObjects of type rsa-pss,
- key pair generation for RSA-PSS, and
- signing and verification using RSA-PSS keys.
PR-URL: https://github.com/nodejs/node/pull/26960
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 2e82e1654c0..657789afc42 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -670,7 +670,7 @@ class Sign : public SignBase { SignResult SignFinal( const ManagedEVPPKey& pkey, int padding, - int saltlen); + const v8::Maybe<int>& saltlen); protected: static void New(const v8::FunctionCallbackInfo<v8::Value>& args); @@ -691,7 +691,7 @@ class Verify : public SignBase { const char* sig, int siglen, int padding, - int saltlen, + const v8::Maybe<int>& saltlen, bool* verify_result); protected: |