mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
lyra2: set blake 256 rounds
This commit is contained in:
parent
37a8402c12
commit
803476d0ad
2 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,8 @@ void lyra2re_hash(const char* input, char* output, uint32_t len)
|
|||
sph_keccak256_context ctx_keccak;
|
||||
sph_skein256_context ctx_skein;
|
||||
|
||||
sph_blake256_set_rounds(14);
|
||||
|
||||
sph_blake256_init(&ctx_blake);
|
||||
sph_blake256 (&ctx_blake, input, len); /* 80 */
|
||||
sph_blake256_close (&ctx_blake, hashA);
|
||||
|
|
|
@ -48,6 +48,8 @@ void lyra2v2_hash(const char* input, char* output, uint32_t len)
|
|||
sph_skein256_context ctx_skein;
|
||||
sph_bmw256_context ctx_bmw;
|
||||
|
||||
sph_blake256_set_rounds(14);
|
||||
|
||||
sph_blake256_init(&ctx_blake);
|
||||
sph_blake256(&ctx_blake, input, len); /* 80 */
|
||||
sph_blake256_close(&ctx_blake, hashA);
|
||||
|
|
Loading…
Add table
Reference in a new issue