summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2015-06-08 12:26:16 -0400
committerBrian White <mscdex@mscdex.net>2015-06-08 12:35:41 -0400
commit38d1afc24d899cdba6a6981197c664cc991ef64a (patch)
tree3a49779d936c5955285fce3b113cb54667295a33 /doc
parentff39ecb91403093c471cce2bb1c1bad34c2a79a6 (diff)
downloadnodejs-38d1afc24d899cdba6a6981197c664cc991ef64a.tar.gz
nodejs-38d1afc24d899cdba6a6981197c664cc991ef64a.tar.bz2
nodejs-38d1afc24d899cdba6a6981197c664cc991ef64a.zip
crypto: add getCurves() to get supported ECs
PR-URL: https://github.com/nodejs/io.js/pull/1914 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/crypto.markdown12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown
index df5f28e5f..6e2e1ef99 100644
--- a/doc/api/crypto.markdown
+++ b/doc/api/crypto.markdown
@@ -42,7 +42,7 @@ Returns an array with the names of the supported ciphers.
Example:
var ciphers = crypto.getCiphers();
- console.log(ciphers); // ['AES-128-CBC', 'AES-128-CBC-HMAC-SHA1', ...]
+ console.log(ciphers); // ['aes-128-cbc', 'aes-128-ccm', ...]
## crypto.getHashes()
@@ -55,6 +55,16 @@ Example:
console.log(hashes); // ['sha', 'sha1', 'sha1WithRSAEncryption', ...]
+## crypto.getCurves()
+
+Returns an array with the names of the supported elliptic curves.
+
+Example:
+
+ var curves = crypto.getCurves();
+ console.log(curves); // ['secp256k1', 'secp384r1', ...]
+
+
## crypto.createCredentials(details)
Stability: 0 - Deprecated. Use [tls.createSecureContext][] instead.