Skip to content

Commit 9908ece

Browse files
raineroviirrvagg
authored andcommitted
doc: uppercase 'RSA-SHA256' in crypto.markdown
Fixes: #5031 PR-URL: #5044 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 83da19a commit 9908ece

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/crypto.markdown

+4-4
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)