Skip to content

Commit decc2e1

Browse files
committed
Update crypto.markdown
The RSA-SHA256 string should be uppercase
1 parent cb51688 commit decc2e1

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)