From 62ee03a94af3ef66607f460aac7ad2b1f10e3a26 Mon Sep 17 00:00:00 2001 From: "Zhicong Huang (Zico)" Date: Tue, 30 Jul 2024 22:14:30 +0800 Subject: [PATCH] [Bug fix] should call hash function with circular correlation robustness (#193) --- emp-tool/gc/halfgate_eva.h | 2 +- emp-tool/gc/halfgate_gen.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emp-tool/gc/halfgate_eva.h b/emp-tool/gc/halfgate_eva.h index e2e130a..e79dfcb 100644 --- a/emp-tool/gc/halfgate_eva.h +++ b/emp-tool/gc/halfgate_eva.h @@ -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]; diff --git a/emp-tool/gc/halfgate_gen.h b/emp-tool/gc/halfgate_gen.h index 6e70e24..7f8837d 100644 --- a/emp-tool/gc/halfgate_gen.h +++ b/emp-tool/gc/halfgate_gen.h @@ -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];