[GIT-PULLS] [php-src] PR #23420: ext/sodium: Add crypto_kem (X-Wing) and crypto_kem_mlkem768 bindings
[email protected] (ZacharyDuBois)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
Pull Request: https://github.com/php/php-src/pull/23420
Author: ZacharyDuBois
libsodium 1.0.22 introduced a KEM API: X-Wing (hybrid ML-KEM768+X25519, upstream's recommended KEM) and ML-KEM768 (FIPS 203). This exposes both:
- `sodium_crypto_kem_{keypair,seed_keypair,secretkey,publickey,enc,dec}`
- `sodium_crypto_kem_mlkem768_{keypair,seed_keypair,secretkey,publickey,enc,dec}` + `SODIUM_CRYPTO_KEM[_MLKEM768]_*BYTES` constants