From ac55d2ccf26015c51d98023183d19ae024471ca9 Mon Sep 17 00:00:00 2001 From: Joost Rijneveld Date: Mon, 30 Oct 2017 12:31:33 +0100 Subject: [PATCH] Make XMSSMT WOTS memory usage more accurate --- test/xmssmt_core_fast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/xmssmt_core_fast.c b/test/xmssmt_core_fast.c index 549429a..1c1ede8 100644 --- a/test/xmssmt_core_fast.c +++ b/test/xmssmt_core_fast.c @@ -45,7 +45,7 @@ int main() treehash_inst treehash[(2*d-1) * (tree_h-k)]; unsigned char th_nodes[(2*d-1) * (tree_h-k)*n]; unsigned char retain[(2*d-1) * ((1 << k) - k - 1)*n]; - unsigned char wots_sigs[d * params.wots_sig_bytes]; + unsigned char wots_sigs[(d-1) * params.wots_sig_bytes]; // first d are 'regular' states, second d are 'next'; top tree has no 'next' bds_state states[2*d-1];