瀏覽代碼

Make auth tree computation stop at the root

master
Joost Rijneveld 9 年之前
父節點
當前提交
6ee57d1883
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      xmss.c

+ 1
- 1
xmss.c 查看文件

@@ -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…
取消
儲存