Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-sign-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const modSize = 1024;
let s1stream = crypto.createSign('SHA1');
s1stream.end('Test123');
s1stream = s1stream.sign(keyPem, 'base64');
assert.strictEqual(s1, s1stream, 'Stream produces same output');
assert.strictEqual(s1, s1stream, `${s1} should equal ${s1stream}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The former message was actually really wrong!


const verified = crypto.createVerify('SHA1')
.update('Test')
Expand All @@ -39,7 +39,7 @@ const modSize = 1024;
let s2stream = crypto.createSign('SHA256');
s2stream.end('Test123');
s2stream = s2stream.sign(keyPem, 'latin1');
assert.strictEqual(s2, s2stream, 'Stream produces same output');
assert.strictEqual(s2, s2stream, `${s2} should equal ${s2stream}`);

let verified = crypto.createVerify('SHA256')
.update('Test')
Expand Down