From de2f050ac3b35d7123e6f435521c5deb1e143b48 Mon Sep 17 00:00:00 2001 From: scott stern Date: Tue, 11 Oct 2016 16:20:51 -0700 Subject: [PATCH] doc: update reference to list hash algorithms in crypto.md PR-URL: https://github.com/nodejs/node/pull/9043 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Rich Trott --- doc/api/crypto.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 8b99eed1e27e0b..033d3abb99c73d 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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) -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() -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: