This website works better with JavaScript.
Home
Explore
Help
Sign In
kris
/
pqcrypto
mirror of
https://github.com/henrydcase/pqc.git
Watch
1
Star
1
Fork
0
Code
Issues
1
Releases
2
Wiki
Activity
Browse Source
typo and unary negation
tags/v0.0.1
John M. Schanck
4 years ago
committed by
Kris Kwiatkowski
parent
42473fab3b
commit
5cddb24de4
18 changed files
with
18 additions
and
18 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
crypto_kem/hqc-128/avx2/vector.c
+1
-1
crypto_kem/hqc-128/clean/vector.c
+1
-1
crypto_kem/hqc-192/avx2/vector.c
+1
-1
crypto_kem/hqc-192/clean/vector.c
+1
-1
crypto_kem/hqc-256/avx2/vector.c
+1
-1
crypto_kem/hqc-256/clean/vector.c
+1
-1
crypto_kem/hqc-rmrs-128/avx2/reed_solomon.c
+1
-1
crypto_kem/hqc-rmrs-128/avx2/vector.c
+1
-1
crypto_kem/hqc-rmrs-128/clean/reed_solomon.c
+1
-1
crypto_kem/hqc-rmrs-128/clean/vector.c
+1
-1
crypto_kem/hqc-rmrs-192/avx2/reed_solomon.c
+1
-1
crypto_kem/hqc-rmrs-192/avx2/vector.c
+1
-1
crypto_kem/hqc-rmrs-192/clean/reed_solomon.c
+1
-1
crypto_kem/hqc-rmrs-192/clean/vector.c
+1
-1
crypto_kem/hqc-rmrs-256/avx2/reed_solomon.c
+1
-1
crypto_kem/hqc-rmrs-256/avx2/vector.c
+1
-1
crypto_kem/hqc-rmrs-256/clean/reed_solomon.c
+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;
}
Write
Preview
Loading…
Cancel
Save