Skip to content
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

Feature request: HW accelerated crypto #123

Open
bugadani opened this issue Jul 18, 2023 · 1 comment
Open

Feature request: HW accelerated crypto #123

bugadani opened this issue Jul 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@bugadani
Copy link
Collaborator

bugadani commented Jul 18, 2023

We should be able to parametrize embedded-tls to allow replacing software crypto with hardware implementation. This would be a giant perf win on certain MCUs, however, this seems quite a big overhaul.

We could probably base the API around https://github.com/RustCrypto/traits

@newAM
Copy link
Collaborator

newAM commented Jul 19, 2023

This would be a good feature to have. I forget the context but I recall difficulties when I tried to use the STM hardware PKA for the RustCrypto traits.

For reference, I previously measured this for p256-cm4 on a STM32WL.

Implementation Signing Cycles (appx) Verify Cycles (appx) Flash Size (appx)
Hardware PKA 5,211,859 10,516,860 1,582 B
RustCrypto 7,856,436 14,303,277 49 kiB
p256-cm4 442,754 1,225,746 10 kiB

@newAM newAM added the enhancement New feature or request label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants