| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 776f379 commit e08fef1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -196,9 +196,10 @@ for (const [params1, params2] of [ | |||
| 196 | 196 | test(crypto.generateKeyPairSync('ec', { namedCurve: 'secp256k1' }), | |
| 197 | 197 | crypto.generateKeyPairSync('ec', { namedCurve: 'secp256k1' })); | |
| 198 | 198 | ||
| 199 | + const not256k1 = crypto.getCurves().find((c) => /^sec.*(224|384|512)/.test(c)); | ||
| 199 | 200 | assert.throws(() => { | |
| 200 | 201 | test(crypto.generateKeyPairSync('ec', { namedCurve: 'secp256k1' }), | |
| 201 | - crypto.generateKeyPairSync('ec', { namedCurve: 'secp224k1' })); | ||
| 202 | + crypto.generateKeyPairSync('ec', { namedCurve: not256k1 })); | ||
| 202 | 203 | }, { | |
| 203 | 204 | name: 'Error', | |
| 204 | 205 | code: 'ERR_OSSL_EVP_DIFFERENT_PARAMETERS' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments