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
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:
parent
2a238f75c6
commit
ef14e4851c
@ -5,6 +5,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- "basedockerfile"
|
- "basedockerfile"
|
||||||
- ".gitea/workflows/build-image.yaml"
|
- ".gitea/workflows/build-image.yaml"
|
||||||
|
- "requirements.txt"
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 1 * *" # 每月1号00:00执行
|
- cron: "0 0 1 * *" # 每月1号00:00执行
|
||||||
|
|
||||||
|
22
.gitignore
vendored
22
.gitignore
vendored
@ -18,3 +18,25 @@ venv
|
|||||||
lib
|
lib
|
||||||
include
|
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
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# tpre-python
|
# 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
|
## 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
|
## Project Structure
|
||||||
|
|
||||||
@ -13,6 +15,8 @@ The project uses the Chinese national standard cryptography algorithm to impleme
|
|||||||
├── dockerfile (being used to build application)
|
├── dockerfile (being used to build application)
|
||||||
├── doc (development documents)
|
├── doc (development documents)
|
||||||
├── gmssl (gmssl source code)
|
├── gmssl (gmssl source code)
|
||||||
|
├── include (gmssl header files)
|
||||||
|
├── lib (gmssl shared lib)
|
||||||
├── LICENSE
|
├── LICENSE
|
||||||
├── README_en.md
|
├── README_en.md
|
||||||
├── README.md
|
├── README.md
|
||||||
|
@ -1,10 +1,19 @@
|
|||||||
from tpre import *
|
from tpre import (
|
||||||
|
GenerateKeyPair,
|
||||||
|
Encrypt,
|
||||||
|
GenerateReKey,
|
||||||
|
ReEncrypt,
|
||||||
|
MergeCFrag,
|
||||||
|
DecryptFrags,
|
||||||
|
)
|
||||||
import time
|
import time
|
||||||
import openpyxl
|
import openpyxl
|
||||||
|
|
||||||
# 初始化Excel工作簿和工作表
|
# 初始化Excel工作簿和工作表
|
||||||
wb = openpyxl.Workbook()
|
wb = openpyxl.Workbook()
|
||||||
ws = wb.active
|
ws = wb.active
|
||||||
|
if ws is None:
|
||||||
|
raise Exception("无法创建Excel文件")
|
||||||
ws.title = "算法性能结果"
|
ws.title = "算法性能结果"
|
||||||
headers = [
|
headers = [
|
||||||
"门限值 N",
|
"门限值 N",
|
Loading…
x
Reference in New Issue
Block a user