Fixed bug
This commit is contained in:
parent
5eafa9e455
commit
26e91c516b
1 changed files with 7 additions and 0 deletions
|
@ -368,6 +368,13 @@ 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)
|
int rx_yespower_k12(void *out, size_t outlen, const void *in, size_t inlen)
|
||||||
{
|
{
|
||||||
rx_blake2b(out, outlen, in, inlen, 0, 0);
|
rx_blake2b(out, outlen, in, inlen, 0, 0);
|
||||||
|
yespower_params_t params = {
|
||||||
|
.version = YESPOWER_1_0,
|
||||||
|
.N = 2048,
|
||||||
|
.r = 8,
|
||||||
|
.pers = NULL
|
||||||
|
};
|
||||||
|
if (yespower_tls((const uint8_t *)out, outlen, ¶ms, (yespower_binary_t *)out)) return -1;
|
||||||
yespower_hash(out, outlen, out);
|
yespower_hash(out, outlen, out);
|
||||||
return KangarooTwelve((const unsigned char *)in, inlen, (unsigned char *)out, 32, 0, 0);
|
return KangarooTwelve((const unsigned char *)in, inlen, (unsigned char *)out, 32, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue