Make auth tree computation stop at the root
This commit is contained in:
parent
1511c0bdf7
commit
6ee57d1883
2
xmss.c
2
xmss.c
@ -327,7 +327,7 @@ static void compute_authpath_wots(unsigned char *root, unsigned char *authpath,
|
|||||||
level = 0;
|
level = 0;
|
||||||
// Compute tree:
|
// Compute tree:
|
||||||
// Outer loop: For each inner layer
|
// Outer loop: For each inner layer
|
||||||
for (i = (1<<h); i > 0; i>>=1)
|
for (i = (1<<h); i > 1; i>>=1)
|
||||||
{
|
{
|
||||||
SET_NODE_TREE_HEIGHT(node_addr, level);
|
SET_NODE_TREE_HEIGHT(node_addr, level);
|
||||||
// Inner loop: for each pair of sibling nodes
|
// Inner loop: for each pair of sibling nodes
|
||||||
|
Loading…
Reference in New Issue
Block a user