Skip to content

Commit

Permalink
fix test case for 0-0 input case in test_and_gate (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
caglaryucekaya authored Apr 21, 2024
1 parent eed88d1 commit 3fc9972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garble/mpz-garble-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mod tests {
let (z_0, encrypted_gate) = gen::and_gate(cipher, &x_0, &y_0, &delta, gid);
let z_1 = z_0 ^ delta;

assert_eq!(ev::and_gate(cipher, &x_0, &y_1, &encrypted_gate, gid), z_0);
assert_eq!(ev::and_gate(cipher, &x_0, &y_0, &encrypted_gate, gid), z_0);
assert_eq!(ev::and_gate(cipher, &x_0, &y_1, &encrypted_gate, gid), z_0);
assert_eq!(ev::and_gate(cipher, &x_1, &y_0, &encrypted_gate, gid), z_0);
assert_eq!(ev::and_gate(cipher, &x_1, &y_1, &encrypted_gate, gid), z_1);
Expand Down

0 comments on commit 3fc9972

Please sign in to comment.