Commit Graph

162 Commits

Author SHA1 Message Date
Zhi Guan
c460766320 Update SM2 arithmetic implementations
Decouple API and implementations. SM2 arithmetic exposes 3 types: GF(p), GF(n), and Point.
2024-02-22 11:14:59 +08:00
Zhi Guan
326e7de416 Add SM2 Z256 implementation 2024-02-20 11:24:00 +08:00
Zhi Guan
c9c26aca44 Add more SM4 modes 2024-02-19 14:16:49 +08:00
Zhi Guan
8ae03e8105 Add more sm4 modes
Not tested yet
2024-02-10 15:46:59 +08:00
Zhi Guan
2c893d797b Update soft_sdf 2024-01-31 21:10:30 +08:00
Zhi Guan
2dab02f76a Move sm2 ctx functions to a standalone source file
To support UADK implementations
2024-01-06 20:27:52 +08:00
Zhi Guan
b0c5208a68 Support SM3 third-party implementation 2024-01-04 09:37:12 +08:00
Zhi Guan
39e2f9f657 Add software SDF implementation
The soft_sdf will replace sdf_dummy library for buiding testing apps.
2023-12-28 10:18:09 +08:00
Zhi Guan
81c3538020 Add SM3-XMSS post-quantum signature
The current configure is for testing only, the XMSS is configured to use SHA-256, not SM3.
2023-12-18 09:56:43 +08:00
Zhi Guan
dc4c21f4ec Make AES optional and remove "Public API" from headers 2023-12-17 16:52:42 +08:00
Zhi Guan
04cbd81651 Update CMakeLists.txt
both CMakeLists.txt and source use ENABLE_XXX
2023-12-17 16:33:51 +08:00
Zhi Guan
2c988b008b Update demos
To build demos, run
`cmake .. -DENABLE_DEMOS=ON`
2023-12-16 11:42:10 +08:00
Zhi Guan
508206223b Update CMakeLists.txt and make demos optional 2023-12-16 10:35:46 +08:00
Zhi Guan
5814112e22 Fix gmssl RPATH issue in Mac 2023-12-14 11:48:48 +08:00
Zhi Guan
6923ffc84c Add sm4_tbox.c as default SM4 C implementation
SM4 TBOX use a larger lookup table.
2023-12-13 20:58:40 +08:00
Zhi Guan
257ba6bcdb Update SM4
Simple SM4 cipher implementation in `sm4.c`
2023-12-13 20:26:57 +08:00
Zhi Guan
ecb7e1c248 Remove DES 2023-12-13 20:19:16 +08:00
Zhi Guan
687ecb9f49 Remove RC4 2023-12-13 20:16:05 +08:00
Zhi Guan
908ece9d0a Remove MD5 2023-12-13 20:14:19 +08:00
Zhi Guan
1d6c763afb Update version to 3.1.2-Dev 2023-12-13 20:02:27 +08:00
Zhi Guan
d655c06b3a Update version 2023-12-12 16:05:31 +08:00
Zhi Guan
01ade02dfa Update Versions 2023-10-24 08:57:16 +08:00
Zhi Guan
117914df09 Update CMakeLists.txt 2023-10-23 20:33:58 +08:00
Zhi Guan
18d1fcf3a4 Update CMakeLists.txt 2023-10-18 17:17:07 +08:00
Zhi Guan
739c4dbced Update CMakeLists.txt 2023-10-17 23:12:47 +08:00
Zhi Guan
0da7bbc22d Update CMakeLists.txt 2023-10-17 22:43:56 +08:00
Zhi Guan
8148b9ac52 Update CMakeLists.txt
Check RDRAND symbols
2023-10-16 08:48:19 +08:00
Zhi Guan
326956bbff Remove demos relay on third-party code 2023-10-13 17:50:55 +08:00
Zhi Guan
435f93771d Merge pull request #1495 from cntpro/master
增加在nmake下对源文件utf-8编码的支持,解决在msvc编译错误问题
2023-10-11 17:47:48 +08:00
Zhi Guan
551d4936b4 Remove sm3 asm 2023-09-26 11:06:56 +08:00
Zhi Guan
52772c3982 Remove sm2keyparse command 2023-09-09 17:24:17 +08:00
Zhi Guan
1f8ee704c6 Update CMakeLists.txt to depends gcc only 2023-09-09 17:08:55 +08:00
Zhi Guan
ac61cfae02 Update CMake options of RDRND
Separate CMake option of rdrand and rdseed. In some CPUs only rdrand is supported.
2023-09-09 16:56:52 +08:00
Liuzr
6f8db2f64a 增加在nmake下utf-8编码的支持
修正msvc编译错误。
2023-05-20 09:15:21 +08:00
guoshengxu
d6df76600e 增加了sm2keyparse部分 (#1423)
* Update gmssl.c

添加sm2keyparse功能,以十六进制明文查看SM2的公钥和私钥。

* Create sm2keyparse.c

增加sm2keyparse部分。

* Update CMakeLists.txt

增加tools/sm2keyparse.c

* Update sm2keyparse.c
2023-03-14 22:05:31 +08:00
Zhi Guan
ca47fb21c1 Merge pull request #1396 from dudamao/master
add link libraries ws2_32, fix win32 compile error.
2023-02-21 12:34:48 +08:00
Zhi Guan
e77aeffc21 Update CMake 2023-02-15 11:59:05 +08:00
Zhi Guan
29af4f7f76 Add AEAD and GHASH functions 2023-02-13 23:29:27 +08:00
Zhi Guan
236c6e17cb Add AEAD modes 2023-02-13 11:52:24 +08:00
Zhi Guan
66abb8e528 Update socket wrapper 2023-02-13 09:10:59 +08:00
Zhi Guan
8a0a23f91d Add SM2 AlgorithmIdentifier option
Add option in CMake to support NULL parameters encoding
2023-02-09 11:44:27 +08:00
Zhi Guan
da9ef786eb Update X509 2023-02-08 21:51:05 +08:00
Zhi Guan
d4d2f64aaa Add demos to CMake 2023-02-06 22:14:34 +08:00
Zhi Guan
97e33d4b9a Update CMakeLists.txt 2023-02-06 13:34:13 +08:00
Zhi Guan
a2e5db88ac Update CMakeLists.txt
Remove http_crl test, failed on GitHub CI environment.
2023-02-06 13:28:39 +08:00
Zhi Guan
bfe3e5999a Update HTTP for WIN 2023-02-06 12:50:28 +08:00
Zhi Guan
b5df2121d3 Add crlget tool 2023-01-31 19:18:46 +08:00
Zhi Guan
ec7700c17c Update X509 and certgen tool 2023-01-28 22:00:22 +08:00
Zhi Guan
c4c11ffe6b Update CRL functions and tools 2023-01-25 22:39:12 +08:00
Zhi Guan
c6ca4dd37b Add HTTP module 2023-01-18 00:27:35 +08:00