Please see the Wiki for more information.
This source code consists of three parts. For each part, you should enter the respective subdirectory and run the code.
We implement the hybrid framework in ./RtF_framework/ckks_fv/, which contains the following functionalities.
- Evaluation of the HERA/Rubato cipher in the FV scheme
- Evaluation of the Masta/Pasta cipher in the FV scheme
We implement the ResNet-20 cnn_infer in ./RtF_framework/cnn_infer/, which contains the following functionalities.
- ResNet20 inference scheme (located at (./cnn_infer))
- Masta/Pasta cipher in the FV scheme after the cnn_infer
- HERA/Rubato cipher in the FV scheme after the cnn_infer
We implement the GAWS chisqtest in ./RtF_framework/chisqtest/, which contains the following functionalities.
- chisq test scheme (located at (./chisq.go))
- Masta/Pasta cipher in the FV scheme subsequent the chisqtest
- HERA/Rubato cipher in the FV scheme subsequent the chisqtest
We implement the MiniMax compare in ./RtF_framework/minimax_comp/, which contains the following functionalities.
- compare scheme (located at (./minimax_comp.go))
- Masta/Pasta cipher in the FV scheme after the minimax_comp
- HERA/Rubato cipher in the FV scheme after the minimax_comp
An example of Running ResNet20 inference in the RtF framework is given in examples/resnet.
An example of Running compare in the RtF framework is given in examples/compare.
An example of Running GWAS chisqtest in the RtF framework is given in examples/chisq.
cd into the corresponding dir
cd ./RtF_framework/examples/chisq/main.go
go run main.goWe implement the hybrid framework in ./BtR_framework/ckks_cipher/, which contains the following functionalities.
- Evaluation of the AES-CTR in the CKKS scheme
We implement the ResNet-20 cnn_infer in ./BtR_framework/cnn_infer/, which contains the following functionalities.
- ResNet20 inference scheme (located at (./cnn_infer))
We implement the GAWS chisqtest in ./BtR_framework/chisqtest/, which contains the following functionalities.
- chisq test scheme (located at (./chisq.go))
An example of Running ResNet20 inference in the BtR framework is given in examples/resnet.
An example of Running GWAS chisqtest in the BtR framework is given in BtR_framework/chisqtest/.
cd into the corresponding dir
cd ./BtR_framework/examples/btr_cipher/main.go
go run main.goThis folder contains all the experiments we reevaluated using the open-sourced code obtained from corresponding papers.