TightPROVE
tightPROVE (tight PRobing VErification): formal verification tool for the (tight) probing security of masked implementations
Install / Use
/learn @CryptoExperts/TightPROVEREADME
tightPROVE
tightPROVE is a formal verification tool for the tight probing security of masked implementations.
tightPROVE was introduced in the following publication:
Tight Private Circuits: Achieving Probing Security with the Least Refreshing
By Sonia Belaïd, Dahmun Goudarzi, and Matthieu Rivain.
In the proceedings of ASIACRYPT 2018.
Content
This repository contains the code of tightPROVE implemented in SageMath:
- tightPROVE.sage
and a few examples of input files:
- example1.txt: the circuit corresponding to example 1 in the publication;
- example2.txt: the circuit corresponding to example 2 in the publication;
- example3.txt: the circuit corresponding to example 2 augmented with a refresh gadget;
- aes.txt: the AES s-box circuit considered in the publication.
Usage
Using the tool requires having SageMath installed (v6.10 or higher). Then simply run the following command line:
sage tightPROVE.sage file.txt
where file.txt is the input circuit file.
Input syntax
The input circuit format is as follows. Each line represents an operation or refresh gadget with the syntax
xor i jfor a Boolean addition gadget,and i jfor a Boolean multiplication gadget,ref ifor a refresh gadget,
where i and j are the indexes of the two operands, i.e., the output of operations from the i-th and j-th lines.
The inputs of the circuit are represented at the top of the file as
in 0
in 1
...
License
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
