From 231d9f61185fe53b20ca9fd60d52daadd0584110 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 19 Aug 2021 21:01:54 +0200 Subject: [PATCH] Make the precomputed Ed25519 data const. --- src/ed25519/precomp_data.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ed25519/precomp_data.h b/src/ed25519/precomp_data.h index ce59788..ff23986 100644 --- a/src/ed25519/precomp_data.h +++ b/src/ed25519/precomp_data.h @@ -1,4 +1,4 @@ -static ge_precomp Bi[8] = { +static const ge_precomp Bi[8] = { { { 25967493, -14356035, 29566456, 3660896, -12694345, 4014787, 27544626, -11754271, -6079156, 2047605 }, { -12545711, 934262, -2722910, 3049990, -727428, 9406986, 12720692, 5043384, 19500929, -15469378 }, @@ -43,7 +43,7 @@ static ge_precomp Bi[8] = { /* base[i][j] = (j+1)*256^i*B */ -static ge_precomp base[32][8] = { +static const ge_precomp base[32][8] = { { { { 25967493, -14356035, 29566456, 3660896, -12694345, 4014787, 27544626, -11754271, -6079156, 2047605 }, -- 2.39.5