소스 검색

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

Ian Goldberg 3 달 전
부모
커밋
a75bd1e0ed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
     }