diff options
author | Hans Nilsson <[email protected]> | 2018-05-25 10:21:35 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-06-11 11:00:07 +0200 |
commit | fc7ae23305a2de8ebb27e0ce723c4b3a71c9d4fc (patch) | |
tree | 2ef86f3365cc90def6f7710c8417484c98e5723f /lib/crypto/src | |
parent | 1e9b73b9baa569354145d8f1a6fd897080aa78d5 (diff) | |
download | otp-fc7ae23305a2de8ebb27e0ce723c4b3a71c9d4fc.tar.gz otp-fc7ae23305a2de8ebb27e0ce723c4b3a71c9d4fc.tar.bz2 otp-fc7ae23305a2de8ebb27e0ce723c4b3a71c9d4fc.zip |
crypto: Extend crypto:supports with 'curves'
"curves" in crypto:supports returns list of actually supported ec_curves
Diffstat (limited to 'lib/crypto/src')
-rw-r--r-- | lib/crypto/src/crypto.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl index 46775989ae..6cff8a487a 100644 --- a/lib/crypto/src/crypto.erl +++ b/lib/crypto/src/crypto.erl @@ -107,12 +107,13 @@ stop() -> application:stop(crypto). supports()-> - {Hashs, PubKeys, Ciphers, Macs} = algorithms(), + {Hashs, PubKeys, Ciphers, Macs, Curves} = algorithms(), [{hashs, Hashs}, {ciphers, Ciphers}, {public_keys, PubKeys}, - {macs, Macs} + {macs, Macs}, + {curves, Curves} ]. info_lib() -> ?nif_stub. |