From f3dc5db0693e12aa0258040fb5b66e6b56bfbcf7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 13 Sep 2016 02:22:49 -0300 Subject: [PATCH] test --- crypto777/jpeg/unix/jmemname.c | 2 +- crypto777/scrypt.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crypto777/jpeg/unix/jmemname.c b/crypto777/jpeg/unix/jmemname.c index 4bcd66290..631bd8922 100755 --- a/crypto777/jpeg/unix/jmemname.c +++ b/crypto777/jpeg/unix/jmemname.c @@ -11,7 +11,7 @@ * Also, the problem of determining the amount of memory available * is shoved onto the user. */ -#include +//#include #define JPEG_INTERNALS #include "../jinclude.h" diff --git a/crypto777/scrypt.c b/crypto777/scrypt.c index 99ce4a04a..fa482eaf8 100755 --- a/crypto777/scrypt.c +++ b/crypto777/scrypt.c @@ -344,7 +344,12 @@ static inline void scrypt_core(uint32_t *X, uint32_t *V, int N) void scrypt_1024_1_1_256(const uint32_t *input,uint32_t *output,uint32_t *midstate,uint8_t *scratchpad, int N) { - uint32_t *V,tstate[8],ostate[8],X[32] __attribute__((aligned(128))); + uint32_t *V,tstate[8],ostate[8],X[32] +#ifndef WIN32 + __attribute__((aligned(128))) +#endif + ; + V = (uint32_t *)(((uintptr_t)(scratchpad) + 63) & ~ (uintptr_t)(63)); memcpy(tstate, midstate, 32); HMAC_SHA256_80_init(input, tstate, ostate);