Skip to content

ML-DSA: no keys on the stack in low-stack mode #814

Description

@gilles-peskine-arm

When ML-DSA is configured in low-stack mode (TF_PSA_CRYPTO_PQCP_BUFFER_ALLOC introduced by #786), also use the global buffer instead of a large stack variable (~4kB) for temporary copies of keys.

Also, in signature, when the expanded private key is available (#774), make sure we never use a large stack variable or a heap variable.

Prerequisites:

Metadata

Metadata

Assignees

No one assigned

    Labels

    size-sEstimated task size: small (~2d)

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions