Browse Source

Make auth tree computation stop at the root

master
Joost Rijneveld 9 years ago
parent
commit
6ee57d1883
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      xmss.c

+ 1
- 1
xmss.c View File

@@ -327,7 +327,7 @@ static void compute_authpath_wots(unsigned char *root, unsigned char *authpath,
level = 0;
// Compute tree:
// 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);
// Inner loop: for each pair of sibling nodes


Loading…
Cancel
Save