Commit Graph

22 Commits

Author SHA1 Message Date
人间流浪少年
0e030e901e Update sm2_key.c and delete useles var
to fix error
error: ../../common/gmssl/src/sm2_key.c: In function 'sm2_public_key_to_der':
../../common/gmssl/src/sm2_key.c:110:9: error: unused variable 'len' [-Werror=unused-variable]
  size_t len = 0;
         ^~~
cc1: all warnings being treated as errors
2024-12-05 14:25:53 +08:00
Zhi Guan
d719ee4862 Conv from UTF-8 to ASCII
`file *.c` to see file types (ASCII or UTF-8), convert UTF-8 (with BOM) to ASCII

```sh
sed '1s/^\xEF\xBB\xBF//'  sm4.c | iconv -f UTF-8 -t ASCII//TRANSLIT > temp.c
mv temp.c sm4.c
```
2024-05-25 18:06:16 +08:00
Zhi Guan
252c9e1765 Add more SM4 test vectors
SM4 pass openssl and other known test vectors. SM4-GCM and SM4-XTS only support the GB/T GF(2^128) encoding standard.
2024-04-21 10:10:46 +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
9083a7a60b Rename SM2 file names 2024-04-16 19:20:35 +08:00
Zhi Guan
31440f9948 Update SM2 2024-03-19 21:37:36 +08:00
Zhi Guan
04cbd81651 Update CMakeLists.txt
both CMakeLists.txt and source use ENABLE_XXX
2023-12-17 16:33:51 +08:00
yesting
91a20916fa 修复错误判断 2023-04-26 00:02:15 +08:00
Zhi Guan
e77aeffc21 Update CMake 2023-02-15 11:59:05 +08:00
Zhi Guan
da9ef786eb Update X509 2023-02-08 21:51:05 +08:00
Zhi Guan
0eb4bd9c1d Fix export symbol bug in MSVC 2022-12-24 10:50:44 +08:00
Zhi Guan
5e38788659 Add Windows and Visual Studio support 2022-10-03 11:36:03 +08:00
Simon
60c3c33116 license 2022-08-28 19:12:50 +08:00
Simon
4e5880e2ea Revert "修改License"
This reverts commit 0b4308b948.
2022-08-26 13:44:26 +08:00
Simon
0b4308b948 修改License 2022-08-25 22:42:11 -07:00
Simon
36f6a6d4d3 COPYRIGHT 2022-08-08 05:46:54 -07:00
zhaoxiaomeng
c2dacaae46 修改copyright
This reverts commit 7de8e1d83d.
2022-08-08 20:14:44 +08:00
Simon
7de8e1d83d 修改copyright 2022-08-08 05:11:52 -07:00
Zhi Guan
d1b3816319 expose all functions 2022-05-01 09:46:46 +08:00
Zhi Guan
7e4dd76839 update 2022-04-11 17:56:25 +08:00