Skip to content

Commit

Permalink
fix: remove constant 8 and replace with weights.len
Browse files Browse the repository at this point in the history
  • Loading branch information
jimouris committed Apr 2, 2024
1 parent b848505 commit bc90d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encrypted_lr_dwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn main() {
let lut_gen_start = Instant::now();
println!("Generating LUT.");
let mut dummy = server_key.create_trivial_radix(2_u64, (nb_blocks << 1).into());
for _i in 0..8 {
for _ in 0..weights_int.len() {
let dummy_2 = server_key.smart_scalar_mul(&mut dummy, 2_u64);
dummy = server_key.unchecked_add(&dummy_2, &dummy);
}
Expand Down

0 comments on commit bc90d19

Please sign in to comment.