Michael A.
Michael A.
This is what I get when I try to compile libsodium for Windows ARM in Visual Studio 2013: ``` error C3861: '__cpuid': identifier not found -- sodium\runtime.c error C2079: 'tv'...
There are memoryapi classes (VirtualLock etc) in Windows Phone Kits\8.1\Include\minwin\memoryapi.h, but, alas, they are inside `#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)` block.
@jedisct1 Thanks for looking into the issue! I excluded randombytes_salsa20_random.c from the project since I don't use it, and this eliminated `timeval` errors. Windows Store apps do not support Winsock...
@jedisct1 I added a couple of lines in utils.c and runtime.c just above your previous additions. Did so according to http://blogs.msdn.com/b/chuckw/archive/2012/09/18/dual-use-coding-techniques-for-games-part-3.aspx ``` c #ifdef _WIN32 # define WINAPI_DESKTOP # if...
Oh, well, shit just got real. While the project does compile for windows phone 8.1, it still does not compile as a part of a Windows Store project (universal project...
@jedisct1 Will give it another try this week! For several months I've been using js implementation of nacl through web view, which is of course ridiculous (not to say hilarious),...
@jedisct1 So, I gave it another try and was partly successfull. I was able to compile libsodium for ARM and x86/x64 in a Windows Runtime Component project for Universal Apps...
@jedisct1 @adamcaudill Looks like windows phone 8.1 stops loading library assemblies once I include randombytes_sysrandom.c into project. The library compiles. I commented out a couple of lines in core.c and...
@jedisct1 @adamcaudill Looks like `RtlGenRandom` is not available on wp 8.1, so this doesn't work: ``` // randombytes_sysrandom.c #ifdef _WIN32 # include # define RtlGenRandom SystemFunction036 # if defined(__cplusplus) extern...
@jedisct1 There is `wincrypt.h` file in Windows Kit 8.1, and it does contain `CryptGenRandom()`. But almost all of the code there, including CryptGenRandom(), is inside `#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)`, so it's desktop...