Browse Source

Fix prf when n != 32

It wrongfully assumed that 2n + 32 = 3n
master
Joost Rijneveld 7 years ago
parent
commit
51790b9d57
No known key found for this signature in database GPG Key ID: A4FE39CF49CBC553
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hash.c

+ 1
- 1
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);
}

/*


Loading…
Cancel
Save