From fc7ae23305a2de8ebb27e0ce723c4b3a71c9d4fc Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Fri, 25 May 2018 10:21:35 +0200 Subject: crypto: Extend crypto:supports with 'curves' "curves" in crypto:supports returns list of actually supported ec_curves --- lib/crypto/src/crypto.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/crypto/src') 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. -- cgit v1.2.3