Explorar el Código

NTRU Prime: satisfy linter

tags/v0.0.1
John M. Schanck hace 4 años
committed by Kris Kwiatkowski
padre
commit
1a402a1917
Se han modificado 6 ficheros con 18 adiciones y 6 borrados
  1. +3
    -1
      crypto_kem/ntrulpr653/clean/crypto_sort_int32.c
  2. +3
    -1
      crypto_kem/ntrulpr761/clean/crypto_sort_int32.c
  3. +3
    -1
      crypto_kem/ntrulpr857/clean/crypto_sort_int32.c
  4. +3
    -1
      crypto_kem/sntrup653/clean/crypto_sort_int32.c
  5. +3
    -1
      crypto_kem/sntrup761/clean/crypto_sort_int32.c
  6. +3
    -1
      crypto_kem/sntrup857/clean/crypto_sort_int32.c

+ 3
- 1
crypto_kem/ntrulpr653/clean/crypto_sort_int32.c Ver fichero

@@ -38,7 +38,8 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
i = 0;
j = 0;
for (q = top; q > p; q >>= 1) {
if (j != i) for (;;) {
if (j != i) {
for (;;) {
if (j == n - q) {
goto done;
}
@@ -53,6 +54,7 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
break;
}
}
}
while (i + p <= n - q) {
for (j = i; j < i + p; ++j) {
int32 a = x[j + p];


+ 3
- 1
crypto_kem/ntrulpr761/clean/crypto_sort_int32.c Ver fichero

@@ -38,7 +38,8 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
i = 0;
j = 0;
for (q = top; q > p; q >>= 1) {
if (j != i) for (;;) {
if (j != i) {
for (;;) {
if (j == n - q) {
goto done;
}
@@ -53,6 +54,7 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
break;
}
}
}
while (i + p <= n - q) {
for (j = i; j < i + p; ++j) {
int32 a = x[j + p];


+ 3
- 1
crypto_kem/ntrulpr857/clean/crypto_sort_int32.c Ver fichero

@@ -38,7 +38,8 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
i = 0;
j = 0;
for (q = top; q > p; q >>= 1) {
if (j != i) for (;;) {
if (j != i) {
for (;;) {
if (j == n - q) {
goto done;
}
@@ -53,6 +54,7 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
break;
}
}
}
while (i + p <= n - q) {
for (j = i; j < i + p; ++j) {
int32 a = x[j + p];


+ 3
- 1
crypto_kem/sntrup653/clean/crypto_sort_int32.c Ver fichero

@@ -38,7 +38,8 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
i = 0;
j = 0;
for (q = top; q > p; q >>= 1) {
if (j != i) for (;;) {
if (j != i) {
for (;;) {
if (j == n - q) {
goto done;
}
@@ -53,6 +54,7 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
break;
}
}
}
while (i + p <= n - q) {
for (j = i; j < i + p; ++j) {
int32 a = x[j + p];


+ 3
- 1
crypto_kem/sntrup761/clean/crypto_sort_int32.c Ver fichero

@@ -38,7 +38,8 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
i = 0;
j = 0;
for (q = top; q > p; q >>= 1) {
if (j != i) for (;;) {
if (j != i) {
for (;;) {
if (j == n - q) {
goto done;
}
@@ -53,6 +54,7 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
break;
}
}
}
while (i + p <= n - q) {
for (j = i; j < i + p; ++j) {
int32 a = x[j + p];


+ 3
- 1
crypto_kem/sntrup857/clean/crypto_sort_int32.c Ver fichero

@@ -38,7 +38,8 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
i = 0;
j = 0;
for (q = top; q > p; q >>= 1) {
if (j != i) for (;;) {
if (j != i) {
for (;;) {
if (j == n - q) {
goto done;
}
@@ -53,6 +54,7 @@ static void crypto_sort_smallindices(int32 *x, int32 n) {
break;
}
}
}
while (i + p <= n - q) {
for (j = i; j < i + p; ++j) {
int32 a = x[j + p];


Cargando…
Cancelar
Guardar