Browse Source

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

Ian Goldberg 2 months ago
parent
commit
a75bd1e0ed
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)
     }