| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ const { | |||
| 12 | 12 | // Test async elliptic curve key generation with 'jwk' encoding and RSA. | |
| 13 | 13 | { | |
| 14 | 14 | generateKeyPair('rsa', { | |
| 15 | - modulusLength: 4096, | ||
| 15 | + modulusLength: 1024, | ||
| 16 | 16 | publicKeyEncoding: { | |
| 17 | 17 | format: 'jwk' | |
| 18 | 18 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ const { | |||
| 12 | 12 | // Test classic Diffie-Hellman key generation. | |
| 13 | 13 | { | |
| 14 | 14 | generateKeyPair('dh', { | |
| 15 | - primeLength: 1024 | ||
| 15 | + primeLength: 512 | ||
| 16 | 16 | }, common.mustSucceed((publicKey, privateKey) => { | |
| 17 | 17 | assert.strictEqual(publicKey.type, 'public'); | |
| 18 | 18 | assert.strictEqual(publicKey.asymmetricKeyType, 'dh'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ const { | |||
| 12 | 12 | // Passing an empty passphrase string should not throw ERR_OSSL_CRYPTO_MALLOC_FAILURE even on OpenSSL 3. | |
| 13 | 13 | // Regression test for https://github.com/nodejs/node/issues/41428. | |
| 14 | 14 | generateKeyPair('rsa', { | |
| 15 | - modulusLength: 4096, | ||
| 15 | + modulusLength: 1024, | ||
| 16 | 16 | publicKeyEncoding: { | |
| 17 | 17 | type: 'spki', | |
| 18 | 18 | format: 'pem' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const { | |||
| 13 | 13 | // Test invalid parameter encoding. | |
| 14 | 14 | { | |
| 15 | 15 | assert.throws(() => generateKeyPairSync('dsa', { | |
| 16 | - modulusLength: 4096, | ||
| 16 | + modulusLength: 1024, | ||
| 17 | 17 | publicKeyEncoding: { | |
| 18 | 18 | format: 'jwk' | |
| 19 | 19 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments