diff options
author | Tobias Nießen <tniessen@tnie.de> | 2020-05-10 21:09:18 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-06-22 21:50:34 +0300 |
commit | 5489f19093e3f48b1d66bdb1bec61d6387c14d0f (patch) | |
tree | 3949f36c297f62a96c3b93fb15faca60b2f186f8 /src/node_crypto.h | |
parent | 1e27e0a4db7f26bbfbe4f9902fe33d1145b0ac11 (diff) |
src: add NativeKeyObject base class
+---------------------+
| BaseObject |
+---------------------+
|
|
|
+---------------------+
| NativeKeyObject |
+---------------------+
|
|
|
+---------------------+
| KeyObject |
+---------------------+
/ \
/ \
/ \
/ \
+---------------------+ +---------------------+
| SecretKeyObject | | AsymmetricKeyObject |
+---------------------+ +---------------------+
/ \
/ \
/ \
/ \
+---------------------+ +---------------------+
| PublicKeyObject | | PrivateKeyObject |
+---------------------+ +---------------------+
PR-URL: https://github.com/nodejs/node/pull/33360
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index b3f3c2133c0..f95ea64e973 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -463,6 +463,15 @@ class KeyObjectHandle : public BaseObject { ManagedEVPPKey asymmetric_key_; }; +class NativeKeyObject : public BaseObject { + public: + static void New(const v8::FunctionCallbackInfo<v8::Value>& args); + + SET_NO_MEMORY_INFO() + SET_MEMORY_INFO_NAME(NativeKeyObject) + SET_SELF_SIZE(NativeKeyObject) +}; + class CipherBase : public BaseObject { public: static void Initialize(Environment* env, v8::Local<v8::Object> target); |