diff --git a/src/hss/definitions.rs b/src/hss/definitions.rs index cbaae67..c203169 100644 --- a/src/hss/definitions.rs +++ b/src/hss/definitions.rs @@ -20,7 +20,7 @@ use crate::{ signing::LmsSignature, }, sst::helper::get_subtree_node_idx, - sst::parameters::SstExtension, + //sst::parameters::SstExtension, util::helper::read_and_advance, }; @@ -44,29 +44,31 @@ impl HssPrivateKey { pub fn from( private_key: &ReferenceImplPrivateKey, aux_data: &mut Option, - tree_identifier: Option<&[u8; ILEN]>, + _tree_identifier: Option<&[u8; ILEN]>, ) -> Result { let mut hss_private_key: HssPrivateKey = Default::default(); let mut current_seed = private_key.generate_root_seed_and_lms_tree_identifier(); - if let Some(tree_identifier) = tree_identifier { - current_seed - .lms_tree_identifier - .clone_from_slice(tree_identifier); - } + //if let Some(tree_identifier) = tree_identifier { + // current_seed + // .lms_tree_identifier + // .clone_from_slice(tree_identifier); + //} let parameters = private_key.compressed_parameter.to::()?; let used_leafs_indexes = private_key.compressed_used_leafs_indexes.to(¶meters); - let mut sst_ext_option = None; - let sst_ext = SstExtension { - signing_entity_idx: private_key.sst_ext.signing_entity_idx, - l0_top_div: private_key.sst_ext.l0_top_div, - }; - if private_key.sst_ext.signing_entity_idx != 0 { - sst_ext_option = Some(sst_ext); - } + //let sst_ext = SstExtension { + // signing_entity_idx: private_key.sst_ext.signing_entity_idx, + // l0_top_div: private_key.sst_ext.l0_top_div, + //}; + let sst_ext_option = None; + //let sst_ext_option = if sst_ext != SstExtension::default() { + // Some(sst_ext) + //} else { + // None + //}; let lms_private_key = LmsPrivateKey { seed: current_seed.seed.clone(),