• Home
  • Raw
  • Download

Lines Matching refs:tree_h

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