This website works better with JavaScript.
Home
Explore
Help
Sign In
kris
/
pqc
Watch
1
Star
1
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix MSVS warning
kyber
Matthias J. Kannwischer
4 years ago
committed by
Kris Kwiatkowski
parent
e93a6bef1f
commit
999b76cb90
4 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
crypto_kem/newhope1024cca/clean/verify.c
+1
-1
crypto_kem/newhope1024cpa/clean/verify.c
+1
-1
crypto_kem/newhope512cca/clean/verify.c
+1
-1
crypto_kem/newhope512cpa/clean/verify.c
+ 1
- 1
crypto_kem/newhope1024cca/clean/verify.c
View File
@@ -22,7 +22,7 @@ int PQCLEAN_NEWHOPE1024CCA_CLEAN_verify(const unsigned char *a, const unsigned c
r |= a[i] ^ b[i];
}
r = (-r) >> 63;
r = (
uint64_t)(
-
(int64_t)
r) >> 63;
return (int)r;
}
+ 1
- 1
crypto_kem/newhope1024cpa/clean/verify.c
View File
@@ -22,7 +22,7 @@ int PQCLEAN_NEWHOPE1024CPA_CLEAN_verify(const unsigned char *a, const unsigned c
r |= a[i] ^ b[i];
}
r = (-r) >> 63;
r = (
uint64_t)(
-
(int64_t)
r) >> 63;
return (int)r;
}
+ 1
- 1
crypto_kem/newhope512cca/clean/verify.c
View File
@@ -22,7 +22,7 @@ int PQCLEAN_NEWHOPE512CCA_CLEAN_verify(const unsigned char *a, const unsigned ch
r |= a[i] ^ b[i];
}
r = (-r) >> 63;
r = (
uint64_t)(
-
(int64_t)
r) >> 63;
return (int)r;
}
+ 1
- 1
crypto_kem/newhope512cpa/clean/verify.c
View File
@@ -22,7 +22,7 @@ int PQCLEAN_NEWHOPE512CPA_CLEAN_verify(const unsigned char *a, const unsigned ch
r |= a[i] ^ b[i];
}
r = (-r) >> 63;
r = (
uint64_t)(
-
(int64_t)
r) >> 63;
return (int)r;
}
Write
Preview
Loading…
Cancel
Save