()
| 30 | const { hasOpenSSL3 } = require('../common/crypto'); |
| 31 | |
| 32 | function test() { |
| 33 | const odd = Buffer.alloc(39, 'A'); |
| 34 | |
| 35 | const c = crypto.createDiffieHellman(hasOpenSSL3 ? 1024 : 32); |
| 36 | c.setPrivateKey(odd); |
| 37 | c.generateKeys(); |
| 38 | } |
| 39 | |
| 40 | // FIPS requires a length of at least 1024 |
| 41 | if (!crypto.getFips()) { |
no test coverage detected
searching dependent graphs…