Skip to content

Commit

Permalink
fix implicit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
FAlbertDev committed Sep 27, 2023
1 parent c6faea5 commit 395aeb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/pubkey/hss_lms/hss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ std::vector<LMS_Tree_Node_Idx> derive_lms_leaf_indices_from_hss_index(HSS_Sig_Id
HSS_Level layer(layer_ctr);
const HSS_LMS_Params::LMS_LMOTS_Params_Pair& layer_params = hss_params.params_at_level(layer);
size_t layer_h = layer_params.lms_params().h();
q.at(layer.get()) = LMS_Tree_Node_Idx(static_cast<uint32_t>(hss_idx.get() % (1UL << layer_h)));
q.at(layer.get()) =
LMS_Tree_Node_Idx(static_cast<uint32_t>(hss_idx.get() % static_cast<uint64_t>(1UL << layer_h)));
hss_idx = hss_idx >> layer_h;
}
BOTAN_ARG_CHECK(hss_idx == HSS_Sig_Idx(0), "HSS Tree is exhausted");
Expand Down

0 comments on commit 395aeb0

Please sign in to comment.