MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/parallel/test-crypto-dh-odd-key.js:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30const { hasOpenSSL3 } = require('../common/crypto');
31
32function 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
41if (!crypto.getFips()) {

Callers 1

Calls 1

allocMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…