Fix prf when n != 32

It wrongfully assumed that 2n + 32 = 3n
This commit is contained in:
Joost Rijneveld 2017-11-01 16:07:06 +01:00
parent daa4e2d6db
commit 51790b9d57
No known key found for this signature in database
GPG Key ID: A4FE39CF49CBC553

2
hash.c
View File

@ -56,7 +56,7 @@ int prf(const xmss_params *params,
memcpy(buf + params->n, key, params->n);
memcpy(buf + 2*params->n, in, 32);
return core_hash(params, out, buf, 3 * params->n);
return core_hash(params, out, buf, 2*params->n + 32);
}
/*