From f48505bfb2b479694c01f7c56bd3548dfe243f46 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Wed, 15 Mar 2017 15:42:28 +0800 Subject: Update to openssl 1.0.2k Signed-off-by: Gary Lin --- Cryptlib/OpenSSL/crypto/modes/ctr128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cryptlib/OpenSSL/crypto/modes/ctr128.c') diff --git a/Cryptlib/OpenSSL/crypto/modes/ctr128.c b/Cryptlib/OpenSSL/crypto/modes/ctr128.c index bcafd6b6..d4b22728 100644 --- a/Cryptlib/OpenSSL/crypto/modes/ctr128.c +++ b/Cryptlib/OpenSSL/crypto/modes/ctr128.c @@ -100,7 +100,7 @@ static void ctr128_inc_aligned(unsigned char *counter) --n; d = data[n] += c; /* did addition carry? */ - c = ((d - c) ^ d) >> (sizeof(size_t) * 8 - 1); + c = ((d - c) & ~d) >> (sizeof(size_t) * 8 - 1); } while (n); } #endif -- cgit v1.2.3