From: Loup Vaillant Date: Tue, 18 Jul 2017 10:04:51 +0000 (+0200) Subject: declared a constant 'static const' X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=9a44ff1d4d745e13996eb8749d74490ccba9a2d6;p=Monocypher.git declared a constant 'static const' --- diff --git a/src/monocypher.c b/src/monocypher.c index e870896..21b56df 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -1204,8 +1204,8 @@ sv ge_add(ge *s, const ge *p, const ge *q) sv ge_scalarmult(ge *p, const ge *q, const u8 scalar[32]) { // sqrt(-486664) - fe K = { 54885894, 25242303, 55597453, 9067496, 51808079, - 33312638, 25456129, 14121551, 54921728, 3972023 }; + static const fe K = { 54885894, 25242303, 55597453, 9067496, 51808079, + 33312638, 25456129, 14121551, 54921728, 3972023 }; // convert q to montgomery format fe x1, y1, z1, x2, z2, x3, z3, t1, t2, t3, t4;