forked from sangge/tpre-python
feat: 添加封装算法Encapsulate,修改Setup函数中的KDF函数,添加全局变量:安全参数sec, A和B的公钥和私钥,G, g, U, hash2, hash3, hash4, KDF
tpre-python
This project is designed for the National Cryptography Competition and is implemented in Python to execute the TPRE algorithm.
Project Principle
The project uses the Chinese national standard cryptography algorithm to implement distributed proxy re-encryption (TPRE).
Environment Dependencies
System requirements:
- Linux
- Windows
The project relies on the following software:
- Python 3.11
- gmssl
- gmssl-python
Installation Steps
Pre-installation
This project depends on gmssl, so you need to compile it from source first.
Visit GmSSL to learn how to install.
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
Usage Instructions
References
TPRE Algorithm Blog Post Gmssl-python library
License
GNU GENERAL PUBLIC LICENSE v3
Description
Languages
C
85.7%
Python
14.1%
Shell
0.2%