Lines Matching defs:tree_h
791 unsigned int tree_h = params->xmss_par.h;
874 idx_tree = idx >> tree_h;
875 idx_leaf = (idx & ((1 << tree_h)-1));
889 memcpy(sig_msg, states[0].auth, tree_h*n);
890 sig_msg += tree_h*n;
891 *sig_msg_len += tree_h*n;
902 memcpy(sig_msg, states[i].auth, tree_h*n);
903 sig_msg += tree_h*n;
904 *sig_msg_len += tree_h*n;
907 updates = (tree_h - k) >> 1;
911 if ((1 + idx_tree) * (1 << tree_h) + idx_leaf < (1ULL << h)) {
917 if (! (((idx + 1) & ((1ULL << ((i+1)*tree_h)) - 1)) == 0)) {
918 idx_leaf = (idx >> (tree_h * i)) & ((1 << tree_h)-1);
919 idx_tree = (idx >> (tree_h * (i+1)));
928 if ((1 + idx_tree) * (1 << tree_h) + idx_leaf < (1ULL << (h - tree_h * i))) {
941 setTreeADRS(ots_addr, ((idx + 1) >> ((i+2) * tree_h)));
942 setOTSADRS(ots_addr, (((idx >> ((i+1) * tree_h)) + 1) & ((1 << tree_h)-1)));
952 for (j = 0; j < tree_h-k; j++) {
974 unsigned int tree_h = params->xmss_par.h;
1023 idx_tree = idx >> tree_h;
1024 idx_leaf = (idx & ((1 << tree_h)-1));
1050 sig_msg += tree_h*n;
1051 sig_msg_len -= tree_h*n;
1055 idx_leaf = (idx_tree & ((1 << tree_h)-1));
1056 idx_tree = idx_tree >> tree_h;
1083 sig_msg += tree_h*n;
1084 sig_msg_len -= tree_h*n;