From eaa3d8e5f8c09ed5eb577db2d55c94f59d98789a Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Thu, 12 Oct 2023 20:43:16 +0800 Subject: [PATCH 1/4] feat: update import --- src/tpre.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tpre.py b/src/tpre.py index e69de29..25f71b0 100644 --- a/src/tpre.py +++ b/src/tpre.py @@ -0,0 +1 @@ +from gmssl import * #pylint: disable = e0401 From fd06250f5b78f9e043f796ac135c1b29cea4baec Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Thu, 12 Oct 2023 20:47:32 +0800 Subject: [PATCH 2/4] test: test --- src/tpre.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tpre.py b/src/tpre.py index 25f71b0..56aa820 100644 --- a/src/tpre.py +++ b/src/tpre.py @@ -1 +1,2 @@ from gmssl import * #pylint: disable = e0401 +testtest \ No newline at end of file From 89cb309c2fe435cf7e1e69ea5cdc068a5b02fc1c Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Thu, 12 Oct 2023 22:20:04 +0800 Subject: [PATCH 3/4] feat: add setting --- .gitignore | 2 +- .vscode/settings.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 600d2d3..ca746f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -.vscode \ No newline at end of file +jiangchao \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c01d446 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "python.analysis.typeCheckingMode": "basic", + "python.analysis.diagnosticSeverityOverrides": { + "reportUndefinedVariable": "none", + "reportMissingImports": "none" + } +} \ No newline at end of file From ebe6e02c45246f08e6604a903b0bc1688564a2a3 Mon Sep 17 00:00:00 2001 From: sangge <2251250136@qq.com> Date: Fri, 13 Oct 2023 08:50:59 +0800 Subject: [PATCH 4/4] doc: update readme --- README_en.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README_en.md b/README_en.md index 3e88880..762487a 100644 --- a/README_en.md +++ b/README_en.md @@ -8,13 +8,32 @@ The project uses the Chinese national standard cryptography algorithm to impleme ## Environment Dependencies -The project relies on the following software: +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](https://github.com/guanzhi/GmSSL) to learn how to install. + ```bash -pip install +pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple ``` + +## Usage Instructions + + +## References +[TPRE Algorithm Blog Post](https://www.cnblogs.com/pam-sh/p/17364656.html#tprelib%E7%AE%97%E6%B3%95) +[Gmssl-python library](https://github.com/GmSSL/GmSSL-Python) + + +## License +GNU GENERAL PUBLIC LICENSE v3