Comments (7)
from emp-ag2pc.
This is definitely not intentional :) It is now on the schedule to be fixed.
from emp-ag2pc.
I just edited that code section into this:
if(party == ALICE) {
for(int i = 0; i < cf->n1; i++) {
mask_input[i] = logic_xor(input[i], value[exec_times][i]);
mask_input[i] = logic_xor(mask_input[i], mask[exec_times][i]);
}
io->recv_data(mask_input+cf->n1, cf->n2);
io->send_data(mask_input, cf->n1);
for(int i = 0; i < cf->n1 + cf->n2; i++) {
tmp = labels[exec_times][i];
if(mask_input[i]) tmp = xorBlocks(tmp, fpre->Delta);
io->send_block(&tmp, 1);
}
//send output mask data
send_partial_block<SSP>(io, mac[exec_times]+cf->num_wire - cf->n3, cf->n3);
} else {
for(int i = cf->n1; i < cf->n1+cf->n2; i++) {
mask_input[i] = logic_xor(input[i-cf->n1], value[exec_times][i]);
mask_input[i] = logic_xor(mask_input[i], mask[exec_times][i]);
}
io->send_data(mask_input+cf->n1, cf->n2);
io->recv_data(mask_input, cf->n1);
io->recv_block(labels[exec_times], cf->n1 + cf->n2);
}
That reflects my naive understanding of how the code should be at that position. However, the code crashes and/or I get a lot of "no match GT"s.
Any idea?
from emp-ag2pc.
Would it work for you to just swap the role of ALICE and BOB?
from emp-ag2pc.
Yes! It's a brain twist, but I will get used to it. 😄
from emp-ag2pc.
Yes,brain twist. Did it fix?…confusing...
from emp-ag2pc.
you might need to keep it twisted for a few more months and we will release a completely new version :)
from emp-ag2pc.
Related Issues (19)
- Input Bits HOT 2
- Run's out of memory for large circuits HOT 2
- How can both parties receive the output? HOT 4
- Support non-flattened circuits? HOT 2
- executing circuit error HOT 4
- incorrect output using ag2pc HOT 8
- Problem with amortized_2pc HOT 5
- on travis failure when that vm does not have bmi2 HOT 4
- emp-ag2pc no longer compiles: small issue with "triple" test HOT 1
- class C2PC does not accept FileIO type HOT 1
- transmitting authenticated circuit in online phase HOT 1
- Communication compexity of the independent phase. HOT 2
- Encounter Segmentation Fault when using external circuit file HOT 4
- Setting ```__debug``` in ```amortized_2pc.h``` is broken HOT 1
- Should these loops iterate from 1? HOT 2
- Overview of this repository HOT 1
- Matrix-multiplication can be optimized
- Is only BOB getting the answer? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emp-ag2pc.