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

ed448 key size 456 bits #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

ed448 key size 456 bits #18

wants to merge 1 commit into from

Conversation

PFnord
Copy link
Contributor

@PFnord PFnord commented Dec 13, 2024

It seems from spec rfc8032 The length of a key for ed448 and ed448ph is 57 bytes (456 bits).

Using 448 bits as a max length creates a buffer overflow warning when building with ED448 enabled.

@@ -270,7 +270,7 @@
#elif defined(PSA_WANT_ECC_MONTGOMERY_448)
#define PSA_VENDOR_ECC_MAX_CURVE_BITS 448u
#elif defined(PSA_WANT_ECC_TWISTED_EDWARDS_448)
#define PSA_VENDOR_ECC_MAX_CURVE_BITS 448u
Copy link

Choose a reason for hiding this comment

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

Wait, this must be moved above the PSA_WANT_ECC_MONTGOMERY_448 since it's bigger

@Vge0rge
Copy link
Contributor

Vge0rge commented Dec 19, 2024

please add [nrf noup] in the commit message

@Vge0rge
Copy link
Contributor

Vge0rge commented Dec 19, 2024

Can you also add the description in your PR to the commit message? So that we can track what's happening from git without using github?

RFC8032 mentions the length of a key for ed448 and ed448ph to be 57 bytes (456 bits).

Using 448 bits as a max length creates a buffer overflow warning when building with ED448 enabled.
Copy link

@degjorva degjorva left a comment

Choose a reason for hiding this comment

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

Looks good

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.

4 participants