Skip to content

Commit

Permalink
doc: update reference of where to list hash algorithms in crypto.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
sstern6 committed Oct 14, 2016
1 parent c457b92 commit 34d4bfc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1241,18 +1241,18 @@ input.on('readable', () => {
added: v0.1.92
-->

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

### crypto.createVerify(algorithm)
<!-- YAML
added: v0.1.92
-->

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

### crypto.getCiphers()
<!-- YAML
Expand Down Expand Up @@ -1320,7 +1320,8 @@ console.log(alice_secret == bob_secret);
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:

Expand Down

0 comments on commit 34d4bfc

Please sign in to comment.