Add feature to choose Ecc, Micro-ecc or Cryptoauthlib to manage ecc #1
Draft
LizzieDE110 wants to merge 22 commits intomainfrom
Draft
Add feature to choose Ecc, Micro-ecc or Cryptoauthlib to manage ecc #1LizzieDE110 wants to merge 22 commits intomainfrom
LizzieDE110 wants to merge 22 commits intomainfrom
Conversation
added 16 commits
February 14, 2024 16:51
Owner
Author
|
Todo :
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I had noticed that the handshake was very slow on a SAMR21-xpro board, and I discovered that it was because ECC management (key generation, signature, and verification) was very slow.
I am working with RIOT (which supports Micro-ecc), so I created a small program to compare execution times between the current ECC API and Micro-ecc. Here are my results:
Example using ECC from tinydtls/ecc:
Similar example using Micro-ecc:
So Micro-ecc is much faster than the current ECC API and I decided to add the feature of tinydtls to use Micro-ecc (and thus accelerate the handshake).
Additionally, on another board, I have a secure element (ATECC608A) which is even faster than Micro-ecc and adds a very secure environment to work with private keys and secrets, so I decided to integrate it as well.
For now, I know that I have to add documentation. Examples using Micro-ecc and Cryptoauthlib require that those libraries are installed on your development environment before compiling.