From 977159f1493f710995293bead60f44dcf20a48da Mon Sep 17 00:00:00 2001 From: Rainer Oviir Date: Tue, 2 Feb 2016 11:11:07 -0800 Subject: [PATCH] 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 Reviewed-By: Brian White Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/crypto.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 9d42cebb2a4..5d5b85588e9 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -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');