From 0538af517332412f6e98831cb311255ea4559ff8 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 5 Jan 2019 09:54:42 -0500 Subject: [PATCH] Update comments --- config.h | 2 +- osrng.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index 7e9d448b..ee076fa8 100644 --- a/config.h +++ b/config.h @@ -921,7 +921,7 @@ NAMESPACE_END #ifndef NO_OS_DEPENDENCE -#if defined(_WIN32) || defined(__CYGWIN__) +#if defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__) #define CRYPTOPP_WIN32_AVAILABLE #endif diff --git a/osrng.cpp b/osrng.cpp index 6d36aaea..a7253254 100644 --- a/osrng.cpp +++ b/osrng.cpp @@ -10,6 +10,7 @@ // Win32 has CryptoAPI and . Windows 10 and Windows Store 10 have CNG and . // There's a hole for Windows Phone 8 and Windows Store 8. There is no userland crypto available. // Also see http://stackoverflow.com/questions/36974545/random-numbers-for-windows-phone-8-and-windows-store-8 +// and https://social.msdn.microsoft.com/Forums/vstudio/en-US/25b83e13-c85f-4aa1-a057-88a279ea3fd6/what-crypto-random-generator-c-code-could-use-on-wp81 #if defined(CRYPTOPP_WIN32_AVAILABLE) && !defined(OS_RNG_AVAILABLE) # pragma message("WARNING: Compiling for Windows but an OS RNG is not available. This is likely a Windows Phone 8 or Windows Store 8 app.") #endif