Skip to content

Commit

Permalink
[Bug fix] should call hash function with circular correlation robustn…
Browse files Browse the repository at this point in the history
…ess (#193)
  • Loading branch information
zicofish authored Jul 30, 2024
1 parent 55c2bd8 commit 62ee03a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emp-tool/gc/halfgate_eva.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inline block halfgates_eval(block A, block B, const block *table, MITCCRH<8> *mi
block H[2];
H[0] = A;
H[1] = B;
mitccrh->hash<2,1>(H);
mitccrh->hash_cir<2,1>(H);
HA = H[0];
HB = H[1];

Expand Down
2 changes: 1 addition & 1 deletion emp-tool/gc/halfgate_gen.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inline block halfgates_garble(block LA0, block A1, block LB0, block B1, block de
H[1] = A1;
H[2] = LB0;
H[3] = B1;
mitccrh->hash<2,2>(H);
mitccrh->hash_cir<2,2>(H);
HLA0 = H[0];
HA1 = H[1];
HLB0 = H[2];
Expand Down

0 comments on commit 62ee03a

Please sign in to comment.