-
Notifications
You must be signed in to change notification settings - Fork 3k
NUCLEO_F756ZG / mbedTLS_SHA1 hw acceleration #4158
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
Conversation
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.
functionally, I believe it will work, however I would consider replacing the dynamically allocated buffer (ctx->sbuf) to a buffer in the context of size SHA1_BLOCK_SIZE (64) .Whenever it gets to 64, call HAL_HASH_SHA1_Accumulate
with this buffer. amd another call to HAL_HASH_SHA1_Accumulate
with the rest of the input. This will save memcpy to intermediate buffer, it will save memory fragmentation, so probably improve performance as well. (sometimes two calls to HAL_HASH_SHA1_Accumulate
but I think it is faster then memcpy to buffer and memory fragmentation)
|
||
|
||
#define MBEDTLS_SHA1_C |
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.
Please remove
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.
done
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.
@adustm I think it wasn't removed
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.
Correct, I missed this one because this branch is focusing on F7 family.
} | ||
if (ctx->sbuf !=NULL) { // allocation occured | ||
memcpy(ctx->sbuf, ptr, size); | ||
ctx->flag = 1; |
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.
please rename flag
to something more clear, such as sbuf_flag
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.
not applicable with the new storing mechanism
retest uvisor |
This branch is now aligned with the NUCLEO_F439ZI. |
Almost identical to PR #4157 so I won't comment on this one. |
This is equivalent to #4162 and I have already reviewed that PR. |
Hello, |
Hello |
Hello, the scripts are still running after 3 days, I guess it should be executed again ? Thanks in advance |
@0xc0170 Only travis seems to be hanging in this one. |
I restarted Travis, the job is https://travis-ci.org/ARMmbed/mbed-os/builds/243562660 |
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.
Looks good to me.
Hello @RonEld |
bump ? |
@adustm sorry for the delays, our ci has been tied up with the 5.5.0 and 5.5.1 releases. |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputExample Build failed! |
|
hello, I guess the next step is another morph test ? |
@adustm Yep /morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Hello, |
We fixed few targets - real issues with timings mostly, and host tests improvements that exercise those time tests |
@adustm Is there any dependency for this PR? Or ready to go? |
Hello @0xc0170 I just rebased this PR on the master. It is ready to go. Kind regards |
Thank you @adustm , we will retrigger the tests |
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputExample Build failed! |
/morph test-nightly |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Description
mbedtls_SHA1 hw acceleration for NUCLEO_F756ZG
Status
READY
Related PRs
Same as #3957 on another branch
This PR needs #3954 + #3947 to be merged first
Steps to test or reproduce
same as in #3947