-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[ARM] bignum multiplication improvement #9
Comments
Hi, would be nice to leverage the NEON instructions like What do you think about this approach of using the Karatsuba algorithm and implementing it with NEON instructions? |
Looks nice, thanks for the links! We'll study that and hopefully integrate something along these lines in a future version. Unfortunately I can't make any promises as to when. |
Integrate test suite build with greentea/htrun automated test execution
PKCS7 Signed Data Verification Pass SHA256 #9 ..................... FAILED buflen == datalen at line 225, C:/builds/workspace/mbed-tls-pr-head_PR-3431-head/worktrees/tmp6he90804/tests/suites/test_suite_pkcs7.function PKCS7 Signed Data Verification Pass SHA256 #9.1 ................... FAILED buflen == datalen at line 279, C:/builds/workspace/mbed-tls-pr-head_PR-3431-head/worktrees/tmp6he90804/tests/suites/test_suite_pkcs7.function Seems fread() returns differently on Windows vs Linux. Reading it in binary mode might fix the problem. Signed-off-by: Nayna Jain <[email protected]>
PKCS7 Signed Data Verification Pass SHA256 #9 ..................... FAILED buflen == datalen at line 225, C:/builds/workspace/mbed-tls-pr-head_PR-3431-head/worktrees/tmp6he90804/tests/suites/test_suite_pkcs7.function PKCS7 Signed Data Verification Pass SHA256 #9.1 ................... FAILED buflen == datalen at line 279, C:/builds/workspace/mbed-tls-pr-head_PR-3431-head/worktrees/tmp6he90804/tests/suites/test_suite_pkcs7.function Seems fread() returns differently on Windows vs Linux. Reading it in binary mode might fix the problem. Signed-off-by: Nayna Jain <[email protected]>
RFC2315, section 9.2: authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL If authenticated attributes are present, it must contain at minimum two attributes: - A PKCS Mbed-TLS#9 content-type attribute having as its value the content type of the ContentInfo value being signed. - A PKCS Mbed-TLS#9 message-digest attribute, having as its value the message digest of the content. Section 9.3: When they are present, the result of the message digesting process is the digest of the complete DER encoding of the section, and the expected leading tag is SET OF and not the IMPLICIT [0] tag. Signed-off-by: Beniamin Sandu <[email protected]>
… mutex locking/unlocking fail Merge in MCUCORE/mcu-sdk-mbedtls from bugfix/MCUX-57380-cherrypick-patch-which-has-been-aplied-on-minor-2.13.1 to master * commit 'e4b41e39160b8fd745047edbecdd5967d7d43d8e': [MCUX-57380] Fix possible resource leak when mutex locking/unlocking fail
MULADDC_CORE can be improved for ARM.
I am using PolarSSL's rsa.c for 2048-bit key with STM32F103 processor.
It takes 1.78 second to sign in current implementation.
With this change, it takes 1.72 second.
Please see attached patch.
https://gist.github.com/4079268
Tomstdenis:
ARMv4 TDMI and ARMv5 up support much more efficient multiplication. You may want to look into that. From a practical standpoint new devices are V5 or higher anyways so supporting V4 and below is kinda archaic.
We could help you speed up your math lib. We have an ARM A9 to profile on as well.
The text was updated successfully, but these errors were encountered: