From 6f77af541e4336037f08a876e1a3fa657fd22675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 13 Mar 2019 17:31:03 +0100 Subject: [PATCH] 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 Reviewed-By: Rich Trott Reviewed-By: Ben Noordhuis --- doc/api/crypto.md | 9 --------- lib/internal/crypto/keys.js | 6 ------ src/node_crypto.cc | 13 ------------- src/node_crypto.h | 4 ---- test/parallel/test-crypto-key-objects.js | 3 --- test/parallel/test-crypto-keygen.js | 4 ---- 6 files changed, 39 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index cc310f67d1187c..1b30633221d895 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1121,15 +1121,6 @@ exposes different functions. Most applications should consider using the new `KeyObject` API instead of passing keys as strings or `Buffer`s due to improved security features. -### keyObject.asymmetricKeySize - -* {number} - -For asymmetric keys, this property represents the size of the embedded key in -bytes. This property is `undefined` for symmetric keys. - ### keyObject.asymmetricKeyType