Skip to content

Commit 977159f

Browse files
raineroviirbnoordhuis
authored andcommitted
doc: uppercase 'RSA-SHA256' in crypto.markdown
Fixes: #5031 PR-URL: #5044 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 924cc6c commit 977159f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/crypto.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ Example: Using `Sign` objects as streams:
690690

691691
```js
692692
const crypto = require('crypto');
693-
const sign = crypto.createSign('rsa-sha256');
693+
const sign = crypto.createSign('RSA-SHA256');
694694

695695
sign.write('some data to sign');
696696
sign.end();
@@ -704,7 +704,7 @@ Example: Using the `sign.update()` and `sign.sign()` methods:
704704

705705
```js
706706
const crypto = require('crypto');
707-
const sign = crypto.createSign('rsa-sha256');
707+
const sign = crypto.createSign('RSA-SHA256');
708708

709709
sign.update('some data to sign');
710710

@@ -754,7 +754,7 @@ Example: Using `Verify` objects as streams:
754754

755755
```js
756756
const crypto = require('crypto');
757-
const verify = crypto.createVerify('rsa-sha256');
757+
const verify = crypto.createVerify('RSA-SHA256');
758758

759759
verify.write('some data to sign');
760760
verify.end();
@@ -769,7 +769,7 @@ Example: Using the `verify.update()` and `verify.verify()` methods:
769769

770770
```js
771771
const crypto = require('crypto');
772-
const verify = crypto.createVerify('rsa-sha256');
772+
const verify = crypto.createVerify('RSA-SHA256');
773773

774774
verify.update('some data to sign');
775775

0 commit comments

Comments
 (0)