Skip to content

Commit 68ccc7a

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 f9b24f4 commit 68ccc7a

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
@@ -1209,18 +1209,18 @@ input.on('readable', () => {
12091209
added: v0.1.92
12101210
-->
12111211

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

12161216
### crypto.createVerify(algorithm)
12171217
<!-- YAML
12181218
added: v0.1.92
12191219
-->
12201220

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

12251225
### crypto.getCiphers()
12261226
<!-- YAML
@@ -1288,7 +1288,8 @@ console.log(alice_secret == bob_secret);
12881288
added: v0.9.3
12891289
-->
12901290

1291-
Returns an array with the names of the supported hash algorithms.
1291+
Returns an array of the names of the supported hash algorithms,
1292+
such as `RSA-SHA256`.
12921293

12931294
Example:
12941295

0 commit comments

Comments
 (0)