crypto: show exponent in decimal and hex · nodejs/node@847459c · GitHub
Skip to content

Commit 847459c

Browse files
iamthechadbnoordhuis
authored andcommitted
crypto: show exponent in decimal and hex
The exponent value was already in hex, but missing the 0x prefix which could be confusing. PR-URL: #2320 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ad7f744 commit 847459c

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/node_crypto.cc

Lines changed: 3 additions & 1 deletion

test/parallel/test-https-foafssl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ process.on('exit', function() {
8383
'FDA7DE954ED56DC7AD9A47EEBC37D771A366FC60A5BCB72373BEC180649B3EFA0E90' +
8484
'92707210B41B90032BB18BC91F2046EBDAF1191F4A4E26D71879C4C7867B62FCD508' +
8585
'E8CE66E82D128A71E915809FCF44E8DE774067F1DE5D70B9C03687');
86-
assert.equal(exponent, '10001');
86+
assert.equal(exponent, '0x10001');
8787
});

test/parallel/test-tls-peer-certificate.js

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)