GeezerVison is showing github.com — doc: update reference to list hash algorithms in crypto.md · nodejs/node@68ccc7a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/crypto.md +8-7Lines changed: 8 additions & 7 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1209,18 +1209,18 @@ input.on('readable', () => { |
1209 | 1209 | added: v0.1.92 |
1210 | 1210 | --> |
1211 | 1211 |
|
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. |
1215 | 1215 |
|
1216 | 1216 | ### crypto.createVerify(algorithm) |
1217 | 1217 | <!-- YAML |
1218 | 1218 | added: v0.1.92 |
1219 | 1219 | --> |
1220 | 1220 |
|
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. |
1224 | 1224 |
|
1225 | 1225 | ### crypto.getCiphers() |
1226 | 1226 | <!-- YAML |
@@ -1288,7 +1288,8 @@ console.log(alice_secret == bob_secret); |
1288 | 1288 | added: v0.9.3 |
1289 | 1289 | --> |
1290 | 1290 |
|
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`. |
1292 | 1293 |
|
1293 | 1294 | Example: |
1294 | 1295 |
|
|