-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My Mac fails because NETWORK_BUFFER_SIZE
not sufficient for sha256
in emp-m2pc
#7
Comments
And Thanks to Xiao Wang! |
An alternative way is to give a boosting for Note that the value of |
I believe that buffer size only affects performance but not correctness. I
will explain more when I have time later.
…On Sat, Oct 28, 2017 at 8:08 PM, Weikeng Chen ***@***.***> wrote:
An alternative way is to give a boosting for emp-m2pc on
NETWORK_BUFFER_SIZE?
Note that the value of NETWORK_BUFFER_SIZE would be hardcoded into the
binary of emp-tool.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKjCh_honwD-SRH5kbia5D_D4Y3PUHeks5sw8ITgaJpZM4QKIzq>
.
|
will double check |
The real reason found. will send a PR. |
It turns out that my Mac adopts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK:) this is not an easy debug. I found the reason why my Mac always fails for
sha256
inemp-m2pc
due tores4=1
and Alicecheat=1
, showingWRONG_ANS
.It seems that my Mac has a terrible loopback network (or I guess too fast?). The standard
NETWORK_BUFFER_SIZE
inemp_tool/utils/constants.h
will make buffer insufficient and cause data loss -- the result is that Bob 'cheats' and the result forsha256
inemp-m2pc
is wrong in my specific case.My question is:
During the EUROCRYPT'17 paper and previous works on emp-toolkit, will a very high
NETWORK_BUFFER_SIZE
obviously hurts the performance (due to the loss of locality?)? If this performance change is not obvious, maybe the default value forNETWORK_BUFFER_SIZE
inemp-tool/utils/constants.h
can be changed to a larger one.(I see the comment nearby said that this value should be adjusted for the specific network. I feel that this value should increase for
emp-m2pc
because the evaluation is slower, the network can be too fast.)The text was updated successfully, but these errors were encountered: