Skip to content

CBMC: Eliminate proof performance workaround in signing #1026

@mkannwischer

Description

@mkannwischer

#1015 introduced the following workarounds in signing due to proof performance issues:

/* TODO: Remove this workaround for CBMC performance issues */
*t = w0->vec[k];
mld_poly_sub(t, z);
mld_poly_reduce(t);
/* Check that subtracting cs2 does not change high bits of w and low bits
* do not reveal secret information */
w0_invalid = mld_poly_chknorm(t, MLDSA_GAMMA2 - MLDSA_BETA);
w0->vec[k] = *t;

/* TODO: Remove this workaround for CBMC performance issues */
*t = w0->vec[k];
mld_poly_add(t, z);
w0->vec[k] = *t;

We should eliminate those workarounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions