Skip to content

whj0401/SafeSCA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The artifact of SafeSCA

The customized CrypTen with DPCNN support is available at https://github.com/whj0401/CrypTen4DPCNN

To build database

You have to download many repositories and install ctags first.

ctags: https://github.com/universal-ctags/ctags

Then, change src/src_preprocess/config.py

repo_src_root = '/your/directory/for/repos/src'
ctags_path = '/ctags_install/bin/ctags'

Then, please see src/src_preprocess/README.md to build the repository database with dependencies.

To run

Since the official CrypTen has bugs while running on DPCNN, we rewrite the implementation of some operators of CrypTen. Please see our repository CrypTen4DPCNN.

After installing CrypTen, please enter your virtual envs and find the directory site-packages/crypten. Then,

# back up your current official crypten
mv crypten crypten.bk

# use our modified crypten by create a soft link
ln -s /path/to/CrypTen4DPCNN/crypten crypten

The code for analysis are in src/b2s and src/b2b. You need to use IDA to dump information like call graphs first.

About

SafeSCA, a 2-party crypto-based SCA framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published