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 /test/parallel/test-crypto-keygen.js | |
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 'test/parallel/test-crypto-keygen.js')
-rw-r--r-- | test/parallel/test-crypto-keygen.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/parallel/test-crypto-keygen.js b/test/parallel/test-crypto-keygen.js index 8aae0d5e12..43f2196115 100644 --- a/test/parallel/test-crypto-keygen.js +++ b/test/parallel/test-crypto-keygen.js @@ -108,12 +108,10 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher); assert.strictEqual(typeof publicKey, 'object'); assert.strictEqual(publicKey.type, 'public'); assert.strictEqual(publicKey.asymmetricKeyType, 'rsa'); - assert.strictEqual(publicKey.asymmetricKeySize, 64); assert.strictEqual(typeof privateKey, 'object'); assert.strictEqual(privateKey.type, 'private'); assert.strictEqual(privateKey.asymmetricKeyType, 'rsa'); - assert.strictEqual(publicKey.asymmetricKeySize, 64); } { @@ -455,7 +453,6 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher); assert.strictEqual(typeof publicKey, 'object'); assert.strictEqual(publicKey.type, 'public'); assert.strictEqual(publicKey.asymmetricKeyType, 'rsa'); - assert.strictEqual(publicKey.asymmetricKeySize, 128); // The private key should still be a string. assert.strictEqual(typeof privateKey, 'string'); @@ -480,7 +477,6 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher); assert.strictEqual(typeof privateKey, 'object'); assert.strictEqual(privateKey.type, 'private'); assert.strictEqual(privateKey.asymmetricKeyType, 'rsa'); - assert.strictEqual(privateKey.asymmetricKeySize, 128); testEncryptDecrypt(publicKey, privateKey); testSignVerify(publicKey, privateKey); |