From: Eugene Syromiatnikov Date: Wed, 3 Jun 2026 07:34:55 +0000 (+0200) Subject: crypto/ec/curve448/eddsa.c: make dom_s constant static in hash_init_with_dom() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c586165856a3651bca688c38e45f36fb59bed8fb;p=thirdparty%2Fopenssl.git 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 Reviewed-by: Bob Beck Reviewed-by: Norbert Pocs Reviewed-by: Tomas Mraz 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 bed93c86d4b..8615b19dfcc 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;