Zhi Guan
|
31efcb5d87
|
Add encrypt/decrypt to sm2_ctx.c
|
2024-01-07 17:26:29 +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
|
43396395d6
|
Add sm3_xmss command
|
2023-12-28 10:19:53 +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
|
4d7057b62b
|
Update digest.c
|
2023-12-18 09:54:13 +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
|
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
|
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
|
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
|
10e02215e3
|
Fix cms.c mem leak
|
2023-12-12 14:23:33 +08:00 |
|
Zhi Guan
|
5a30e8d878
|
Update pem.c
|
2023-10-23 20:34:04 +08:00 |
|
Zhi Guan
|
6291599307
|
Update pem.c
|
2023-10-18 09:39:31 +08:00 |
|
Zhi Guan
|
9b5a2e6812
|
Do not clean ctx in <digest>_finish
|
2023-10-17 23:12:43 +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
|
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
|
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 |
|
nntp4
|
b649589795
|
Fix bug not including sm2_z256.h
Signed-off-by: nntp4 <nntp4@proton.me>
|
2023-06-22 17:35:38 +08:00 |
|
yesting
|
40331e3bfe
|
修复错误判断
|
2023-04-26 00:06:08 +08:00 |
|
yesting
|
91a20916fa
|
修复错误判断
|
2023-04-26 00:02:15 +08:00 |
|
Zhi Guan
|
5ca0d60781
|
Add sm2z256 c implementation
|
2023-04-22 10:23:57 +08:00 |
|
Gowa2017
|
4722f53869
|
fix: use dylib_close_library, not free to close dynamic lib
|
2023-04-20 22:05:51 +08:00 |
|
Zhi Guan
|
8e8159ade6
|
Add optimized SM2 point operations for 64-bit CPU and GCC
|
2023-04-12 12:04:30 +08:00 |
|
Gowa2017
|
4d40723c19
|
OpenSession need a pointer of pointer
|
2023-04-05 01:04:18 +08:00 |
|
Zhi Guan
|
f2fc8a272e
|
Merge pull request #1436 from wendal/patch-3
fix: sm2_point_from_x函数内的表达式应该明确优先级
|
2023-03-23 15:52:01 +08:00 |
|
Zhi Guan
|
c04a96fb76
|
Merge pull request #1435 from wendal/patch-2
update: asn1_tag_index应该是常量,加上const描述
|
2023-03-23 15:32:19 +08:00 |
|
Zhi Guan
|
1702fe3844
|
Merge pull request #1421 from programminglanguagepl/master
optimize sm9_fp_mul
|
2023-03-23 13:53:30 +08:00 |
|
Zhi Guan
|
4c6e9143bf
|
Merge pull request #1420 from Jrrrt/master
优化sm9_fp12_sqr()函数
|
2023-03-23 13:53:12 +08:00 |
|
Zhi Guan
|
a3aa4e3104
|
Update aead.c
Fix bug in GCM tmp buffer size
|
2023-03-13 15:47:01 +08:00 |
|
Wendal Chen
|
acb50a08d8
|
fix: sm2_point_from_x函数内的表达式应该明确优先级
````
if ((y == 0x02 && sm2_bn_is_odd(_y)) || (y == 0x03) && !sm2_bn_is_odd(_y)) {
```
后半段的优先级应该加括号包起来
|
2023-03-04 12:39:25 +08:00 |
|
Wendal Chen
|
171a15f2b4
|
update: asn1_tag_index应该是常量,加上const描述
从代码逻辑可知, asn1_tag_index 是只读的
|
2023-03-04 01:32:42 +08:00 |
|
maachengyu
|
5d9f014660
|
optimize sm9_fp_mul
|
2023-02-25 02:13:02 +00:00 |
|
qcloud
|
cca07adf02
|
优化sm9_fp12_sqr()函数
|
2023-02-24 23:23:21 +08:00 |
|
qcloud
|
59d792c9c4
|
sm9_alg.c
|
2023-02-24 17:35:20 +08:00 |
|
zhwangzh
|
6e122a4d2b
|
Update zuc_modes.c
In function zuc_eea_encrypt, modify an operator |= to &=.
|
2023-02-19 18:08:36 +08:00 |
|
Zhi Guan
|
90c022c803
|
Add sm2_point_ functions
|
2023-02-19 08:24:17 +08:00 |
|
Zhi Guan
|
4913f94564
|
Update pem.c
|
2023-02-15 12:06:58 +08:00 |
|
Zhi Guan
|
e77aeffc21
|
Update CMake
|
2023-02-15 11:59:05 +08:00 |
|