Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
survived committed Sep 21, 2023
1 parent d19b0ee commit 5022803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/group_element_vs_paillier_encryption_in_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ mod test {
Scalar<C>: FromHash,
{
let private_key0 = random_key(&mut rng).unwrap();
let key0 = private_key0.encryption_key();
let key0 = private_key0.encryption_key().clone();

let (ciphertext, nonce) = key0.encrypt_with_random(&mut rng, &plaintext).unwrap();
let b = Point::<C>::generator() * Scalar::random(&mut rng);
Expand Down
4 changes: 2 additions & 2 deletions src/paillier_affine_operation_in_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ mod test {
{
let dk0 = random_key(rng).unwrap();
let dk1 = random_key(rng).unwrap();
let ek0 = dk0.encryption_key();
let ek1 = dk1.encryption_key();
let ek0 = dk0.encryption_key().clone();
let ek1 = dk1.encryption_key().clone();

let (c, _) = {
let plaintext = Integer::from_rng_pm(ek0.half_n(), rng);
Expand Down

0 comments on commit 5022803

Please sign in to comment.