Browse Source

typo and unary negation

kyber
John M. Schanck 4 years ago
committed by Kris Kwiatkowski
parent
commit
5cddb24de4
18 changed files with 18 additions and 18 deletions
  1. +1
    -1
      crypto_kem/hqc-128/avx2/vector.c
  2. +1
    -1
      crypto_kem/hqc-128/clean/vector.c
  3. +1
    -1
      crypto_kem/hqc-192/avx2/vector.c
  4. +1
    -1
      crypto_kem/hqc-192/clean/vector.c
  5. +1
    -1
      crypto_kem/hqc-256/avx2/vector.c
  6. +1
    -1
      crypto_kem/hqc-256/clean/vector.c
  7. +1
    -1
      crypto_kem/hqc-rmrs-128/avx2/reed_solomon.c
  8. +1
    -1
      crypto_kem/hqc-rmrs-128/avx2/vector.c
  9. +1
    -1
      crypto_kem/hqc-rmrs-128/clean/reed_solomon.c
  10. +1
    -1
      crypto_kem/hqc-rmrs-128/clean/vector.c
  11. +1
    -1
      crypto_kem/hqc-rmrs-192/avx2/reed_solomon.c
  12. +1
    -1
      crypto_kem/hqc-rmrs-192/avx2/vector.c
  13. +1
    -1
      crypto_kem/hqc-rmrs-192/clean/reed_solomon.c
  14. +1
    -1
      crypto_kem/hqc-rmrs-192/clean/vector.c
  15. +1
    -1
      crypto_kem/hqc-rmrs-256/avx2/reed_solomon.c
  16. +1
    -1
      crypto_kem/hqc-rmrs-256/avx2/vector.c
  17. +1
    -1
      crypto_kem/hqc-rmrs-256/clean/reed_solomon.c
  18. +1
    -1
      crypto_kem/hqc-rmrs-256/clean/vector.c

+ 1
- 1
crypto_kem/hqc-128/avx2/vector.c View File

@@ -167,7 +167,7 @@ uint8_t PQCLEAN_HQC128_AVX2_vect_compare(const uint8_t *v1, const uint8_t *v2, u
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-128/clean/vector.c View File

@@ -183,7 +183,7 @@ uint8_t PQCLEAN_HQC128_CLEAN_vect_compare(const uint8_t *v1, const uint8_t *v2,
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-192/avx2/vector.c View File

@@ -167,7 +167,7 @@ uint8_t PQCLEAN_HQC192_AVX2_vect_compare(const uint8_t *v1, const uint8_t *v2, u
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-192/clean/vector.c View File

@@ -183,7 +183,7 @@ uint8_t PQCLEAN_HQC192_CLEAN_vect_compare(const uint8_t *v1, const uint8_t *v2,
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-256/avx2/vector.c View File

@@ -167,7 +167,7 @@ uint8_t PQCLEAN_HQC256_AVX2_vect_compare(const uint8_t *v1, const uint8_t *v2, u
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-256/clean/vector.c View File

@@ -183,7 +183,7 @@ uint8_t PQCLEAN_HQC256_CLEAN_vect_compare(const uint8_t *v1, const uint8_t *v2,
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-rmrs-128/avx2/reed_solomon.c View File

@@ -53,7 +53,7 @@ void PQCLEAN_HQCRMRS128_AVX2_reed_solomon_encode(uint8_t *cdw, const uint8_t *ms
prev = 0;
for (k = 0; k < PARAM_N1 - PARAM_K; k++) {
x = cdw[k];
cdw[k] = (uint8_t) prev ^ tmp[k];
cdw[k] = (uint8_t) (prev ^ tmp[k]);
prev = x;
}
}


+ 1
- 1
crypto_kem/hqc-rmrs-128/avx2/vector.c View File

@@ -151,7 +151,7 @@ uint8_t PQCLEAN_HQCRMRS128_AVX2_vect_compare(const uint8_t *v1, const uint8_t *v
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-rmrs-128/clean/reed_solomon.c View File

@@ -53,7 +53,7 @@ void PQCLEAN_HQCRMRS128_CLEAN_reed_solomon_encode(uint8_t *cdw, const uint8_t *m
prev = 0;
for (k = 0; k < PARAM_N1 - PARAM_K; k++) {
x = cdw[k];
cdw[k] = (uint8_t) prev ^ tmp[k];
cdw[k] = (uint8_t) (prev ^ tmp[k]);
prev = x;
}
}


+ 1
- 1
crypto_kem/hqc-rmrs-128/clean/vector.c View File

@@ -183,7 +183,7 @@ uint8_t PQCLEAN_HQCRMRS128_CLEAN_vect_compare(const uint8_t *v1, const uint8_t *
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-rmrs-192/avx2/reed_solomon.c View File

@@ -53,7 +53,7 @@ void PQCLEAN_HQCRMRS192_AVX2_reed_solomon_encode(uint8_t *cdw, const uint8_t *ms
prev = 0;
for (k = 0; k < PARAM_N1 - PARAM_K; k++) {
x = cdw[k];
cdw[k] = (uint8_t) prev ^ tmp[k];
cdw[k] = (uint8_t) (prev ^ tmp[k]);
prev = x;
}
}


+ 1
- 1
crypto_kem/hqc-rmrs-192/avx2/vector.c View File

@@ -151,7 +151,7 @@ uint8_t PQCLEAN_HQCRMRS192_AVX2_vect_compare(const uint8_t *v1, const uint8_t *v
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-rmrs-192/clean/reed_solomon.c View File

@@ -53,7 +53,7 @@ void PQCLEAN_HQCRMRS192_CLEAN_reed_solomon_encode(uint8_t *cdw, const uint8_t *m
prev = 0;
for (k = 0; k < PARAM_N1 - PARAM_K; k++) {
x = cdw[k];
cdw[k] = (uint8_t) prev ^ tmp[k];
cdw[k] = (uint8_t) (prev ^ tmp[k]);
prev = x;
}
}


+ 1
- 1
crypto_kem/hqc-rmrs-192/clean/vector.c View File

@@ -183,7 +183,7 @@ uint8_t PQCLEAN_HQCRMRS192_CLEAN_vect_compare(const uint8_t *v1, const uint8_t *
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-rmrs-256/avx2/reed_solomon.c View File

@@ -53,7 +53,7 @@ void PQCLEAN_HQCRMRS256_AVX2_reed_solomon_encode(uint8_t *cdw, const uint8_t *ms
prev = 0;
for (k = 0; k < PARAM_N1 - PARAM_K; k++) {
x = cdw[k];
cdw[k] = (uint8_t) prev ^ tmp[k];
cdw[k] = (uint8_t) (prev ^ tmp[k]);
prev = x;
}
}


+ 1
- 1
crypto_kem/hqc-rmrs-256/avx2/vector.c View File

@@ -151,7 +151,7 @@ uint8_t PQCLEAN_HQCRMRS256_AVX2_vect_compare(const uint8_t *v1, const uint8_t *v
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



+ 1
- 1
crypto_kem/hqc-rmrs-256/clean/reed_solomon.c View File

@@ -53,7 +53,7 @@ void PQCLEAN_HQCRMRS256_CLEAN_reed_solomon_encode(uint8_t *cdw, const uint8_t *m
prev = 0;
for (k = 0; k < PARAM_N1 - PARAM_K; k++) {
x = cdw[k];
cdw[k] = (uint8_t) prev ^ tmp[k];
cdw[k] = (uint8_t) (prev ^ tmp[k]);
prev = x;
}
}


+ 1
- 1
crypto_kem/hqc-rmrs-256/clean/vector.c View File

@@ -183,7 +183,7 @@ uint8_t PQCLEAN_HQCRMRS256_CLEAN_vect_compare(const uint8_t *v1, const uint8_t *
for (size_t i = 0; i < size; i++) {
r |= v1[i] ^ v2[i];
}
r = (-r) >> 63;
r = (~r + 1) >> 63;
return (uint8_t) r;
}



Loading…
Cancel
Save