Fixed bug

This commit is contained in:
MoneroOcean 2020-07-16 17:13:24 -07:00
parent 176f0edef3
commit 338b0b10f5
2 changed files with 4 additions and 6 deletions

View file

@ -368,12 +368,7 @@ int rx_sipesh_k12(void *out, size_t outlen, const void *in, size_t inlen)
int rx_yespower_k12(void *out, size_t outlen, const void *in, size_t inlen)
{
rx_blake2b(out, outlen, in, inlen, 0, 0);
yespower_params_t params = {
.version = YESPOWER_1_0,
.N = 2048,
.r = 8,
.pers = NULL
};
yespower_params_t params = { YESPOWER_1_0, 2048, 8, NULL };
if (yespower_tls((const uint8_t *)out, outlen, &params, (yespower_binary_t *)out)) return -1;
return KangarooTwelve((const unsigned char *)in, inlen, (unsigned char *)out, 32, 0, 0);
}