36 Commits

Author SHA1 Message Date
Zhi Guan
058fd4766c Update sm4.h 2024-06-22 11:49:50 +08:00
Zhi Guan
6248cc171c Check sm4-gcm max plaintext size 2024-06-11 23:22:39 +08:00
Zhi Guan
31c26de865 Remove _gmssl_export 2024-05-29 09:40:03 +08:00
Zhi Guan
7f3072e917 Let sm4_cbc_encrypt_blocks update iv
If in == out, then after encryptions the input (i.e. iv) is changed
2024-05-13 21:44:06 +08:00
Zhi Guan
58340393b1 Add SM4 commands in gmssl CLI 2024-05-11 18:10:24 +08:00
Zhi Guan
46bdce350c Update sm4.h 2024-05-09 16:40:15 +08:00
Zhi Guan
3d491c9e14 Use SDF as the crypto provider in SM2/3/4 CTX API
cmake .. -DENABLE_CRYPTO_SDF=ON
2024-05-08 17:04:45 +08:00
Zhi Guan
5cf6f2609e Add sm4_MODE_encrypt_blocks 2024-04-29 22:35:25 +08:00
Zhi Guan
6e8a36c738 Update SM4 CBC API 2024-04-28 17:27:41 +08:00
Zhi Guan
060930093f Update SM4 TBOX version 2024-04-28 17:11:57 +08:00
Zhi Guan
bc15f7a0c7 Update SM4 API 2024-04-27 12:08:35 +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
2d0378f3c7 Adjust SM4 source files 2024-04-10 16:07:44 +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
c9c26aca44 Add more SM4 modes 2024-02-19 14:16:49 +08:00
Zhi Guan
92818b3fe5 Update SM4_CBC_CTX and SM4_CTR_CTX
To support UADK and other third-party SM4 implementations
2024-01-03 10:17:31 +08:00
Zhi Guan
257ba6bcdb Update SM4
Simple SM4 cipher implementation in `sm4.c`
2023-12-13 20:26:57 +08:00
Zhi Guan
71fb469801 Update SM4 GCM IV sizes 2023-10-13 22:08:17 +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
28ccbe57cc Add args checking to GCM mode 2022-07-31 18:08:46 +08:00
Zhi Guan
d7a96e3ba1 Update Public API 2022-05-23 09:42:08 +08:00
Zhi Guan
22639fce28 add gmssl command 2022-04-16 22:18:45 +08:00
Zhi Guan
7e4dd76839 update 2022-04-11 17:56:25 +08:00
Zhi Guan
f8310bcd72 Update v3 API 2022-02-23 18:59:41 +08:00
Zhi Guan
becaed76fa update 2021-09-10 11:33:48 +08:00
Zhi Guan
bcad2eb8dd update 2021-09-10 11:29:16 +08:00
Zhi Guan
ae001fbf15 utf8 + bom 2021-08-04 22:07:50 +08:00
Zhi Guan
2ecba70472 remove old api 2021-07-31 22:07:25 +08:00
Zhi Guan
62d1899760 tls 1.3 init 2021-07-28 16:32:10 +08:00
Zhi Guan
0af5775be3 Init commit of gmssl-v3 2021-07-13 19:21:43 +08:00