Skip to content
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

The correctness of the garbler result #19

Open
marvellous987 opened this issue May 11, 2022 · 3 comments
Open

The correctness of the garbler result #19

marvellous987 opened this issue May 11, 2022 · 3 comments

Comments

@marvellous987
Copy link

Hi,

I am using the semihonest_2pc.rs in examples for testing some garbled circuit txts. I found that the sha256 circuit comes from https://homes.esat.kuleuven.be/~nsmart/MPC/old-circuits.html where it provides some test vectors. However, I found that the result is not compatible with the given ones...

There are only one correct with all 1 (0xffff.ffff) as the first (garbler) input, but the remaining aren't... I did think of the endian problem, but the case with all 1 is correct and all 0 is not correct...

Could anyone give me some help or any approaches?

Thank you very much!

@themighty1
Copy link

May or may not be similar to what we encountered here #14

@marvellous987
Copy link
Author

Hi, thanks for the reply.

I think not really. The case now is about the circuit provided in the repo (circuits/sha-256.txt), I checked that it is the same as the one in https://homes.esat.kuleuven.be/~nsmart/MPC/old-circuits.html but the semihonest_2pc.rs outputs a different result, except the one with 0xfffff...fff input.

@marvellous987
Copy link
Author

I did not modify any in the code, apart from some println!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants