Skip to content

AntCPLab/awesome-transciphering

Repository files navigation

Alongside code for paper: "SoK: FHE-Friendly Symmetric Ciphers and Transciphering"

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.

1. RtF framework part

New Package

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.

Run RtF experiment

cd into the corresponding dir

cd ./RtF_framework/examples/chisq/main.go
go run main.go

2. BtR framework part

We 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/.

Run BtR experiment

cd into the corresponding dir

cd ./BtR_framework/examples/btr_cipher/main.go
go run main.go

3. CGGI-based transciphering

This folder contains all the experiments we reevaluated using the open-sourced code obtained from corresponding papers.

About

The repo of "SoK: FHE-Friendly Symmetric Ciphers and Transciphering" (CHES 2025)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •