diff options
author | Hans Nilsson <[email protected]> | 2017-05-29 12:42:17 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-05-29 12:42:17 +0200 |
commit | 023c7e18b7b9d3abec6eb771159b221a00ee9272 (patch) | |
tree | 841e47b71a99931234b10267310edd1b9446d033 | |
parent | c13b302a9ca07b2ad418292dd24b663e0e8260e3 (diff) | |
parent | 1bdf315bff02faec73c327c9c170123e928388f0 (diff) | |
download | otp-023c7e18b7b9d3abec6eb771159b221a00ee9272.tar.gz otp-023c7e18b7b9d3abec6eb771159b221a00ee9272.tar.bz2 otp-023c7e18b7b9d3abec6eb771159b221a00ee9272.zip |
Merge pull request #1462 from Vagabond/adt-fix-aes-cfb128
Fix backwards equality check in aes cfb128 function
OTP-14435
-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 793cff166c..4ae7edd8b2 100644 --- a/lib/crypto/c_src/crypto.c +++ b/lib/crypto/c_src/crypto.c @@ -1845,7 +1845,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; } |