Make auth tree computation stop at the root

This commit is contained in:
Joost Rijneveld 2015-08-26 11:51:39 +02:00
parent 1511c0bdf7
commit 6ee57d1883

2
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