Commit Graph

550 Commits

Author SHA1 Message Date
Zhi Guan
34af2f4809 Update sm3hmac.c
Add `-in_str` option
2023-12-17 21:10:20 +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
94fc0aacab Update sm4test.c
Fix the memcpy() bug on Windows VMs.
2023-12-14 15:29:06 +08:00
Zhi Guan
5814112e22 Fix gmssl RPATH issue in Mac 2023-12-14 11:48:48 +08:00
Zhi Guan
b3352b8d86 Add -in_str option to gmssl sm3 command 2023-12-14 11:46:51 +08:00
Zhi Guan
6b358a4dee Update README.md 2023-12-13 21:03:13 +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
6ed99b4ee5 Update sm3.h 2023-12-13 20:49:47 +08:00
Zhi Guan
85e81d2864 Update sm3_kdf.c
Do not use endian.h
2023-12-13 20:49:44 +08:00
Zhi Guan
07b077d66b Update sm3_hmac.c
Do not clean `ctx` in `sm3_hmac_finish` by default
2023-12-13 20:48:54 +08:00
Zhi Guan
257ba6bcdb Update SM4
Simple SM4 cipher implementation in `sm4.c`
2023-12-13 20:26:57 +08:00
Zhi Guan
93a371113f Delete rc4test.c 2023-12-13 20:19:21 +08:00
Zhi Guan
8106b9b2b7 Delete md5test.c 2023-12-13 20:19:18 +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
7db4991b4d Update sm3.c
Simple C implementation
2023-12-13 20:09:47 +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 v3.1.1 2023-12-12 16:05:31 +08:00
Zhi Guan
7dbf43ec0f Update cmake.yml 2023-12-12 14:48:00 +08:00
Zhi Guan
651d9902eb fix cmsencrypt.c mem leak 2023-12-12 14:23:46 +08:00
Zhi Guan
10e02215e3 Fix cms.c mem leak 2023-12-12 14:23:33 +08:00
Zhi Guan
8974e0f2ea Remove unused files 2023-10-27 16:24:29 +08:00
Zhi Guan
01ade02dfa Update Versions v3.1.1-pr1 2023-10-24 08:57:16 +08:00
Zhi Guan
5a30e8d878 Update pem.c 2023-10-23 20:34:04 +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
6291599307 Update pem.c 2023-10-18 09:39:31 +08:00
Zhi Guan
0620acae2f Delete sm2_z256.h 2023-10-17 23:19:36 +08:00
Zhi Guan
bebb915043 Update rand.h 2023-10-17 23:19:33 +08:00
Zhi Guan
739c4dbced Update CMakeLists.txt 2023-10-17 23:12:47 +08:00
Zhi Guan
9b5a2e6812 Do not clean ctx in <digest>_finish 2023-10-17 23:12:43 +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
71fb469801 Update SM4 GCM IV sizes 2023-10-13 22:08:17 +08:00
Zhi Guan
06017d23f5 Set default _gmssl_export 2023-10-13 20:46:19 +08:00
Zhi Guan
326956bbff Remove demos relay on third-party code 2023-10-13 17:50:55 +08:00
Zhi Guan
b2a90982d9 Fix sha1_digest bug 2023-10-13 17:43:54 +08:00
Zhi Guan
87a4477ee9 Remove extra code 2023-10-12 15:06:35 +08:00
Zhi Guan
05b9d8cdc3 Merge pull request #1512 from nntp4/devel
Fix bug not including sm2_z256.h
2023-10-12 13:54:37 +08:00
Zhi Guan
65c9124522 Merge pull request #1480 from yetsing/fix-error-check-sm2_point_is_on_curve
Fix error check sm2_point_is_on_curve
2023-10-12 13:46:50 +08:00
Zhi Guan
ee1b09ce8f Merge pull request #1468 from Gowa2017/fix_sdf_print_device_info
OpenSession need a pointer of pointer
2023-10-12 13:44:32 +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
9fddcc536e Merge pull request #1473 from 0x020B/patch-1
修复GmSSL-Python介绍错误
2023-10-11 17:33:13 +08:00
Zhi Guan
c8e1607999 Add error checking in pem.c 2023-09-26 11:07:20 +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