mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
v3.5.4
This commit is contained in:
@@ -33,7 +33,7 @@ void init_lyra2re_ctx()
|
||||
#ifdef NO_AES_NI
|
||||
sph_groestl256_init(&lyra2re_ctx.groestl);
|
||||
#else
|
||||
init_groestl256( &lyra2re_ctx.groestl );
|
||||
init_groestl256( &lyra2re_ctx.groestl, 32 );
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -62,8 +62,7 @@ void lyra2re_hash(void *state, const void *input)
|
||||
sph_groestl256( &ctx.groestl, hashB, 32 );
|
||||
sph_groestl256_close( &ctx.groestl, hashA );
|
||||
#else
|
||||
update_groestl256( &ctx.groestl, hashB, 256 );
|
||||
final_groestl256( &ctx.groestl, hashA );
|
||||
update_and_final_groestl256( &ctx.groestl, hashA, hashB, 256 );
|
||||
#endif
|
||||
|
||||
memcpy(state, hashA, 32);
|
||||
|
||||
@@ -48,16 +48,20 @@ void lyra2rev2_hash( void *state, const void *input )
|
||||
sph_keccak256( &ctx.keccak, hashA, 32 );
|
||||
sph_keccak256_close(&ctx.keccak, hashB);
|
||||
|
||||
cubehashUpdate( &ctx.cube1, (const byte*) hashB,32 );
|
||||
cubehashDigest( &ctx.cube1, (byte*)hashA );
|
||||
cubehashUpdateDigest( &ctx.cube1, (byte*) hashA,
|
||||
(const byte*) hashB, 32 );
|
||||
// cubehashUpdate( &ctx.cube1, (const byte*) hashB,32 );
|
||||
// cubehashDigest( &ctx.cube1, (byte*)hashA );
|
||||
|
||||
LYRA2( hashA, 32, hashA, 32, hashA, 32, 1, 4, 4 );
|
||||
|
||||
sph_skein256( &ctx.skein, hashA, 32 );
|
||||
sph_skein256_close( &ctx.skein, hashB );
|
||||
|
||||
cubehashUpdate( &ctx.cube2, (const byte*) hashB,32 );
|
||||
cubehashDigest( &ctx.cube2, (byte*)hashA );
|
||||
cubehashUpdateDigest( &ctx.cube2, (byte*) hashA,
|
||||
(const byte*) hashB, 32 );
|
||||
// cubehashUpdate( &ctx.cube2, (const byte*) hashB,32 );
|
||||
// cubehashDigest( &ctx.cube2, (byte*)hashA );
|
||||
|
||||
sph_bmw256( &ctx.bmw, hashA, 32 );
|
||||
sph_bmw256_close( &ctx.bmw, hashB );
|
||||
|
||||
Reference in New Issue
Block a user