Skip to content

Commit

Permalink
FIXUP WIP More throughly use SstExtension and Option
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Sep 6, 2024
1 parent ac11939 commit d46ce2b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/hss/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ impl<H: HashChain> HssPrivateKey<H> {
return hss_expand_aux_data::<H>(Some(aux_data), Some(private_key.seed.as_slice()));
}

let opt_l0_top_div = if let Some(sst_extension) = &private_key.sst_option {
Some(sst_extension.l0_top_div())
} else {
None
};
let opt_l0_top_div = private_key
.sst_option
.as_ref()
.map(|sst_extension| sst_extension.l0_top_div());

// Shrink input slice
let aux_len = hss_get_aux_data_len(aux_data.len(), *top_lms_parameter, opt_l0_top_div);
Expand Down

0 comments on commit d46ce2b

Please sign in to comment.