Commit c586165856 for openssl.org

commit c586165856a3651bca688c38e45f36fb59bed8fb
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date:   Wed Jun 3 09:34:55 2026 +0200

    crypto/ec/curve448/eddsa.c: make dom_s constant static in hash_init_with_dom()

    Otherwise it is allocated on stack and initialised on each call.

    Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>

    Reviewed-by: Bob Beck <beck@openssl.org>
    Reviewed-by: Norbert Pocs <norbertp@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
    MergeDate: Fri Jun 12 13:11:50 2026
    (Merged from https://github.com/openssl/openssl/pull/31362)

diff --git a/crypto/ec/curve448/eddsa.c b/crypto/ec/curve448/eddsa.c
index bed93c86d4..8615b19dfc 100644
--- a/crypto/ec/curve448/eddsa.c
+++ b/crypto/ec/curve448/eddsa.c
@@ -62,7 +62,7 @@ static c448_error_t hash_init_with_dom(OSSL_LIB_CTX *ctx, EVP_MD_CTX *hashctx,
     const char *propq)
 {
     /* ASCII: "SigEd448", in hex for EBCDIC compatibility */
-    const char dom_s[] = "\x53\x69\x67\x45\x64\x34\x34\x38";
+    static const char dom_s[] = "\x53\x69\x67\x45\x64\x34\x34\x38";
     uint8_t dom[2];
     EVP_MD *shake256 = NULL;