We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a29d4 commit e009a35Copy full SHA for e009a35
test/pummel/test-crypto-dh-hash.js
@@ -45,10 +45,10 @@ const hashes = {
45
46
for (const name in hashes) {
47
const group = crypto.getDiffieHellman(name);
48
- const private_key = group.getPrime('hex');
+ const prime = group.getPrime('hex');
49
const hash1 = hashes[name];
50
const hash2 = crypto.createHash('sha1')
51
- .update(private_key.toUpperCase()).digest('hex');
+ .update(prime.toUpperCase()).digest('hex');
52
assert.strictEqual(hash1, hash2);
53
assert.strictEqual(group.getGenerator('hex'), '02');
54
}
0 commit comments