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

Optimize interruptible key agreement dispatch through ECDH #9719

Open
gilles-peskine-arm opened this issue Oct 23, 2024 · 0 comments
Open

Optimize interruptible key agreement dispatch through ECDH #9719

gilles-peskine-arm opened this issue Oct 23, 2024 · 0 comments
Labels
component-crypto Crypto primitives and low-level interfaces enhancement size-s Estimated task size: small (~2d)

Comments

@gilles-peskine-arm
Copy link
Contributor

PSA interruptible key agreement dispatches has a long dispatch chain:

  • interface in psa_crypto.c
  • driver dispatch
  • built-in implementation in psa_crypto_ecp.c
  • Legacy ECDH in ecdh.c
  • ECC arithmetic in ecp.c

The dispatch through ECDH has known inefficiencies where we're copying data around, but don't need to. The goal of this task is, at a minimum, to optimize this. Furthermore, look for other inefficiencies in the ECDH indirection and analyze how we might optimize those. The answer might be to eliminate ECDH altogether, or to change the ECDH interface. Note that starting in TF-PSA-Crypto 1.0, ecdh.h is an unstable or internal interface and we can change it at any time.

@gilles-peskine-arm gilles-peskine-arm added enhancement component-crypto Crypto primitives and low-level interfaces size-s Estimated task size: small (~2d) labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-crypto Crypto primitives and low-level interfaces enhancement size-s Estimated task size: small (~2d)
Projects
Status: No status
Development

No branches or pull requests

1 participant