Fix prf when n != 32
It wrongfully assumed that 2n + 32 = 3n
This commit is contained in:
parent
daa4e2d6db
commit
51790b9d57
2
hash.c
2
hash.c
@ -56,7 +56,7 @@ int prf(const xmss_params *params,
|
|||||||
memcpy(buf + params->n, key, params->n);
|
memcpy(buf + params->n, key, params->n);
|
||||||
memcpy(buf + 2*params->n, in, 32);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user