Commit Graph

176 Commits

Author SHA1 Message Date
Zhi Guan
c0f0ed0449 Add TLS 1.2 TLS 1.3 tests 2024-06-02 12:56:15 +08:00
Zhi Guan
e4c77d9108 Add more gmssl command tests 2024-06-01 18:11:20 +08:00
Zhi Guan
3d6c8d15a8 Add command test to CMakeLists.txt 2024-06-01 11:46:13 +08:00
Zhi Guan
26750fbb1d Add gf128_mul arm64 intrinsics 2024-05-31 21:01:49 +08:00
Zhi Guan
e9e2d27021 Merge pull request #1684 from maximluo/dev-sm2
move ENABLE_SM2_ENC_PRE_COMPUTE to CMakeLists as an option
2024-05-29 09:48:59 +08:00
Zhi Guan
29e826ae5d Update CMakeLists.txt to support CentOS 7 2024-05-25 21:24:46 +08:00
Zhi Guan
2117196cac Install gmssl.conf to /etc/ld.so.conf.d 2024-05-25 14:32:24 +08:00
Zhi Guan
cde0065241 Update SM4 AES-NI implementation 2024-05-24 21:38:14 +08:00
Zhi Guan
4076a30fa2 Update SM4 AVX2 8x implementation 2024-05-24 21:13:09 +08:00
Zhi Guan
1fd989303f Add SM2 X86_64 asm
Not working yet
2024-05-24 20:04:53 +08:00
Zhi Guan
e2d4128ebe Update SM4 CE 2024-05-24 15:21:06 +08:00
luokai
475cb77829 move ENABLE_SM2_ENC_PRE_COMPUTE to CMakeLists as an option 2024-05-24 08:24:58 +08:00
Zhi Guan
d56eeaac5a Remove warnings 2024-05-17 13:12:51 +08:00
Zhi Guan
7cc5b77cf8 Add sm4_xts and ghash command 2024-05-15 10:00:22 +08:00
Zhi Guan
8fb8dd05ab Add sm4_ccm command 2024-05-14 21:56:03 +08:00
Zhi Guan
3b6c2a3e9b Update CMakeLists.txt 2024-05-13 15:57:57 +08:00
Zhi Guan
623fe136b3 Update CMakeLists.txt 2024-05-13 15:26:28 +08:00
Zhi Guan
11093afacd Update CMakeLists.txt 2024-05-12 23:25:42 +08:00
Zhi Guan
7a94496355 Update CMakeLists.txt 2024-05-12 23:18:18 +08:00
Zhi Guan
dc80b0c137 Change cpu suffix and other file names 2024-05-12 23:17:35 +08:00
Zhi Guan
58340393b1 Add SM4 commands in gmssl CLI 2024-05-11 18:10:24 +08:00
Zhi Guan
f11cf530d3 Add sm4_ctr gmssl option 2024-05-10 22:06:27 +08:00
Zhi Guan
d37d0b18b8 Change SDF files 2024-05-09 10:22:03 +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
1301280b77 Update soft_sdf 2024-05-05 22:25:01 +08:00
Zhi Guan
5cf6f2609e Add sm4_MODE_encrypt_blocks 2024-04-29 22:35:25 +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
52c1e57e8c Update CMakeLists.txt 2024-04-24 17:38:22 +08:00
Zhi Guan
329b539c50 Add sm9 speed test 2024-04-23 09:57:37 +08:00
Zhi Guan
fa5bf0e3a8 Add sm4_cl speed test 2024-04-22 22:59:02 +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
Gorachya
bab131604f Update CMakeLists.txt 2024-04-19 17:56:47 +08:00
Zhi Guan
ab7c9a7651 Adjust SM2 API and tests 2024-04-19 17:32:54 +08:00
Zhi Guan
725817add9 Use sm3_pbkdf2 without digest API 2024-04-19 13:21:52 +08:00
Zhi Guan
356e618d99 Add sm2_key test 2024-04-18 22:01:50 +08:00
Zhi Guan
b2707a1f0e Adjust SM9 files 2024-04-18 21:41:17 +08:00
Zhi Guan
549c68d2df Re-organize SM2 files 2024-04-17 22:43:04 +08:00
Zhi Guan
fbad76e807 Update CMakeLists.txt 2024-04-17 15:47:28 +08:00
Zhi Guan
c32cb0f8e4 Add sm3_pbkdf2 function
digest.h will be removed in the future.
2024-04-16 23:04:18 +08:00
Zhi Guan
9083a7a60b Rename SM2 file names 2024-04-16 19:20:35 +08:00
Zhi Guan
fea2b018dc Rename SM9 file names 2024-04-16 19:18:07 +08:00
Zhi Guan
afed7a0ecb Make SDF/SKF optional in CMake 2024-04-15 08:49:16 +08:00
Zhi Guan
0daba2e61d Generate compiler compatible assembly symbols
Typically when compiling a function `foo`,  GCC will add a prefix `_` to the symbol, i.e., generate `_foo`. But on some platforms, the compiler will not add prefix. option `ENABLE_ASM_UNDERSCORE_PREFIX` change the default name of global symbols in assembly code.
2024-04-13 17:37:47 +08:00
Zhi Guan
8e2c4ebd2f Update SM4 OpenCL implementation 2024-04-12 16:07:30 +08:00
Zhi Guan
8dd2e71a54 Remove old SM9 code 2024-04-11 23:30:01 +08:00
Zhi Guan
5b7a9c1604 rename sm4 aesni+avx source 2024-04-11 23:09:30 +08:00
Zhi Guan
51f60061c5 Add SM4 AArch64 assembly 2024-04-11 22:45:07 +08:00
Zhi Guan
b777fbafdb Re-organize SM4/GCM related source files 2024-04-11 22:19:50 +08:00
Zhi Guan
b83ff15aae Update SM4 and GF128
Merge sm4_tbox.c into sm4.c, optimize GMUL for AAarch64
2024-04-11 13:55:19 +08:00