Skip to content

feat: add keygen with seed for all mldsa variants and falcon1024 - #3

Merged
mikelodder7 merged 2 commits into
mainfrom
feat/kg-with-seed-mldsa-falcon1024
Dec 4, 2025
Merged

feat: add keygen with seed for all mldsa variants and falcon1024#3
mikelodder7 merged 2 commits into
mainfrom
feat/kg-with-seed-mldsa-falcon1024

Conversation

@manel1874

@manel1874 manel1874 commented Dec 4, 2025

Copy link
Copy Markdown

This exposes the following methods:

For Falcon1024

  • PQCLEAN_FALCON1024_CLEAN_crypto_sign_keypair_with_seed
  • PQCLEAN_FALCON1024_AVX2_crypto_sign_keypair_with_seed
  • PQCLEAN_FALCON1024_AARCH64_crypto_sign_keypair_with_seed

For Falcon1024 padded

  • PQCLEAN_FALCONPADDED1024_CLEAN_crypto_sign_keypair_with_seed
  • PQCLEAN_FALCONPADDED1024_AVX2_crypto_sign_keypair_with_seed
  • PQCLEAN_FALCONPADDED1024_AARCH64_crypto_sign_keypair_with_seed

For ML-DSA-X (for X = (44, 65, 87):

  • pqcrystals_ml_dsa_{X}_avx2_keypair
  • pqcrystals_ml_dsa_{X}_ref_keypair

These two signature variants are now able to generate keypairs from a seed using OQS_SIG_keypair_with_seed or sig->keypair_with_seed .

For signatures where it is not supported a keygen from seed, the above operation yields OQS_STATUS = OQS_ERROR.

Tests

Included nore tests in sig_keypair_with_seed.c for ml-dsa and falcon1024 variants.

Manual run:

mkdir build && cd build
cmake -GNinja ..
ninja
cd tests
./sig_keypair_with_seed

@manel1874
manel1874 requested a review from mikelodder7 December 4, 2025 15:00
@mikelodder7
mikelodder7 merged commit b9341d1 into main Dec 4, 2025
11 checks passed
mikelodder7 pushed a commit that referenced this pull request Dec 4, 2025
* feat: add keygen with seed for all mldsa variants and falcon1024

* fix: formatting
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.

2 participants