Browse Source

Use references, not copies, in the inner loop of gen

Ian Goldberg 5 months ago
parent
commit
6b436ac7c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/shine.rs

+ 1 - 1
src/shine.rs

@@ -135,7 +135,7 @@ impl PreprocKey {
         let d = self
             .secrets
             .iter()
-            .map(|&(phi, lagrange)| hash1(&phi, w) * lagrange)
+            .map(|(phi, lagrange)| hash1(phi, w) * lagrange)
             .sum();
         (d, &d * &dalek_constants::RISTRETTO_BASEPOINT_TABLE)
     }