diff options
author | Loïc Hoguin <[email protected]> | 2019-03-05 13:34:48 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-03-06 12:42:40 +0100 |
commit | 2f0aff476c585524b4eb2d8edb13c5e7357c111d (patch) | |
tree | afccd817f3334f7c55bb5835cdbbeb2c130137f4 /lib/crypto/c_src/cipher.h | |
parent | 1378b465cfa5e6eb2311bb633a0ebae1a8de3773 (diff) | |
download | otp-2f0aff476c585524b4eb2d8edb13c5e7357c111d.tar.gz otp-2f0aff476c585524b4eb2d8edb13c5e7357c111d.tar.bz2 otp-2f0aff476c585524b4eb2d8edb13c5e7357c111d.zip |
Add crypto:cipher_info/1 and crypto:hash_info/1
Also adds some more aliases that contain the key length
in their name.
Diffstat (limited to 'lib/crypto/c_src/cipher.h')
-rw-r--r-- | lib/crypto/c_src/cipher.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/crypto/c_src/cipher.h b/lib/crypto/c_src/cipher.h index 6b43afea99..b0d9d324e1 100644 --- a/lib/crypto/c_src/cipher.h +++ b/lib/crypto/c_src/cipher.h @@ -61,12 +61,16 @@ struct evp_cipher_ctx { EVP_CIPHER_CTX* ctx; }; +ERL_NIF_TERM cipher_info_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); + int init_cipher_ctx(ErlNifEnv *env); void init_cipher_types(ErlNifEnv* env); +const struct cipher_type_t* get_cipher_type_no_key(ERL_NIF_TERM type); const struct cipher_type_t* get_cipher_type(ERL_NIF_TERM type, size_t key_len); int cmp_cipher_types(const void *keyp, const void *elemp); +int cmp_cipher_types_no_key(const void *keyp, const void *elemp); ERL_NIF_TERM cipher_types_as_list(ErlNifEnv* env); |