We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7af55db commit 3c8037aCopy full SHA for 3c8037a
test/pummel/test-crypto-dh-hash.js
@@ -50,10 +50,10 @@ const hashes = {
50
51
for (const name in hashes) {
52
const group = crypto.getDiffieHellman(name);
53
- const private_key = group.getPrime('hex');
+ const prime = group.getPrime('hex');
54
const hash1 = hashes[name];
55
const hash2 = crypto.createHash('sha1')
56
- .update(private_key.toUpperCase()).digest('hex');
+ .update(prime.toUpperCase()).digest('hex');
57
assert.strictEqual(hash1, hash2);
58
assert.strictEqual(group.getGenerator('hex'), '02');
59
}
0 commit comments