mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: uppercase 'RSA-SHA256' in crypto.markdown
Fixes: https://github.com/nodejs/node/issues/5031 PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
83da19aa48
commit
9908eced24
1 file changed
+4
-4
@@ -690,7 +690,7 @@ Example: Using `Sign` objects as streams:
|
||||
|
||||
```js
|
||||
const crypto = require('crypto');
|
||||
const sign = crypto.createSign('rsa-sha256');
|
||||
const sign = crypto.createSign('RSA-SHA256');
|
||||
|
||||
sign.write('some data to sign');
|
||||
sign.end();
|
||||
@@ -704,7 +704,7 @@ Example: Using the `sign.update()` and `sign.sign()` methods:
|
||||
|
||||
```js
|
||||
const crypto = require('crypto');
|
||||
const sign = crypto.createSign('rsa-sha256');
|
||||
const sign = crypto.createSign('RSA-SHA256');
|
||||
|
||||
sign.update('some data to sign');
|
||||
|
||||
@@ -754,7 +754,7 @@ Example: Using `Verify` objects as streams:
|
||||
|
||||
```js
|
||||
const crypto = require('crypto');
|
||||
const verify = crypto.createVerify('rsa-sha256');
|
||||
const verify = crypto.createVerify('RSA-SHA256');
|
||||
|
||||
verify.write('some data to sign');
|
||||
verify.end();
|
||||
@@ -769,7 +769,7 @@ Example: Using the `verify.update()` and `verify.verify()` methods:
|
||||
|
||||
```js
|
||||
const crypto = require('crypto');
|
||||
const verify = crypto.createVerify('rsa-sha256');
|
||||
const verify = crypto.createVerify('RSA-SHA256');
|
||||
|
||||
verify.update('some data to sign');
|
||||
|
||||
|
||||
Reference in new issue
Block a user