File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -690,7 +690,7 @@ Example: Using `Sign` objects as streams:
690690
691691``` js
692692const crypto = require (' crypto' );
693- const sign = crypto .createSign (' rsa-sha256 ' );
693+ const sign = crypto .createSign (' RSA-SHA256 ' );
694694
695695sign .write (' some data to sign' );
696696sign .end ();
@@ -704,7 +704,7 @@ Example: Using the `sign.update()` and `sign.sign()` methods:
704704
705705``` js
706706const crypto = require (' crypto' );
707- const sign = crypto .createSign (' rsa-sha256 ' );
707+ const sign = crypto .createSign (' RSA-SHA256 ' );
708708
709709sign .update (' some data to sign' );
710710
@@ -754,7 +754,7 @@ Example: Using `Verify` objects as streams:
754754
755755``` js
756756const crypto = require (' crypto' );
757- const verify = crypto .createVerify (' rsa-sha256 ' );
757+ const verify = crypto .createVerify (' RSA-SHA256 ' );
758758
759759verify .write (' some data to sign' );
760760verify .end ();
@@ -769,7 +769,7 @@ Example: Using the `verify.update()` and `verify.verify()` methods:
769769
770770``` js
771771const crypto = require (' crypto' );
772- const verify = crypto .createVerify (' rsa-sha256 ' );
772+ const verify = crypto .createVerify (' RSA-SHA256 ' );
773773
774774verify .update (' some data to sign' );
775775
You can’t perform that action at this time.
0 commit comments