| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 272732e commit bc27379
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -513,7 +513,7 @@ assert.throws(function() { | |||
| 513 | 513 | ||
| 514 | 514 | // Test Diffie-Hellman with two parties sharing a secret, | |
| 515 | 515 | // using various encodings as we go along | |
| 516 | - var dh1 = crypto.createDiffieHellman(1024); | ||
| 516 | + var dh1 = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256); | ||
| 517 | 517 | var p1 = dh1.getPrime('buffer'); | |
| 518 | 518 | var dh2 = crypto.createDiffieHellman(p1, 'base64'); | |
| 519 | 519 | var key1 = dh1.generateKeys(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ var crypto = require('crypto'); | |||
| 11 | 11 | ||
| 12 | 12 | // Test Diffie-Hellman with two parties sharing a secret, | |
| 13 | 13 | // using various encodings as we go along | |
| 14 | - var dh1 = crypto.createDiffieHellman(1024); | ||
| 14 | + var dh1 = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256); | ||
| 15 | 15 | var p1 = dh1.getPrime('buffer'); | |
| 16 | 16 | var dh2 = crypto.createDiffieHellman(p1, 'buffer'); | |
| 17 | 17 | var key1 = dh1.generateKeys(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments