doc: update reference to list hash algorithms in crypto.md
PR-URL: https://github.com/nodejs/node/pull/9043 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
6ef6d42cce
commit
3d294cf0c4
@ -1241,18 +1241,18 @@ input.on('readable', () => {
|
|||||||
added: v0.1.92
|
added: v0.1.92
|
||||||
-->
|
-->
|
||||||
|
|
||||||
Creates and returns a `Sign` object that uses the given `algorithm`. On
|
Creates and returns a `Sign` object that uses the given `algorithm`.
|
||||||
recent OpenSSL releases, `openssl list-public-key-algorithms` will
|
Use [`crypto.getHashes()`][] to obtain an array of names of the available
|
||||||
display the available signing algorithms. One example is `'RSA-SHA256'`.
|
signing algorithms.
|
||||||
|
|
||||||
### crypto.createVerify(algorithm)
|
### crypto.createVerify(algorithm)
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v0.1.92
|
added: v0.1.92
|
||||||
-->
|
-->
|
||||||
|
|
||||||
Creates and returns a `Verify` object that uses the given algorithm. On
|
Creates and returns a `Verify` object that uses the given algorithm.
|
||||||
recent OpenSSL releases, `openssl list-public-key-algorithms` will
|
Use [`crypto.getHashes()`][] to obtain an array of names of the available
|
||||||
display the available signing algorithms. One example is `'RSA-SHA256'`.
|
signing algorithms.
|
||||||
|
|
||||||
### crypto.getCiphers()
|
### crypto.getCiphers()
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
@ -1320,7 +1320,8 @@ console.log(alice_secret == bob_secret);
|
|||||||
added: v0.9.3
|
added: v0.9.3
|
||||||
-->
|
-->
|
||||||
|
|
||||||
Returns an array with the names of the supported hash algorithms.
|
Returns an array of the names of the supported hash algorithms,
|
||||||
|
such as `RSA-SHA256`.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user