summaryrefslogtreecommitdiffstats
path: root/sntrup761.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2024-09-04 07:35:29 +0200
committerDamien Miller <djm@mindrot.org>2024-09-04 07:36:22 +0200
commite66c0c5673a4304a3a9fbf8305c6a19f8653740f (patch)
treece34c3eac7cad1f98644a14b90d144902900a764 /sntrup761.c
parentupstream: regression test for Include variable expansion (diff)
downloadopenssh-e66c0c5673a4304a3a9fbf8305c6a19f8653740f.tar.xz
openssh-e66c0c5673a4304a3a9fbf8305c6a19f8653740f.zip
add basic fuzzers for our import of sntrup761
Diffstat (limited to 'sntrup761.c')
-rw-r--r--sntrup761.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sntrup761.c b/sntrup761.c
index 57368bd80..be888cb9d 100644
--- a/sntrup761.c
+++ b/sntrup761.c
@@ -42,7 +42,7 @@ do { \
static void crypto_sort_int32(void *array,long long n)
{
long long top,p,q,r,i,j;
- int32 *x = array;
+ int32 *x = (int32*)array;
if (n < 2) return;
top = 1;
@@ -104,7 +104,7 @@ static void crypto_sort_int32(void *array,long long n)
static void crypto_sort_uint32(void *array,long long n)
{
- crypto_uint32 *x = array;
+ crypto_uint32 *x = (crypto_uint32 *)array;
long long j;
for (j = 0;j < n;++j) x[j] ^= 0x80000000;
crypto_sort_int32(array,n);