diff options
author | Tobias Nießen <tniessen@tnie.de> | 2019-03-13 17:31:03 +0100 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2019-03-15 17:01:56 +0100 |
commit | 6f77af541e4336037f08a876e1a3fa657fd22675 (patch) | |
tree | d4114ff19f3024ff237e90a12946eb543c96510f /lib/internal/crypto | |
parent | fe8972a4ff4aee5ba48e01e3cad0c9464ba70285 (diff) | |
download | android-node-v8-6f77af541e4336037f08a876e1a3fa657fd22675.tar.gz android-node-v8-6f77af541e4336037f08a876e1a3fa657fd22675.tar.bz2 android-node-v8-6f77af541e4336037f08a876e1a3fa657fd22675.zip |
Revert "crypto: add KeyObject.asymmetricKeySize"
This reverts commit 4895927a0a4372e0699f84657e0a299393a3d281.
PR-URL: https://github.com/nodejs/node/pull/26636
Fixes: https://github.com/nodejs/node/issues/26631
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'lib/internal/crypto')
-rw-r--r-- | lib/internal/crypto/keys.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/internal/crypto/keys.js b/lib/internal/crypto/keys.js index 2f4dce8a3b..a0c2148b30 100644 --- a/lib/internal/crypto/keys.js +++ b/lib/internal/crypto/keys.js @@ -73,15 +73,9 @@ class SecretKeyObject extends KeyObject { } } -const kAsymmetricKeySize = Symbol('kAsymmetricKeySize'); const kAsymmetricKeyType = Symbol('kAsymmetricKeyType'); class AsymmetricKeyObject extends KeyObject { - get asymmetricKeySize() { - return this[kAsymmetricKeySize] || - (this[kAsymmetricKeySize] = this[kHandle].getAsymmetricKeySize()); - } - get asymmetricKeyType() { return this[kAsymmetricKeyType] || (this[kAsymmetricKeyType] = this[kHandle].getAsymmetricKeyType()); |