Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
f3dc5db069
  1. 2
      crypto777/jpeg/unix/jmemname.c
  2. 7
      crypto777/scrypt.c

2
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 <unistd.h>
//#include <unistd.h>
#define JPEG_INTERNALS
#include "../jinclude.h"

7
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);

Loading…
Cancel
Save