From fee8635c9ffaa79f152fafc5a00c854972ed3573 Mon Sep 17 00:00:00 2001 From: "John M. Schanck" Date: Wed, 2 Sep 2020 16:41:51 -0400 Subject: [PATCH] NTRU Prime: change prototype for clean/crypto_sort_int32 --- crypto_kem/ntrulpr653/clean/crypto_sort_int32.c | 2 +- crypto_kem/ntrulpr653/clean/crypto_sort_int32.h | 2 +- crypto_kem/ntrulpr761/clean/crypto_sort_int32.c | 2 +- crypto_kem/ntrulpr761/clean/crypto_sort_int32.h | 2 +- crypto_kem/ntrulpr857/clean/crypto_sort_int32.c | 2 +- crypto_kem/ntrulpr857/clean/crypto_sort_int32.h | 2 +- crypto_kem/sntrup653/clean/crypto_sort_int32.c | 2 +- crypto_kem/sntrup653/clean/crypto_sort_int32.h | 2 +- crypto_kem/sntrup761/clean/crypto_sort_int32.c | 2 +- crypto_kem/sntrup761/clean/crypto_sort_int32.h | 2 +- crypto_kem/sntrup857/clean/crypto_sort_int32.c | 2 +- crypto_kem/sntrup857/clean/crypto_sort_int32.h | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/crypto_kem/ntrulpr653/clean/crypto_sort_int32.c b/crypto_kem/ntrulpr653/clean/crypto_sort_int32.c index cdb63739..dad6255b 100644 --- a/crypto_kem/ntrulpr653/clean/crypto_sort_int32.c +++ b/crypto_kem/ntrulpr653/clean/crypto_sort_int32.c @@ -15,7 +15,7 @@ } while(0) /* assume 2 <= n <= 0x40000000 */ -void PQCLEAN_NTRULPR653_CLEAN_crypto_sort_int32(int32_t *x, long long n) { +void PQCLEAN_NTRULPR653_CLEAN_crypto_sort_int32(int32_t *x, int32_t n) { int32 top, p, q, r, i, j; top = 1; diff --git a/crypto_kem/ntrulpr653/clean/crypto_sort_int32.h b/crypto_kem/ntrulpr653/clean/crypto_sort_int32.h index debd94c5..6fc4ea5f 100644 --- a/crypto_kem/ntrulpr653/clean/crypto_sort_int32.h +++ b/crypto_kem/ntrulpr653/clean/crypto_sort_int32.h @@ -4,5 +4,5 @@ #include #define PQCLEAN_NTRULPR653_CLEAN_crypto_sort_int32_BYTES 4 -void PQCLEAN_NTRULPR653_CLEAN_crypto_sort_int32(int32_t *x, long long n); +void PQCLEAN_NTRULPR653_CLEAN_crypto_sort_int32(int32_t *x, int32_t n); #endif diff --git a/crypto_kem/ntrulpr761/clean/crypto_sort_int32.c b/crypto_kem/ntrulpr761/clean/crypto_sort_int32.c index f46d6fe5..6d0ff99e 100644 --- a/crypto_kem/ntrulpr761/clean/crypto_sort_int32.c +++ b/crypto_kem/ntrulpr761/clean/crypto_sort_int32.c @@ -15,7 +15,7 @@ } while(0) /* assume 2 <= n <= 0x40000000 */ -void PQCLEAN_NTRULPR761_CLEAN_crypto_sort_int32(int32_t *x, long long n) { +void PQCLEAN_NTRULPR761_CLEAN_crypto_sort_int32(int32_t *x, int32_t n) { int32 top, p, q, r, i, j; top = 1; diff --git a/crypto_kem/ntrulpr761/clean/crypto_sort_int32.h b/crypto_kem/ntrulpr761/clean/crypto_sort_int32.h index 56fd150d..bc4de42a 100644 --- a/crypto_kem/ntrulpr761/clean/crypto_sort_int32.h +++ b/crypto_kem/ntrulpr761/clean/crypto_sort_int32.h @@ -4,5 +4,5 @@ #include #define PQCLEAN_NTRULPR761_CLEAN_crypto_sort_int32_BYTES 4 -void PQCLEAN_NTRULPR761_CLEAN_crypto_sort_int32(int32_t *x, long long n); +void PQCLEAN_NTRULPR761_CLEAN_crypto_sort_int32(int32_t *x, int32_t n); #endif diff --git a/crypto_kem/ntrulpr857/clean/crypto_sort_int32.c b/crypto_kem/ntrulpr857/clean/crypto_sort_int32.c index 5321e8b8..cb01c121 100644 --- a/crypto_kem/ntrulpr857/clean/crypto_sort_int32.c +++ b/crypto_kem/ntrulpr857/clean/crypto_sort_int32.c @@ -15,7 +15,7 @@ } while(0) /* assume 2 <= n <= 0x40000000 */ -void PQCLEAN_NTRULPR857_CLEAN_crypto_sort_int32(int32_t *x, long long n) { +void PQCLEAN_NTRULPR857_CLEAN_crypto_sort_int32(int32_t *x, int32_t n) { int32 top, p, q, r, i, j; top = 1; diff --git a/crypto_kem/ntrulpr857/clean/crypto_sort_int32.h b/crypto_kem/ntrulpr857/clean/crypto_sort_int32.h index 5d5ce6d5..bbf6937c 100644 --- a/crypto_kem/ntrulpr857/clean/crypto_sort_int32.h +++ b/crypto_kem/ntrulpr857/clean/crypto_sort_int32.h @@ -4,5 +4,5 @@ #include #define PQCLEAN_NTRULPR857_CLEAN_crypto_sort_int32_BYTES 4 -void PQCLEAN_NTRULPR857_CLEAN_crypto_sort_int32(int32_t *x, long long n); +void PQCLEAN_NTRULPR857_CLEAN_crypto_sort_int32(int32_t *x, int32_t n); #endif diff --git a/crypto_kem/sntrup653/clean/crypto_sort_int32.c b/crypto_kem/sntrup653/clean/crypto_sort_int32.c index 04475629..d83e60f1 100644 --- a/crypto_kem/sntrup653/clean/crypto_sort_int32.c +++ b/crypto_kem/sntrup653/clean/crypto_sort_int32.c @@ -15,7 +15,7 @@ } while(0) /* assume 2 <= n <= 0x40000000 */ -void PQCLEAN_SNTRUP653_CLEAN_crypto_sort_int32(int32_t *x, long long n) { +void PQCLEAN_SNTRUP653_CLEAN_crypto_sort_int32(int32_t *x, int32_t n) { int32 top, p, q, r, i, j; top = 1; diff --git a/crypto_kem/sntrup653/clean/crypto_sort_int32.h b/crypto_kem/sntrup653/clean/crypto_sort_int32.h index 1d3d27c3..9750eb27 100644 --- a/crypto_kem/sntrup653/clean/crypto_sort_int32.h +++ b/crypto_kem/sntrup653/clean/crypto_sort_int32.h @@ -4,5 +4,5 @@ #include #define PQCLEAN_SNTRUP653_CLEAN_crypto_sort_int32_BYTES 4 -void PQCLEAN_SNTRUP653_CLEAN_crypto_sort_int32(int32_t *x, long long n); +void PQCLEAN_SNTRUP653_CLEAN_crypto_sort_int32(int32_t *x, int32_t n); #endif diff --git a/crypto_kem/sntrup761/clean/crypto_sort_int32.c b/crypto_kem/sntrup761/clean/crypto_sort_int32.c index d6b6f7b8..ea9cd026 100644 --- a/crypto_kem/sntrup761/clean/crypto_sort_int32.c +++ b/crypto_kem/sntrup761/clean/crypto_sort_int32.c @@ -15,7 +15,7 @@ } while(0) /* assume 2 <= n <= 0x40000000 */ -void PQCLEAN_SNTRUP761_CLEAN_crypto_sort_int32(int32_t *x, long long n) { +void PQCLEAN_SNTRUP761_CLEAN_crypto_sort_int32(int32_t *x, int32_t n) { int32 top, p, q, r, i, j; top = 1; diff --git a/crypto_kem/sntrup761/clean/crypto_sort_int32.h b/crypto_kem/sntrup761/clean/crypto_sort_int32.h index e603a7cc..2607d119 100644 --- a/crypto_kem/sntrup761/clean/crypto_sort_int32.h +++ b/crypto_kem/sntrup761/clean/crypto_sort_int32.h @@ -4,5 +4,5 @@ #include #define PQCLEAN_SNTRUP761_CLEAN_crypto_sort_int32_BYTES 4 -void PQCLEAN_SNTRUP761_CLEAN_crypto_sort_int32(int32_t *x, long long n); +void PQCLEAN_SNTRUP761_CLEAN_crypto_sort_int32(int32_t *x, int32_t n); #endif diff --git a/crypto_kem/sntrup857/clean/crypto_sort_int32.c b/crypto_kem/sntrup857/clean/crypto_sort_int32.c index 49ce3678..f36453f0 100644 --- a/crypto_kem/sntrup857/clean/crypto_sort_int32.c +++ b/crypto_kem/sntrup857/clean/crypto_sort_int32.c @@ -15,7 +15,7 @@ } while(0) /* assume 2 <= n <= 0x40000000 */ -void PQCLEAN_SNTRUP857_CLEAN_crypto_sort_int32(int32_t *x, long long n) { +void PQCLEAN_SNTRUP857_CLEAN_crypto_sort_int32(int32_t *x, int32_t n) { int32 top, p, q, r, i, j; top = 1; diff --git a/crypto_kem/sntrup857/clean/crypto_sort_int32.h b/crypto_kem/sntrup857/clean/crypto_sort_int32.h index 09271259..3b4d1302 100644 --- a/crypto_kem/sntrup857/clean/crypto_sort_int32.h +++ b/crypto_kem/sntrup857/clean/crypto_sort_int32.h @@ -4,5 +4,5 @@ #include #define PQCLEAN_SNTRUP857_CLEAN_crypto_sort_int32_BYTES 4 -void PQCLEAN_SNTRUP857_CLEAN_crypto_sort_int32(int32_t *x, long long n); +void PQCLEAN_SNTRUP857_CLEAN_crypto_sort_int32(int32_t *x, int32_t n); #endif