]> git.meshlink.io Git - meshlink-tiny/blobdiff - src/ed25519/ge.c
Make the precomputed Ed25519 data const.
[meshlink-tiny] / src / ed25519 / ge.c
index 3c342b1d2126619ecd1eb2e0ec0509c46199b082..87c691bff55d66e591c1fb3c2bdf87a4efee200d 100644 (file)
@@ -346,7 +346,7 @@ static unsigned char negative(signed char b) {
     return (unsigned char) x;
 }
 
-static void cmov(ge_precomp *t, ge_precomp *u, unsigned char b) {
+static void cmov(ge_precomp *t, const ge_precomp *u, unsigned char b) {
     fe_cmov(t->yplusx, u->yplusx, b);
     fe_cmov(t->yminusx, u->yminusx, b);
     fe_cmov(t->xy2d, u->xy2d, b);