OPAF: Optimized Secure Two-Party Computation Protocols for Nonlinear Activation Functions in Recurrent Neural Network
This directory contains the code for the 2PC protocols from "OPAF: Optimized Secure Two-Party Computation Protocols for Nonlinear Activation Functions in Recurrent Neural Network".
For setting up the code:
- Set-up EzPC/SCI
- Replace the "CMakeList.txt" file in the SCI directory
- Move the "mytests" directory into the SCI directory
- Move the "MyProtocol" directory into the SCI/src directory
cd EzPC/SCI
mkdir mybuild && cd mybuild
cmake ..
make -j 16
On successful compilation, the binaries will be created in mybuild/bin/
.
Run mytests as follows to make sure everything works as intended:
./<mytest> r=1 [port=port] & ./<mytest> r=2 [port=port]
Our implementation includes code from the following external repository:
- EzPC/SCI for fundamental building blocks.