-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feat/hw accelerated sha updated #46
Feat/hw accelerated sha updated #46
Conversation
Regarding benchmarks, I found this earlier today. |
Oh wow, good find. I would've never thought about this. |
8b9c4e5
to
0265213
Compare
1bbf5ef
to
e5965e4
Compare
Now that esp_hal had a new release, I rebased on top of the current HEAD and removed the patches. I've a few metrics side by side on an esp32s3: Self-tests:
edge_server example using SW SHA:
edge_server example using HW SHA:
|
Fixed in: |
9df4d7b
to
88042de
Compare
@@ -32,7 +32,7 @@ esp-println = { version = "0.12.0", features = ["log"] } | |||
esp-hal-embassy = { version = "0.4.0", optional = true } | |||
|
|||
embassy-time = { version = "0.3.0", optional = true } | |||
embassy-executor = { version = "0.6.0", package = "embassy-executor", features = [ | |||
embassy-executor = { version = "=0.6.0", package = "embassy-executor", features = [ |
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.
can't we just use 0.6.1 and not patch the crate?
For whatever reason I get compile errors for the C3 and async (but not S3?) - using embassy-executor 0.6.1 (and not patching any embassy crate) makes it work for me. Wonder why it works in CI 🤔 |
This is due to changes in the nightly wakers, where embassy-executor Once 1.83 is released, we can use embassy-executor |
- Use the current HEAD of edge-net for the lifetimes fix in edge-http - Use a patched version for embassy-executor before 0.6.0 was yanked.
88042de
to
4694d43
Compare
Ah yeah - thanks for the explanation (which also explains why it fails locally for me using a recent nightly) |
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.
Thanks
Built on top of #45
Supersedes #19
Current status: Draft until the following topics have been resolved.(Solved: Now binary size is smaller when using HW sha)
(Solved: Server example is slightly faster and self-tests are marginally faster)
(Solved: The numbers speak for themselves)
esp32
. Mbedtls combines both SHA224 and SHA256 in the same function calls, butesp32
only support SHA256.(Solved: For now,
esp32
still uses SW sha for SHA224 and SHA256)/cc @bugadani @Dominaezzz
Pinging you since this has been discussed in the matrix channel.