mirror of
https://github.com/apple/swift-crypto
synced 2026-11-24 04:37:48 +00:00
Generalises the definition of ML-DSA algorithms with GYB to allow the addition of other parameter sets in the future ### Checklist - [X] I've run tests to see all new and existing tests pass - [X] I've followed the code style of the rest of the project - [X] I've read the [Contribution Guidelines](CONTRIBUTING.md) - [X] I've updated the documentation if necessary #### If you've made changes to `gyb` files - [X] I've run `.script/generate_boilerplate_files_with_gyb` and included updated generated files in a commit of this pull request ### Motivation: BoringSSL recently [made ML-DSA-87 public](https://boringssl.googlesource.com/boringssl/+/2a514a51baebd5a232fc64f7b082f7a8b28cd29d) in its API, in addition to ML-DSA-65 which has already been [integrated into Swift Crypto](https://github.com/apple/swift-crypto/pull/267). By generating the code with GYB we will be able to add support for ML-DSA-87 very easily in the future when the vendored version of BoringSSL is updated. ### Modifications: Generate the code for `MLDSA65` (and in future also for `MLDSA87`) with GYB. ### Result: Nothing changes in the public API, but adding `MLDSA87` in the future will be instantaneous.