[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-dev] AES_ctr128_encrypt() on Windows



Seems that this function isn't available in OpenSSL 1.1.0. On Windows
at least. The function is enclosed in a "#if 0" in OpenSSL's <aes.h> and util/libeay.num also has this:
 AES_ctr128_encrypt    3216    NOEXIST::FUNCTION:

So should we make an exception for Windows in common/aes.c:

--- Git-latest/src/common/aes.c      Mon Dec 05 16:54:55 2011
+++ src/common/aes.c        Wed Dec 07 18:42:37 2011
@@ -17,7 +17,7 @@
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/engine.h>
-#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+#if (OPENSSL_VERSION_NUMBER >= 0x10000000L) && !defined(MS_WINDOWS)
/* See comments about which counter mode implementation to use below. */
#include <openssl/modes.h>
#define USE_OPENSSL_CTR

--gv
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev