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

Allow NIST curves on all ECDSA algorithms in libtomcrypt and libutee #7249

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

etienne-lms
Copy link
Contributor

According to GP TEE specification "ECDSA algorithm identifiers should be tied to the size of the digest, not the key.". Therefore allow use of any TEE_ALG_ECDSA_SHA* algorithm for any of the supported NIST curve.

The constraint removed by these changes are present only in libutee and libtomcrypt.

According to GP TEE specification "ECDSA algorithm identifiers should
be tied to the size of the digest, not the key.". Therefore allow use of
any TEE_ALG_ECDSA_SHA* algorithm for any of the supported NIST curves.

Reported-by: Anvisha <quic_anvisriv@quicinc.com>
Closes: OP-TEE/optee_test#721 (comment)
Link: OP-TEE#6230
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
According to GP TEE specification "ECDSA algorithm identifiers should
be tied to the size of the digest, not the key.". Therefore allow use of
any TEE_ALG_ECDSA_SHA* algorithm for any of the supported NIST curves.

Reported-by: Anvisha <quic_anvisriv@quicinc.com>
Closes: OP-TEE/optee_test#721 (comment)
Link: OP-TEE#6230
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Copy link
Contributor

@jforissier jforissier left a comment

Choose a reason for hiding this comment

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

For "ltc: allow NIST curves on all ECDSA algorithms":
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

Copy link
Contributor

@jforissier jforissier left a comment

Choose a reason for hiding this comment

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

For "libutee: allow NIST curves on all ECDSA algorithms": one minor comment.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

@@ -2713,6 +2730,7 @@ TEE_Result TEE_IsAlgorithmSupported(uint32_t alg, uint32_t element)
}

return TEE_ERROR_NOT_SUPPORTED;

Copy link
Contributor

Choose a reason for hiding this comment

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

Extra line not needed

Copy link
Contributor

@jenswi-linaro jenswi-linaro left a comment

Choose a reason for hiding this comment

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

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

Copy link

github-actions bot commented Mar 2, 2025

This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.

@github-actions github-actions bot added the Stale label Mar 2, 2025
@etienne-lms
Copy link
Contributor Author

Please keep alive. I'll work back on this topic soon...

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.

3 participants