libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.
https://www.libtom.net
Other
1.51k stars 449 forks source link

Cannot compile with msvc2012 x86 #637

Closed stef-pellegrino closed 8 months ago

stef-pellegrino commented 8 months ago

Hi,

Get this error under windows11, with old msvc 2012 x86 :

nmake -f makefile.mscv ... src/prngs/rng_get_bytes.c(117) : error C2143: syntax error : missing ';' before 'type' rc/prngs/rng_get_bytes.c(118) : error C2065: 'hProv' : undeclared identifier src/prngs/rng_get_bytes.c(126) : error C2065: 'hProv' : undeclared identifier src/prngs/rng_get_bytes.c(129) : error C2065: 'hProv' : undeclared identifier

An idea ? Thanks

sjaeckel commented 8 months ago

Oh wow MSVC.

You can apply the src/prngs/rng_get_bytes.c part of b182b973ffc4ba629ac087ce53eaa5b4bcdf0dd9, this apparently fixes the error.