]> git.codecow.com Git - Monocypher.git/commitdiff
more readable one liners
authorLoup Vaillant <loup@loup-vaillant.fr>
Fri, 11 Aug 2017 07:46:58 +0000 (09:46 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Fri, 11 Aug 2017 07:46:58 +0000 (09:46 +0200)
src/monocypher.c

index 2efdda3d36ec4875600a7043dd2f0ba2cf3cb8a1..85a66312c77908b0d8442d552ab2a9875851602c 100644 (file)
@@ -956,12 +956,13 @@ void crypto_argon2i(u8       *hash,      u32 hash_size,
 // field element
 typedef i32 fe[10];
 
-static void fe_0   (fe h) {                     FOR(i,0,10) h[i] = 0;          }
-static void fe_1   (fe h) {          h[0] = 1;  FOR(i,1,10) h[i] = 0;          }
-static void fe_neg (fe h,const fe f)           {FOR(i,0,10) h[i] = -f[i];      }
+static void fe_0(fe h) {            FOR(i, 0, 10) h[i] = 0; }
+static void fe_1(fe h) { h[0] = 1;  FOR(i, 1, 10) h[i] = 0; }
+
+static void fe_copy(fe h,const fe f           ){FOR(i,0,10) h[i] =  f[i];      }
+static void fe_neg (fe h,const fe f           ){FOR(i,0,10) h[i] = -f[i];      }
 static void fe_add (fe h,const fe f,const fe g){FOR(i,0,10) h[i] = f[i] + g[i];}
 static void fe_sub (fe h,const fe f,const fe g){FOR(i,0,10) h[i] = f[i] - g[i];}
-static void fe_copy(fe h,const fe f)           {FOR(i,0,10) h[i] = f[i];       }
 
 static void fe_cswap(fe f, fe g, int b)
 {