Make XMSSMT WOTS memory usage more accurate

This commit is contained in:
Joost Rijneveld 2017-10-30 12:31:33 +01:00
parent 59d304027c
commit ac55d2ccf2
No known key found for this signature in database
GPG Key ID: A4FE39CF49CBC553

View File

@ -45,7 +45,7 @@ int main()
treehash_inst treehash[(2*d-1) * (tree_h-k)]; treehash_inst treehash[(2*d-1) * (tree_h-k)];
unsigned char th_nodes[(2*d-1) * (tree_h-k)*n]; unsigned char th_nodes[(2*d-1) * (tree_h-k)*n];
unsigned char retain[(2*d-1) * ((1 << k) - k - 1)*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' // first d are 'regular' states, second d are 'next'; top tree has no 'next'
bds_state states[2*d-1]; bds_state states[2*d-1];