diff options
author | Andrew Thompson <[email protected]> | 2017-05-15 18:45:48 -0700 |
---|---|---|
committer | Andrew Thompson <[email protected]> | 2017-05-15 18:45:48 -0700 |
commit | 1bdf315bff02faec73c327c9c170123e928388f0 (patch) | |
tree | f44bee82e345028bc7dd113277fb653c66dc5593 /lib/crypto/c_src/crypto.c | |
parent | 8baada6ba97f7809c99cae4e799fddb273a54882 (diff) | |
download | otp-1bdf315bff02faec73c327c9c170123e928388f0.tar.gz otp-1bdf315bff02faec73c327c9c170123e928388f0.tar.bz2 otp-1bdf315bff02faec73c327c9c170123e928388f0.zip |
Fix backwards equality check in aes cfb128 function
Diffstat (limited to 'lib/crypto/c_src/crypto.c')
-rw-r--r-- | lib/crypto/c_src/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c index 3f0439ed80..d08893b307 100644 --- a/lib/crypto/c_src/crypto.c +++ b/lib/crypto/c_src/crypto.c @@ -1848,7 +1848,7 @@ static ERL_NIF_TERM aes_cfb_128_crypt_nif(ErlNifEnv* env, int argc, const ERL_NI AES_cfb128_encrypt((unsigned char *) text.data, enif_make_new_binary(env, text.size, &ret), text.size, &aes_key, ivec_clone, &new_ivlen, - (argv[3] != atom_true)); + (argv[3] == atom_true)); CONSUME_REDS(env,text); return ret; } |