| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
add benchmarks Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: merge bench1 into main add benchmarks Created-by: dumb Commit-by: dumb Merged-by: liwei3013 Description: add benchmarks See merge request: openHiTLS/openhitls!478 | 1 年前 | |
add sha256-mb interfaces add sha256x2 implementation in NEON | 7 个月前 | |
docs(md): fix SHA256-MB API comment and benchmark typo | 5 个月前 | |
fix: address security review findings on rsa, bn, sha2, mldsa, cmac and CI - ci: run the riscv64 self-hosted job on push only, so untrusted PR code cannot execute on the self-hosted runner - sha2: gate the multi-buffer SHA256 path on the ARM SHA2 extension at init to avoid SIGILL on cores without it; add missing input checks to the one-shot CRYPT_SHA256_MB - mldsa: decrement the loop counter in the ARMv8 UseHint32/88 routines; the missing decrement emitted a 17th 64-byte chunk store, writing 64 bytes past each w[i] polynomial during signature verification. Add an SDV case with a canary after the last polynomial to guard the bound - rsa: reject inLen < 2 in CRYPT_RSA_VerifyPkcsV15Type2TLS before reading in[0]/in[1] to prevent an out-of-bounds read with a malformed short modulus - bn: BN_GenPrime now retries only on a composite candidate and aborts on real errors, preventing an infinite loop when the rand source fails persistently (aligned with OpenSSL behavior) - cmac: replace NULL + 0 pointer arithmetic on empty updates with an index loop to remove undefined behavior - curve25519: clear the partially duplicated key context on the DupCtx failure path - benchmark: reject -l values beyond the fixed buffer size Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/1803 Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/1816 | 17 天前 | |
fix: classic mceliece hardeness Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/1683 | 1 个月前 | |
add benchmarks Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: merge bench1 into main add benchmarks Created-by: dumb Commit-by: dumb Merged-by: liwei3013 Description: add benchmarks See merge request: openHiTLS/openhitls!478 | 1 年前 | |
add benchmarks Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: merge bench1 into main add benchmarks Created-by: dumb Commit-by: dumb Merged-by: liwei3013 Description: add benchmarks See merge request: openHiTLS/openhitls!478 | 1 年前 | |
feat: Support curve nistp192 and setting/getting generic extension Co-authored-by: Ooohui<zhanghui160@huawei.com> # message auto-generated for no-merge-commit merge: !954 merge main into main 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://gitee.com/mindspore/mindspore/blob/master/CONTRIBUTING.md 2) If you want to contribute your code but don't know who will review and merge, please add label mindspore-assistant to the pull request, we will find and do it as soon as possible. --> **What type of PR is this?** <!-- 选择下面一种标签替换下方 /kind <label>,可选标签类型有: - /kind bug - /kind task - /kind feature - /kind refactor - /kind clean_code 如PR描述不符合规范,修改PR描述后需要/check-pr重新检查PR规范。 --> /kind <label> **Self-checklist**:(**请自检,在[ ]内打上x,我们将检视你的完成情况,否则会导致pr无法合入**) + - [ ] **设计**:PR对应的方案是否已经经过Maintainer评审,方案检视意见是否均已答复并完成方案修改 + - [ ] **测试**:PR中的代码是否已有UT/ST测试用例进行充分的覆盖,新增测试用例是否随本PR一并上库或已经上库 + - [ ] **验证**:PR描述信息中是否已包含对该PR对应的Feature、Refactor、Bugfix的预期目标达成情况的详细验证结果描述 + - [ ] **接口**:是否涉及对外接口变更,相应变更已得到接口评审组织的通过,API对应的注释信息已经刷新正确 + - [ ] **文档**:是否涉及官网文档修改,如果涉及请及时提交资料到Doc仓 <!-- **Special notes for your reviewers**: --> <!-- + - [ ] 是否导致无法前向兼容 --> <!-- + - [ ] 是否涉及依赖的三方库变更 --> See merge request: openHiTLS/openhitls!954 | 8 个月前 | |
feat: Support curve nistp192 and setting/getting generic extension Co-authored-by: Ooohui<zhanghui160@huawei.com> # message auto-generated for no-merge-commit merge: !954 merge main into main 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://gitee.com/mindspore/mindspore/blob/master/CONTRIBUTING.md 2) If you want to contribute your code but don't know who will review and merge, please add label mindspore-assistant to the pull request, we will find and do it as soon as possible. --> **What type of PR is this?** <!-- 选择下面一种标签替换下方 /kind <label>,可选标签类型有: - /kind bug - /kind task - /kind feature - /kind refactor - /kind clean_code 如PR描述不符合规范,修改PR描述后需要/check-pr重新检查PR规范。 --> /kind <label> **Self-checklist**:(**请自检,在[ ]内打上x,我们将检视你的完成情况,否则会导致pr无法合入**) + - [ ] **设计**:PR对应的方案是否已经经过Maintainer评审,方案检视意见是否均已答复并完成方案修改 + - [ ] **测试**:PR中的代码是否已有UT/ST测试用例进行充分的覆盖,新增测试用例是否随本PR一并上库或已经上库 + - [ ] **验证**:PR描述信息中是否已包含对该PR对应的Feature、Refactor、Bugfix的预期目标达成情况的详细验证结果描述 + - [ ] **接口**:是否涉及对外接口变更,相应变更已得到接口评审组织的通过,API对应的注释信息已经刷新正确 + - [ ] **文档**:是否涉及官网文档修改,如果涉及请及时提交资料到Doc仓 <!-- **Special notes for your reviewers**: --> <!-- + - [ ] 是否导致无法前向兼容 --> <!-- + - [ ] 是否涉及依赖的三方库变更 --> See merge request: openHiTLS/openhitls!954 | 8 个月前 | |
Fix sizeof enumeration error Signed-off-by: balabala-123 <guozhang4@huawei.com> | 6 个月前 | |
fix: classic mceliece hardeness Cherry-picked from: https://gitcode.com/openHiTLS/openhitls/merge_requests/1683 | 1 个月前 | |
add benchmarks Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: merge bench1 into main add benchmarks Created-by: dumb Commit-by: dumb Merged-by: liwei3013 Description: add benchmarks See merge request: openHiTLS/openhitls!478 | 1 年前 | |
add benchmarks Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: merge bench1 into main add benchmarks Created-by: dumb Commit-by: dumb Merged-by: liwei3013 Description: add benchmarks See merge request: openHiTLS/openhitls!478 | 1 年前 | |
add benchmarks Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: merge bench1 into main add benchmarks Created-by: dumb Commit-by: dumb Merged-by: liwei3013 Description: add benchmarks See merge request: openHiTLS/openhitls!478 | 1 年前 | |
add benchmarks Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: merge bench1 into main add benchmarks Created-by: dumb Commit-by: dumb Merged-by: liwei3013 Description: add benchmarks See merge request: openHiTLS/openhitls!478 | 1 年前 | |
Fix sizeof enumeration error Signed-off-by: balabala-123 <guozhang4@huawei.com> | 6 个月前 | |
add benchmarks Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: merge bench1 into main add benchmarks Created-by: dumb Commit-by: dumb Merged-by: liwei3013 Description: add benchmarks See merge request: openHiTLS/openhitls!478 | 1 年前 | |
fix sm9_bench compile error Co-authored-by: dumb<liuermeng2@huawei.com> # message auto-generated for no-merge-commit merge: !949 merge bench_bug into main fix sm9_bench compile error Created-by: dumb Commit-by: dumb 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://gitee.com/mindspore/mindspore/blob/master/CONTRIBUTING.md 2) If you want to contribute your code but don't know who will review and merge, please add label mindspore-assistant to the pull request, we will find and do it as soon as possible. --> **What type of PR is this?** <!-- 选择下面一种标签替换下方 /kind <label>,可选标签类型有: - /kind bug - /kind task - /kind feature - /kind refactor - /kind clean_code 如PR描述不符合规范,修改PR描述后需要/check-pr重新检查PR规范。 --> fix #95 **Self-checklist**:(**请自检,在[ ]内打上x,我们将检视你的完成情况,否则会导致pr无法合入**) + - [ ] **设计**:PR对应的方案是否已经经过Maintainer评审,方案检视意见是否均已答复并完成方案修改 + - [ ] **测试**:PR中的代码是否已有UT/ST测试用例进行充分的覆盖,新增测试用例是否随本PR一并上库或已经上库 + - [ ] **验证**:PR描述信息中是否已包含对该PR对应的Feature、Refactor、Bugfix的预期目标达成情况的详细验证结果描述 + - [ ] **接口**:是否涉及对外接口变更,相应变更已得到接口评审组织的通过,API对应的注释信息已经刷新正确 + - [ ] **文档**:是否涉及官网文档修改,如果涉及请及时提交资料到Doc仓 <!-- **Special notes for your reviewers**: --> <!-- + - [ ] 是否导致无法前向兼容 --> <!-- + - [ ] 是否涉及依赖的三方库变更 --> See merge request: openHiTLS/openhitls!949 | 8 个月前 |
openhitls benchmark
Before running benchmark, openhitls should be built firstly.
run like
openhitls_benchmark // run all benchmark testcases
openhitls_benchmark -a sm2* // run all sm2 benchmark testcases
openhitls_benchmark -a sm2-KeyGen // just run sm2 KeyGen
openhitls_benchmark -a *-KeyGen // run all KeyGen benchmark testcases, the '-' is needed when match operations.
openhitls_benchmark -a sm2-KeyGen -t 10000 // run 'sm2 KeyGen' 10000 times
openhitls_benchmark -t 10000 // run every benchmark testcase 10000 times
openhitls_benchmark -s 5 // run every benchmark testcase 5 seconds