Revert "crypto: add KeyObject.asymmetricKeySize" · nodejs/node@6f77af5 (original) (raw)

`@@ -108,12 +108,10 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);

`

108

108

`assert.strictEqual(typeof publicKey, 'object');

`

109

109

`assert.strictEqual(publicKey.type, 'public');

`

110

110

`assert.strictEqual(publicKey.asymmetricKeyType, 'rsa');

`

111

``

`-

assert.strictEqual(publicKey.asymmetricKeySize, 64);

`

112

111

``

113

112

`assert.strictEqual(typeof privateKey, 'object');

`

114

113

`assert.strictEqual(privateKey.type, 'private');

`

115

114

`assert.strictEqual(privateKey.asymmetricKeyType, 'rsa');

`

116

``

`-

assert.strictEqual(publicKey.asymmetricKeySize, 64);

`

117

115

`}

`

118

116

``

119

117

`{

`

`@@ -455,7 +453,6 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);

`

455

453

`assert.strictEqual(typeof publicKey, 'object');

`

456

454

`assert.strictEqual(publicKey.type, 'public');

`

457

455

`assert.strictEqual(publicKey.asymmetricKeyType, 'rsa');

`

458

``

`-

assert.strictEqual(publicKey.asymmetricKeySize, 128);

`

459

456

``

460

457

`// The private key should still be a string.

`

461

458

`assert.strictEqual(typeof privateKey, 'string');

`

`@@ -480,7 +477,6 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);

`

480

477

`assert.strictEqual(typeof privateKey, 'object');

`

481

478

`assert.strictEqual(privateKey.type, 'private');

`

482

479

`assert.strictEqual(privateKey.asymmetricKeyType, 'rsa');

`

483

``

`-

assert.strictEqual(privateKey.asymmetricKeySize, 128);

`

484

480

``

485

481

`testEncryptDecrypt(publicKey, privateKey);

`

486

482

`testSignVerify(publicKey, privateKey);

`