diff options
author | Doug Hogan <[email protected]> | 2018-12-20 02:07:44 -0800 |
---|---|---|
committer | Doug Hogan <[email protected]> | 2018-12-20 02:30:52 -0800 |
commit | cf23c663c5dc3995097ad29f18f54bc366391e7b (patch) | |
tree | ec813bfe0391bba606176c2e287763afc4a5f226 /lib/crypto/c_src/aes.h | |
parent | 1f45e29e6fbd81f6c844b550a96b6d687b521fef (diff) | |
download | otp-cf23c663c5dc3995097ad29f18f54bc366391e7b.tar.gz otp-cf23c663c5dc3995097ad29f18f54bc366391e7b.tar.bz2 otp-cf23c663c5dc3995097ad29f18f54bc366391e7b.zip |
Move AES functionality to a new file
Diffstat (limited to 'lib/crypto/c_src/aes.h')
-rw-r--r-- | lib/crypto/c_src/aes.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/crypto/c_src/aes.h b/lib/crypto/c_src/aes.h new file mode 100644 index 0000000000..3bb94665d7 --- /dev/null +++ b/lib/crypto/c_src/aes.h @@ -0,0 +1,16 @@ +#ifndef E_AES_H__ +#define E_AES_H__ 1 + +#include "common.h" + +ERL_NIF_TERM aes_cfb_8_crypt(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM aes_cfb_128_crypt_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM aes_ige_crypt_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM aes_ctr_stream_init(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +ERL_NIF_TERM aes_ctr_stream_encrypt(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); + +#ifdef HAVE_GCM_EVP_DECRYPT_BUG +ERL_NIF_TERM aes_gcm_decrypt_NO_EVP(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]); +#endif + +#endif /* E_AES_H__ */ |