Commit Graph

161 Commits

Author SHA1 Message Date
Zhi Guan
f8fbeddd4f Add SM2_VERIFY_CTX 2024-04-25 08:40:39 +08:00
Simon
350e91af0a 修复Windows编译的问题。
将Windows CI单独拿出来。在Windows环境下编译需要在cmake的时候增加-DWIN32=ON参数。
2024-04-20 12:23:30 +08:00
Zhi Guan
8cb306ad0b Adjust SM3 SM4 API
Remove sm3_digest. Use more _gmssl_export
2024-04-19 18:32:06 +08:00
Zhi Guan
725817add9 Use sm3_pbkdf2 without digest API 2024-04-19 13:21:52 +08:00
Zhi Guan
e9bbcf5490 Use z256 and jacobian coordinates as inner presentation of SM2 point 2024-04-18 21:27:00 +08:00
Zhi Guan
afed7a0ecb Make SDF/SKF optional in CMake 2024-04-15 08:49:16 +08:00
Zhi Guan
ef03ddc680 Restore the original sm9 header file name. 2024-04-14 11:15:05 +08:00
Zhi Guan
b777fbafdb Re-organize SM4/GCM related source files 2024-04-11 22:19:50 +08:00
Zhi Guan
e4502ddd24 XTS use new GF(2^128) API 2024-04-11 18:02:46 +08:00
Gorachya
4c947e2a40 Add files via upload 2024-03-13 15:45:15 +08:00
Zhi Guan
33baa3df92 Update SM2 2024-03-10 22:34:43 +08:00
Zhi Guan
449e1b54a2 Update sm4.c 2024-02-22 11:15:09 +08:00
Zhi Guan
79a6437c8c Update sm4 tool to support more modes
Not finish yet
2024-02-21 09:24:22 +08:00
Zhi Guan
69ffa88037 Fix TLS Alert
Alert, ChangeCipherSpec record should be encrypted after handshake
2024-02-06 20:57:27 +08:00
Zhi Guan
24783e56ed Minor update TLS client tools 2024-02-05 18:14:34 +08:00
Zhi Guan
9f2bfb5ad0 Add more options to TLS
add `-get` and `-quiet` option to `tlcp_client`
2024-02-05 17:01:09 +08:00
Zhi Guan
31efcb5d87 Add encrypt/decrypt to sm2_ctx.c 2024-01-07 17:26:29 +08:00
Zhi Guan
b0c5208a68 Support SM3 third-party implementation 2024-01-04 09:37:12 +08:00
Zhi Guan
43396395d6 Add sm3_xmss command 2023-12-28 10:19:53 +08:00
Zhi Guan
fc01dd522d Update sm3.c
Fix help message
2023-12-17 21:10:41 +08:00
Zhi Guan
34af2f4809 Update sm3hmac.c
Add `-in_str` option
2023-12-17 21:10:20 +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
b3352b8d86 Add -in_str option to gmssl sm3 command 2023-12-14 11:46:51 +08:00
Zhi Guan
651d9902eb fix cmsencrypt.c mem leak 2023-12-12 14:23:46 +08:00
Zhi Guan
8974e0f2ea Remove unused files 2023-10-27 16:24:29 +08:00
Zhi Guan
8148b9ac52 Update CMakeLists.txt
Check RDRAND symbols
2023-10-16 08:48:19 +08:00
Zhi Guan
52772c3982 Remove sm2keyparse command 2023-09-09 17:24:17 +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
7c31764798 Add AAD support to sm4 command 2023-03-13 15:47:26 +08:00
Zhi Guan
79c6b7ce5c Add -sm2_id option to crlverify 2023-02-19 08:26:06 +08:00
Zhi Guan
4466a56ae2 Fix certrevoke bugs 2023-02-14 23:19:18 +08:00
Zhi Guan
a8976d6a3e Update tls13_client.c 2023-02-14 22:24:56 +08:00
Zhi Guan
e3a543ba1b Update tls12_client.c 2023-02-14 22:24:54 +08:00
Zhi Guan
d8588fe2fc Update crlparse.c 2023-02-14 21:32:42 +08:00
Zhi Guan
a9f76d8f62 Update AEAD 2023-02-14 18:56:03 +08:00
Zhi Guan
66abb8e528 Update socket wrapper 2023-02-13 09:10:59 +08:00
Zhi Guan
46f0be87dc Update certverify tool
See `demos/scripts/certverify.sh`
2023-02-07 23:34:53 +08:00
Zhi Guan
fcb14bbcf9 Fix CRL ext bug 2023-02-07 16:03:44 +08:00
Zhi Guan
d7fcc6f457 Update demos 2023-02-07 14:57:17 +08:00
Zhi Guan
591db2cc01 Remove WIN32 warnings 2023-02-06 22:36:39 +08:00
Zhi Guan
d4d2f64aaa Add demos to CMake 2023-02-06 22:14:34 +08:00
Zhi Guan
8a62b91da9 Fix REQ format bug
Attributes not OPTIONAL
2023-02-06 17:07:08 +08:00
Zhi Guan
825b074ed1 Update X509 2023-02-05 18:14:41 +08:00
Zhi Guan
1abbd54bb8 Update X509 2023-02-04 23:21:01 +08:00
Zhi Guan
6a02a61c4f Update X509 cert 2023-02-04 21:04:43 +08:00
Zhi Guan
1fbdfeee59 Update CRL related code 2023-02-01 11:03:33 +08:00
Zhi Guan
8397280779 Add -check_crl option to certverify 2023-01-31 22:14:41 +08:00
Zhi Guan
b5df2121d3 Add crlget tool 2023-01-31 19:18:46 +08:00
Zhi Guan
13eae91d7d Update X.509 Extensions 2023-01-31 15:57:53 +08:00
Zhi Guan
ec7700c17c Update X509 and certgen tool 2023-01-28 22:00:22 +08:00