aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-05-29 12:42:17 +0200
committerGitHub <[email protected]>2017-05-29 12:42:17 +0200
commit023c7e18b7b9d3abec6eb771159b221a00ee9272 (patch)
tree841e47b71a99931234b10267310edd1b9446d033 /lib/crypto
parentc13b302a9ca07b2ad418292dd24b663e0e8260e3 (diff)
parent1bdf315bff02faec73c327c9c170123e928388f0 (diff)
downloadotp-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
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/c_src/crypto.c2
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;
}