瀏覽代碼

Fix prf when n != 32

It wrongfully assumed that 2n + 32 = 3n
master
Joost Rijneveld 7 年之前
父節點
當前提交
51790b9d57
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A4FE39CF49CBC553
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      hash.c

+ 1
- 1
hash.c 查看文件

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