(f)
| 12 | const size = crypto.getFips() || hasOpenSSL3 ? 1024 : 256; |
| 13 | |
| 14 | function unlessInvalidState(f) { |
| 15 | try { |
| 16 | return f(); |
| 17 | } catch (err) { |
| 18 | if (err.code !== 'ERR_CRYPTO_INVALID_STATE') { |
| 19 | throw err; |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | function testGenerateKeysChangesKeys(setup, expected) { |
| 25 | const dh = crypto.createDiffieHellman(size); |
no test coverage detected
searching dependent graphs…