Skip to content

Conversation

@willieyz
Copy link
Contributor

@willieyz willieyz commented Nov 11, 2025

  • Resolves: #Port and exercise MLK_CHECK_APIS option #579

  • This PR port and exercise the MLD_CHECK_APIS to mldsa-native, referencing from mlkem-native

  • Add the API consistency between internal sign.h and external mldsa_native.h for forllowing:

    • CRYPTO_SECRETKEYBYTES != MLDSA_SECRETKEYBYTES(MLD_CONFIG_API_PARAMETER_SET)
    • CRYPTO_PUBLICKEYBYTES != MLDSA_PUBLICKEYBYTES(MLD_CONFIG_API_PARAMETER_SET)
    • CRYPTO_BYTES != MLDSA_BYTES(MLD_CONFIG_API_PARAMETER_SET)
  • Add consistency checking for API and conduct sanity checks on the bakcend in common.h

@willieyz willieyz force-pushed the mld-check-apis branch 2 times, most recently from 2533264 to 57868e7 Compare November 12, 2025 02:05
@willieyz willieyz marked this pull request as ready for review November 12, 2025 02:45
@willieyz willieyz requested a review from a team as a code owner November 12, 2025 02:45
Copy link
Contributor

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @willieyz for porting this.

- This commit port and exercise the `MLD_CHECK_APIS` to mldsa-native,
  referencing from mlkem-native

- add the API consistency between internal sign.h and external
  mldsa_native.h for forllowing:
  - CRYPTO_SECRETKEYBYTES != \
    MLDSA_SECRETKEYBYTES(MLD_CONFIG_API_PARAMETER_SET)
  - CRYPTO_PUBLICKEYBYTES != \
    MLDSA_PUBLICKEYBYTES(MLD_CONFIG_API_PARAMETER_SET)
  - CRYPTO_BYTES != \
    MLDSA_BYTES(MLD_CONFIG_API_PARAMETER_SET)
- This commit add consistency checking for API and conduct sanity checks
  on the bakcend in common.h

Signed-off-by: willieyz <willie.zhao@chelpis.com>
@mkannwischer mkannwischer merged commit 2ee2ec4 into main Nov 12, 2025
266 checks passed
@mkannwischer mkannwischer deleted the mld-check-apis branch November 12, 2025 13:35
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