Commit Graph

183 Commits

Author SHA1 Message Date
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
Zhi Guan
2d0378f3c7 Adjust SM4 source files 2024-04-10 16:07:44 +08:00
Zhi Guan
ccab5f168e Update SM4 build options 2024-04-10 11:33:57 +08:00
Zhi Guan
d752d66633 Add SM9 2-way mont mul 2024-04-06 11:11:09 +08:00
Zhi Guan
eabeeeeed0 Update CMakeLists.txt 2024-04-05 23:16:23 +08:00
Zhi Guan
d889a48b5d Add SM3 SSE 2024-04-05 23:08:31 +08:00
Zhi Guan
149e429d1c Add SM4 aarch64 asm support 2024-04-01 09:53:52 +08:00
Zhi Guan
6b36c51cdf Add GMUL ASM 2024-03-31 16:54:24 +08:00
Gorachya
ce7f9a281a Merge branch 'guanzhi:master' into master 2024-03-19 23:32:08 +08:00
Gorachya
ad9ee2ebf0 Add files via upload 2024-03-19 23:31:33 +08:00
Zhi Guan
31440f9948 Update SM2 2024-03-19 21:37:36 +08:00
Gorachya
600a4657eb Update CMakeLists.txt 2024-03-13 15:49:09 +08:00
Gorachya
ed06f547c1 Add files via upload 2024-03-13 15:45:27 +08:00
Zhi Guan
33baa3df92 Update SM2 2024-03-10 22:34:43 +08:00
Zhi Guan
4fa09e1f54 Update sm2 sign/enc with z256 implementation 2024-02-26 09:52:40 +08:00
Zhi Guan
c460766320 Update SM2 arithmetic implementations
Decouple API and implementations. SM2 arithmetic exposes 3 types: GF(p), GF(n), and Point.
2024-02-22 11:14:59 +08:00
Zhi Guan
326e7de416 Add SM2 Z256 implementation 2024-02-20 11:24:00 +08:00
Zhi Guan
c9c26aca44 Add more SM4 modes 2024-02-19 14:16:49 +08:00
Zhi Guan
8ae03e8105 Add more sm4 modes
Not tested yet
2024-02-10 15:46:59 +08:00
Zhi Guan
2c893d797b Update soft_sdf 2024-01-31 21:10:30 +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
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
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
5814112e22 Fix gmssl RPATH issue in Mac 2023-12-14 11:48:48 +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
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
1d6c763afb Update version to 3.1.2-Dev 2023-12-13 20:02:27 +08:00
Zhi Guan
d655c06b3a Update version 2023-12-12 16:05:31 +08:00
Zhi Guan
01ade02dfa Update Versions 2023-10-24 08:57:16 +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
739c4dbced Update CMakeLists.txt 2023-10-17 23:12:47 +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
326956bbff Remove demos relay on third-party code 2023-10-13 17:50:55 +08:00
Zhi Guan
435f93771d Merge pull request #1495 from cntpro/master
增加在nmake下对源文件utf-8编码的支持,解决在msvc编译错误问题
2023-10-11 17:47:48 +08:00