Commit Graph

53 Commits

Author SHA1 Message Date
xxxlu 72b8827361 feat:Support RFC8998 cipher suites
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/638

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 19:43:37 +08:00
libiaoliang 8657b026ed demo test access control error correction
Co-authored-by: 离标量<xuzhengyi1@h-partners.com>

# message auto-generated for no-merge-commit merge:
merge FIX_BUG into main

demo test access control error correction

Created-by: libiaoliang
Commit-by: 离标量
Merged-by: liwei3013
Description: demo test access control error correction

See merge request: openHiTLS/openhitls!538

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:30 +08:00
dumb a2275a5119 preparing for riscv-CI
Co-authored-by: dumb<liuermeng2@huawei.com>

# message auto-generated for no-merge-commit merge:
merge riscv_ci into main

preparing for riscv-CI

Created-by: dumb
Commit-by: dumb
Merged-by: liwei3013
Description: preparing for riscv-CI

See merge request: openHiTLS/openhitls!582

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:30 +08:00
dny 4e4fde00f0 Sm provider add kdftls12 and tls groups.
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/535

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:29 +08:00
dny 22b6538bf9 App adds SM function.
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/477

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:29 +08:00
Ooohui b78f4f97a4 Fix the macros in default provider
Co-authored-by: Ooohui<zhanghui160@huawei.com>

# message auto-generated for no-merge-commit merge:
merge main into main

Fix the macros in default provider

Created-by: Ooohui
Commit-by: Ooohui
Merged-by: liwei3013
Description: Fix the macros in default provider

See merge request: openHiTLS/openhitls!532

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:28 +08:00
jchx 6b24a383ac chore: Optimize the demo construction framework and fix the default running issues of the demo
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/531

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:28 +08:00
dny 3a26cbb8d6 SM provider cuts the algorithm and only keeps sm algorithm.
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/481

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:26 +08:00
dny 52c8bf54e3 Add sm provider
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/444

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:26 +08:00
balabala-123 b87571cbb9 test: Add tlcp demo
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/456

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:25 +08:00
jchx 266de90f4f Rsa parameter sp800-validation is disabled by default
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/422

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:25 +08:00
Ooohui 096c529ddf Supports offloading hash algorithms in composition algorithms
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/392

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:24 +08:00
离标量 1cf5a5970a New command line added
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/415

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:24 +08:00
pi_ixeL 29e25c3d45 feat: support Certificate Authorities extension
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/397

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:23 +08:00
yanshichao 03a49b0535 support xmss/xmssmt
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/354

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:22 +08:00
pi_ixeL 741278531c feat: add user data to session
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/372

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:20 +08:00
bala ed498e245e fix:DTLS adds a timeout detection external interface.
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/328

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:19 +08:00
longparty 1ff66831d6 feat: add mtu related functions
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/338

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:19 +08:00
zhengzeyang b6fb1a09a8 Add fips186_4 dsa param generation.
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/346

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:49:19 +08:00
离标量 7e469eff2b RSA key generation supports setting random prime number seeds
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/250

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-03-30 17:47:14 +08:00
Ooohui 70449ed37c feat: Support curve nistp192 and setting/getting generic extension
Co-authored-by: Ooohui<zhanghui160@huawei.com>

# message auto-generated for no-merge-commit merge:
!960 merge openhitls-0.2 into openhitls-0.2

feat: Support curve nistp192 and setting/getting generic extension

Created-by: Ooohui
Commit-by: Ooohui
Merged-by: liwei3013
Description: <!--  Thanks for sending a pull request!  Here are some tips for you:

1) If this is your first time, please read our contributor guidelines: https://gitcode.com/openHiTLS/openhitls/wiki/FAQ-社区需求贡献流程.md

-->

**What does this PR do / why do we need it**:

**Self-checklist**:(**请自检,在[ ]内打上x**)

+ - [ ] **测试**:PR中的代码是否已有UT/ST测试用例进行充分的覆盖,新增测试用例是否随本PR一并上库或已经上库
+ - [ ] **接口**:是否涉及对外接口变更,相应变更已得到接口评审组织的通过,API对应的注释信息已经刷新正确
+ - [ ] **文档**:是否涉及官网文档修改,如果涉及请及时提交资料到Doc仓

<!-- **Special notes for your reviewers**: -->
<!-- + - [ ] 是否导致无法前向兼容 -->
<!-- + - [ ] 是否涉及依赖的三方库变更 -->

See merge request: openHiTLS/openhitls!960

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2026-01-15 15:48:45 +08:00
baoyi84930 42acbf3b10 chore: add -Wl,-no-undefined
This change adds the -Wl,-no-undefined option to the
linker flags to ensure that all symbols are defined
at link time. This helps catch missing symbols early,
prevents runtime errors due to unresolved symbols,
and improves build reliability by failing the build
if any undefined references remain.

Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/402

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-07-26 18:07:43 +08:00
Dongjianwei001 992fd53cae Delete the invalid code of uio_addr
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/370

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-07-09 14:13:59 +08:00
baoyi84930 c8d479f20b fix: x8664 without sha3 asm
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/363

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-07-08 14:19:13 +08:00
Dongjianwei001 531cde850e Modify the test feature of tlcp.
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/358

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-07-08 14:18:19 +08:00
baoyi84930 7e5f7d26a0 fix: no_kem mini case, add base connect mini test
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/356

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-07-08 14:18:19 +08:00
baoyi84930 c108260f44 test:tlcp mini test
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/337

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-06-28 18:59:46 +08:00
JerryDevis 87603f8050 modify compiler file of sdv testcase
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/318

Signed-off-by: Dongjianwei001 <dongjianwei1@huawei.com>
2025-06-28 18:59:46 +08:00
dumb 0d8a22464a add "HITLS_ATOMIC_THREAD_LOCK" macro to cover the thread-lock implemented atomic
Co-authored-by: Liu-Ermeng<liuermeng2@huawei.com>

# message auto-generated for no-merge-commit merge:
merge workflow into openhitls-0.2

add "HITLS_ATOMIC_THREAD_LOCK" macro to cover the thread-lock implemented atomic

Created-by: dumb
Commit-by: Liu-Ermeng
Merged-by: fly2x
Description: add pure-c and minitest workflows
add "HITLS_ATOMIC_THREAD_LOCK" macro to cover the thread-lock implemented atomic

See merge request: openHiTLS/openhitls!311

Signed-off-by: lanming <lanming@huawei.com>
2025-05-29 20:03:05 +08:00
liwei3013 cea047ff0a refactor algorithm module provider interfaces to be compatible with no-provider's interfaces
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/260
2025-05-08 21:14:06 +08:00
JerryDevis bc033090f6 add testcase for decoder provider
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/254
2025-05-06 21:21:30 +08:00
JerryDevis 78f63e8c4f support decoder provider
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/242
2025-04-30 15:06:59 +08:00
jchx 13abf5871f Co-authored-by: jchx<chenqi180@huawei.com>
# message auto-generated for no-merge-commit merge:
merge main into main

fix the Secure_C compile path

Created-by: jchx
Commit-by: jchx
Merged-by: liwei3013
Description: fix the Secure_C compile path

See merge request: openHiTLS/openhitls!249
2025-04-29 19:51:20 +08:00
jchx 3eaaf11bed feat: Add sm2 optimization to enhance the performance of sm2
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/243
2025-04-28 17:04:17 +08:00
Dongjianwei001 5e435c58e7 Modify the names of function parameters and enumeration values
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/239
2025-04-27 22:22:01 +08:00
Ooohui e6d83c9f8a Add miniaturization functions and tests
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/197
2025-04-19 18:31:57 +08:00
liwei3013 70b9e6898a bugfix hybrid kem did not support random number offloading
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/209
2025-04-13 15:52:49 +08:00
ZHui_er 7bbc7c2f8a Algorithm performance optimization, post-quantum algorithm open source
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/209
2025-04-12 19:12:16 +08:00
JerryDevis 05b5b0bc2a support tls provider
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/189
2025-03-25 14:25:50 +08:00
libiaoliang 6c35e0b9c6 provider error correction
# message auto-generated for no-merge-commit merge:
merge FIX_BUG into main

provider error correction

Created-by: libiaoliang
Commit-by: 离标量
Merged-by: liwei3013
Description: fix:provider environment variable test case repair
fix:mac and kdf error correction
fix:cipher error correction

See merge request: openHiTLS/openhitls!159
2025-03-01 09:17:45 +08:00
jchx 4e4b06b588 Add auth module of Privacy Pass Issuance Protocols based on RFC9578 & RFC9577
Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/99
2024-12-18 09:26:37 +08:00
kcxm afd4eb3ede fix demo print
# message auto-generated for no-merge-commit merge:
merge main into main

fix demo print

Created-by: kcxm
Author-id: 1439258
MR-id: 4363800
Commit-by: kcxm
Merged-by: dumb
E2E-issues: 
Description: fix demo print

See merge request: openHiTLS/openhitls!79
2024-11-26 11:31:49 +08:00
Ooohui d5be652d44 fix some bugs
# message auto-generated for no-merge-commit merge:
merge fix into main

fix some bugs

Created-by: Ooohui
Author-id: 1430981
MR-id: 4361200
Commit-by: Ooohui
Merged-by: liwei3013
E2E-issues: 
Description: fix some bugs

See merge request: openHiTLS/openhitls!75
2024-11-25 22:23:00 +08:00
Liu-Ermeng 087474a3c5 print asan log when there's a asan error
# message auto-generated for no-merge-commit merge:
merge main into main

print asan log when there's a asan error

Created-by: dumb
Author-id: 822999
MR-id: 4361032
Commit-by: Liu-Ermeng
Merged-by: fly2x
E2E-issues: 
Description: print asan log when there's a asan error

See merge request: openHiTLS/openhitls!74
2024-11-25 17:06:48 +08:00
JerryDevis 6b1c18b4d8 refactor pki module
1. refactor x509 attribute to add callback for parsing and encoding
2. fix the bug of printing x509 distinguish name
3. support to sign or verify csr, cert, crl with sm2 userId


# message auto-generated for no-merge-commit merge:
merge main into main

refactor pki module

Created-by: JerryDevis
Author-id: 900225
MR-id: 4358813
Commit-by: JerryDevis
Merged-by: liwei3013
E2E-issues: 
Description: 1. refactor x509 attribute to add callback for parsing and encoding
2. fix the bug of printing x509 distinguish name
3. support to sign or verify csr, cert, crl with sm2 userId

See merge request: openHiTLS/openhitls!61
2024-11-23 18:27:23 +08:00
Liu-Ermeng d5659ee417 refactor the testcase building
# message auto-generated for no-merge-commit merge:
merge main into main

refactor the testcase building

Created-by: dumb
Author-id: 822999
MR-id: 4358793
Commit-by: Liu-Ermeng
Merged-by: liwei3013
E2E-issues: 
Description: refactor the testcase building

See merge request: openHiTLS/openhitls!57
2024-11-23 11:03:46 +08:00
liwei3013 ddc2875d56 add bsl param
# message auto-generated for no-merge-commit merge:
merge param into main

add bsl param

Created-by: liwei3013
Author-id: 852200
MR-id: 4358460
Commit-by: liwei3013
Merged-by: dumb
E2E-issues: 
Description: add bsl param

See merge request: openHiTLS/openhitls!51
2024-11-22 18:54:40 +08:00
Liu-Ermeng d048bc4c28 add asan and gcov compile flags to demo's building
# message auto-generated for no-merge-commit merge:
merge main into main

add asan and gcov compile flags to demo's building

Created-by: dumb
Author-id: 822999
MR-id: 4358522
Commit-by: Liu-Ermeng
Merged-by: fly2x
E2E-issues: 
Description: add asan and gcov compile flags to demo's building

See merge request: openHiTLS/openhitls!54
2024-11-22 11:33:57 +08:00
Liu-Ermeng fc4e5ae9f9 add demo's building and running process
# message auto-generated for no-merge-commit merge:
merge main into main

add demo's building and running process

Created-by: dumb
Author-id: 822999
MR-id: 4358497
Commit-by: Liu-Ermeng
Merged-by: fly2x
E2E-issues: 
Description: add demo's building and running process

See merge request: openHiTLS/openhitls!53
2024-11-22 10:35:26 +08:00
Ooohui 3fc1db8078 Rename x509 module
# message auto-generated for no-merge-commit merge:
merge fix into main

Rename x509 module

Created-by: Ooohui
Author-id: 1430981
MR-id: 4344426
Commit-by: Ooohui
Merged-by: dumb
E2E-issues: 
Description: Rename x509 module

See merge request: openHiTLS/openhitls!34
2024-11-18 19:13:26 +08:00