Skip to content

Commit de2f050

Browse files
sstern6Myles Borins
authored and
Myles Borins
committed
doc: update reference to list hash algorithms in crypto.md
PR-URL: #9043 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 4d4d02a commit de2f050

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/api/crypto.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -1241,18 +1241,18 @@ input.on('readable', () => {
12411241
added: v0.1.92
12421242
-->
12431243

1244-
Creates and returns a `Sign` object that uses the given `algorithm`. On
1245-
recent OpenSSL releases, `openssl list-public-key-algorithms` will
1246-
display the available signing algorithms. One example is `'RSA-SHA256'`.
1244+
Creates and returns a `Sign` object that uses the given `algorithm`.
1245+
Use [`crypto.getHashes()`][] to obtain an array of names of the available
1246+
signing algorithms.
12471247

12481248
### crypto.createVerify(algorithm)
12491249
<!-- YAML
12501250
added: v0.1.92
12511251
-->
12521252

1253-
Creates and returns a `Verify` object that uses the given algorithm. On
1254-
recent OpenSSL releases, `openssl list-public-key-algorithms` will
1255-
display the available signing algorithms. One example is `'RSA-SHA256'`.
1253+
Creates and returns a `Verify` object that uses the given algorithm.
1254+
Use [`crypto.getHashes()`][] to obtain an array of names of the available
1255+
signing algorithms.
12561256

12571257
### crypto.getCiphers()
12581258
<!-- YAML
@@ -1320,7 +1320,8 @@ console.log(alice_secret == bob_secret);
13201320
added: v0.9.3
13211321
-->
13221322

1323-
Returns an array with the names of the supported hash algorithms.
1323+
Returns an array of the names of the supported hash algorithms,
1324+
such as `RSA-SHA256`.
13241325

13251326
Example:
13261327

0 commit comments

Comments
 (0)