diff --git a/Xcoin.c b/Xcoin.c index 43d8aed..72be795 100644 --- a/Xcoin.c +++ b/Xcoin.c @@ -79,25 +79,25 @@ static void Xhash(void *state, const void *input) sph_keccak512 (&ctx.keccak1, hashA, 64); sph_keccak512_close(&ctx.keccak1, hashB); - sph_gost512 (&ctx.gost1, hashA, 64); - sph_gost512_close(&ctx.gost1, hashB); + sph_gost512 (&ctx.gost1, hashB, 64); + sph_gost512_close(&ctx.gost1, hashA); - sph_luffa512 (&ctx.luffa1, hashB, 64); - sph_luffa512_close (&ctx.luffa1, hashA); + sph_luffa512 (&ctx.luffa1, hashA, 64); + sph_luffa512_close (&ctx.luffa1, hashB); - sph_cubehash512 (&ctx.cubehash1, hashA, 64); - sph_cubehash512_close(&ctx.cubehash1, hashB); + sph_cubehash512 (&ctx.cubehash1, hashB, 64); + sph_cubehash512_close(&ctx.cubehash1, hashA); - sph_shavite512 (&ctx.shavite1, hashB, 64); - sph_shavite512_close(&ctx.shavite1, hashA); + sph_shavite512 (&ctx.shavite1, hashA, 64); + sph_shavite512_close(&ctx.shavite1, hashB); - sph_simd512 (&ctx.simd1, hashA, 64); - sph_simd512_close(&ctx.simd1, hashB); + sph_simd512 (&ctx.simd1, hashB, 64); + sph_simd512_close(&ctx.simd1, hashA); - sph_echo512 (&ctx.echo1, hashB, 64); - sph_echo512_close(&ctx.echo1, hashA); + sph_echo512 (&ctx.echo1, hashA, 64); + sph_echo512_close(&ctx.echo1, hashB); - memcpy(state, hashA, 32); + memcpy(state, hashB, 32); }