update test code
Some checks failed
Build and Push Base Image / build-and-push (push) Failing after 7m15s
Test CI / test speed (push) Successful in 5s

This commit is contained in:
sangge-redmi 2025-03-30 21:38:30 +08:00
parent 2a238f75c6
commit ef14e4851c
4 changed files with 40 additions and 4 deletions

View File

@ -5,6 +5,7 @@ on:
paths:
- "basedockerfile"
- ".gitea/workflows/build-image.yaml"
- "requirements.txt"
schedule:
- cron: "0 0 1 * *" # 每月1号00:00执行

24
.gitignore vendored
View File

@ -17,4 +17,26 @@ src/tpre.cpython-311-x86_64-linux-gnu.so
venv
lib
include
/frontend/node_modules/
/frontend/node_modules/
## LaTeX 临时文件
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
*.dvi
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml

View File

@ -1,10 +1,12 @@
# tpre-python
This project is designed for the National Cryptography Competition and is implemented in Python to execute the TPRE algorithm.
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).
The project uses the Chinese national standard cryptography algorithm
to implement distributed proxy re-encryption (TPRE).
## Project Structure
@ -13,6 +15,8 @@ The project uses the Chinese national standard cryptography algorithm to impleme
├── dockerfile (being used to build application)
├── doc (development documents)
├── gmssl (gmssl source code)
├── include (gmssl header files)
├── lib (gmssl shared lib)
├── LICENSE
├── README_en.md
├── README.md

View File

@ -1,10 +1,19 @@
from tpre import *
from tpre import (
GenerateKeyPair,
Encrypt,
GenerateReKey,
ReEncrypt,
MergeCFrag,
DecryptFrags,
)
import time
import openpyxl
# 初始化Excel工作簿和工作表
wb = openpyxl.Workbook()
ws = wb.active
if ws is None:
raise Exception("无法创建Excel文件")
ws.title = "算法性能结果"
headers = [
"门限值 N",