-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Benchmark, SM3: fix full hash testing #7493
Conversation
Test now has an array of hashes. Use only first hash when testing full digest operation.
retest this please |
Variables may not be initialized in benchmark test when building for small stack.
Set the curve explicitly if it is SM2. Set the key type to signature algorithm to handle SM2.
retest this please |
1 similar comment
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks fine, but I can't get a proper read on whether it works because of preexisting defects in the wolfsm code.
I've implemented several tests for it in the usual way, and the initial report is
65a2e5265c-multi-test-log.html.gz
From the looks of it, most of the fixes will be to the wolfsm repo. Assign the wolfsm fixit PR(s) to me when they're ready.
Pass around the algorithm id from the private key so that the WOLFSSL or WOLFSSL_CTX get the correct key format set. Use different verification context when self-signed certificate with SM2 and SM3 signature but public key OID is ECC.
694386c
to
add7428
Compare
retest this please |
Let me know if there are further clang-tidy fixes required. |
Benchmark, SM3: fix full hash testing
Description
Test now has an array of hashes.
Use only first hash when testing full digest operation.
Testing
Install SM code.
./configure --enable-sm3
make
Checklist