|
|
@ -43,7 +43,7 @@ |
|
|
|
* Encode a length len/4 vector of (uint32_t) into a length len vector of |
|
|
|
* Encode a length len/4 vector of (uint32_t) into a length len vector of |
|
|
|
* (unsigned char) in big-endian form. Assumes len is a multiple of 4. |
|
|
|
* (unsigned char) in big-endian form. Assumes len is a multiple of 4. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
static inline void |
|
|
|
static void |
|
|
|
be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) |
|
|
|
be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint32_t i; |
|
|
|
uint32_t i; |
|
|
@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) |
|
|
|
|
|
|
|
|
|
|
|
static const uint32_t diff1targ_blake256 = 0x000000ff; |
|
|
|
static const uint32_t diff1targ_blake256 = 0x000000ff; |
|
|
|
|
|
|
|
|
|
|
|
inline void blakecoinhash(void *state, const void *input) |
|
|
|
void blakecoinhash(void *state, const void *input) |
|
|
|
{ |
|
|
|
{ |
|
|
|
sph_blake256_context ctx_blake; |
|
|
|
sph_blake256_context ctx_blake; |
|
|
|
sph_blake256_init(&ctx_blake); |
|
|
|
sph_blake256_init(&ctx_blake); |
|
|
|