diff options
author | Hans Nilsson <[email protected]> | 2019-04-16 12:27:15 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2019-04-17 16:35:20 +0200 |
commit | c500d66b68ff0fe174128926318f3eead4dcbb15 (patch) | |
tree | 19578100cefe6fb9208186b36ea9215812c58cd5 /lib/crypto/c_src/algorithms.h | |
parent | 2587405769912b165b4c97d827411db09d7a7882 (diff) | |
download | otp-c500d66b68ff0fe174128926318f3eead4dcbb15.tar.gz otp-c500d66b68ff0fe174128926318f3eead4dcbb15.tar.bz2 otp-c500d66b68ff0fe174128926318f3eead4dcbb15.zip |
crypto: New function supports/1
Takes argument hashs, public_keys, ciphers, macs, curves or rsa_opts. Returns the algorithm names, but ONLY the openssl names. supports/0 still returns aliases and misspellings.
Diffstat (limited to 'lib/crypto/c_src/algorithms.h')
-rw-r--r-- | lib/crypto/c_src/algorithms.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/crypto/c_src/algorithms.h b/lib/crypto/c_src/algorithms.h index 068fb661ec..4ad8b56db8 100644 --- a/lib/crypto/c_src/algorithms.h +++ b/lib/crypto/c_src/algorithms.h @@ -25,6 +25,11 @@ void init_algorithms_types(ErlNifEnv* env); -ERL_NIF_TERM algorithms(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM hash_algorithms(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM pubkey_algorithms(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM cipher_algorithms(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM mac_algorithms(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM curve_algorithms(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM rsa_opts_algorithms(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); #endif /* E_ALGORITHMS_H__ */ |