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

Add Tinycrypt based SHA-512 for ED25519 #627

Merged
merged 3 commits into from
Feb 4, 2020

Conversation

utzig
Copy link
Member

@utzig utzig commented Jan 3, 2020

Add option to build ed25519 with Tinycrypt.

This depends on intel/tinycrypt#42 being accepted and update of local copy.

UPDATE: sha-512 was added separately while upstream PR is pending acceptance.

@utzig
Copy link
Member Author

utzig commented Jan 5, 2020

This needs to be rebased after #629 is merged for it to fail as would be expected.

A patch adding sha-512 to upstream tinycrypt was submitted:
intel/tinycrypt#42

While it is not accepted, add the code under a new ext/tinycrypt-sha512
depedency.

Signed-off-by: Fabio Utzig <utzig@apache.org>
Add option to build ed25519 with tinycrypt; enable tinycrypt based
sha-512 for ed25519 sim tests.

Signed-off-by: Fabio Utzig <utzig@apache.org>
* Mynewt always uses sha-512 from tinycrypt
* Zephyr can choose either tinycrypt or mbedTLS

Signed-off-by: Fabio Utzig <utzig@apache.org>
@utzig utzig requested a review from d3zd3z February 3, 2020 13:44
@utzig
Copy link
Member Author

utzig commented Feb 3, 2020

@d3zd3z To avoid stalling a new release, I updated this PR adding sha-512 for tinycrypt in another external included library. It is being tested on the sim, and I tested it on Mynewt and Zephyr.

Copy link
Member

@d3zd3z d3zd3z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I agree about merging this, and then cleaning up once it is merged upstream.

@utzig utzig merged commit 34e93a5 into mcu-tools:master Feb 4, 2020
@utzig utzig deleted the tinycrypt-sha512 branch February 4, 2020 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants