Browse Source

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

Ian Goldberg 9 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
         let d = self
             .secrets
             .secrets
             .iter()
             .iter()
-            .map(|&(phi, lagrange)| hash1(&phi, w) * lagrange)
+            .map(|(phi, lagrange)| hash1(phi, w) * lagrange)
             .sum();
             .sum();
         (d, &d * &dalek_constants::RISTRETTO_BASEPOINT_TABLE)
         (d, &d * &dalek_constants::RISTRETTO_BASEPOINT_TABLE)
     }
     }