From 74eae01aaa3f6f2169723cc6e80784fca39f0588 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Catoire Date: Sun, 16 Aug 2026 19:46:10 +0200 Subject: [PATCH] sodium: document the 8.4 aarch64 support for AES-256-GCM Before PHP 8.4 the HAVE_AESGCM guard in ext/sodium/libsodium.c covered x86 and x86_64 only. PHP 8.4 extends it to __aarch64__ and _M_ARM64 (php-src #12867, commit 1816403d84). On aarch64 this means sodium_crypto_aead_aes256gcm_is_available() may now return true, and the encrypt, decrypt and keygen functions and the SODIUM_CRYPTO_AEAD_AES256GCM_* constants are now defined at all. The changelog table shared by the encrypt, decrypt and keygen pages is declared once as sodium.changelog.aes256gcm-aarch64 in language-snippets.ent. The previously empty descriptions of the four constants are filled in as well. --- language-snippets.ent | 23 +++++++++++++++++ reference/sodium/constants.xml | 8 ++++++ .../sodium-crypto-aead-aes256gcm-decrypt.xml | 5 ++++ .../sodium-crypto-aead-aes256gcm-encrypt.xml | 5 ++++ ...ium-crypto-aead-aes256gcm-is-available.xml | 25 +++++++++++++++++++ .../sodium-crypto-aead-aes256gcm-keygen.xml | 5 ++++ 6 files changed, 71 insertions(+) diff --git a/language-snippets.ent b/language-snippets.ent index fed94ed48f2e..c6e8392e26e4 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -4496,6 +4496,29 @@ xmlns="http://docbook.org/ns/docbook">This function has been '> + + + + + + &Version; + &Description; + + + + + 8.4.0 + + This function is now also defined on aarch64. + Previously it was only defined on x86 and x86_64. + + + + + +'> +