From 06ff242344395cb34f07b26e23d711449a7c4da3 Mon Sep 17 00:00:00 2001 From: "John M. Schanck" Date: Wed, 2 Sep 2020 17:27:14 -0400 Subject: [PATCH] Revert "NTRU Prime: change prototype for clean/crypto_sort_int32" This reverts commit 8a372ad2e831274d8d74eaf5dff9dfb2502c97f4. --- 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 dad6255b..cdb63739 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, int32_t n) { +void PQCLEAN_NTRULPR653_CLEAN_crypto_sort_int32(int32_t *x, long long 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 6fc4ea5f..debd94c5 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, int32_t n); +void PQCLEAN_NTRULPR653_CLEAN_crypto_sort_int32(int32_t *x, long long n); #endif diff --git a/crypto_kem/ntrulpr761/clean/crypto_sort_int32.c b/crypto_kem/ntrulpr761/clean/crypto_sort_int32.c index 6d0ff99e..f46d6fe5 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, int32_t n) { +void PQCLEAN_NTRULPR761_CLEAN_crypto_sort_int32(int32_t *x, long long 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 bc4de42a..56fd150d 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, int32_t n); +void PQCLEAN_NTRULPR761_CLEAN_crypto_sort_int32(int32_t *x, long long n); #endif diff --git a/crypto_kem/ntrulpr857/clean/crypto_sort_int32.c b/crypto_kem/ntrulpr857/clean/crypto_sort_int32.c index cb01c121..5321e8b8 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, int32_t n) { +void PQCLEAN_NTRULPR857_CLEAN_crypto_sort_int32(int32_t *x, long long 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 bbf6937c..5d5ce6d5 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, int32_t n); +void PQCLEAN_NTRULPR857_CLEAN_crypto_sort_int32(int32_t *x, long long n); #endif diff --git a/crypto_kem/sntrup653/clean/crypto_sort_int32.c b/crypto_kem/sntrup653/clean/crypto_sort_int32.c index d83e60f1..04475629 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, int32_t n) { +void PQCLEAN_SNTRUP653_CLEAN_crypto_sort_int32(int32_t *x, long long 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 9750eb27..1d3d27c3 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, int32_t n); +void PQCLEAN_SNTRUP653_CLEAN_crypto_sort_int32(int32_t *x, long long n); #endif diff --git a/crypto_kem/sntrup761/clean/crypto_sort_int32.c b/crypto_kem/sntrup761/clean/crypto_sort_int32.c index ea9cd026..d6b6f7b8 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, int32_t n) { +void PQCLEAN_SNTRUP761_CLEAN_crypto_sort_int32(int32_t *x, long long 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 2607d119..e603a7cc 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, int32_t n); +void PQCLEAN_SNTRUP761_CLEAN_crypto_sort_int32(int32_t *x, long long n); #endif diff --git a/crypto_kem/sntrup857/clean/crypto_sort_int32.c b/crypto_kem/sntrup857/clean/crypto_sort_int32.c index f36453f0..49ce3678 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, int32_t n) { +void PQCLEAN_SNTRUP857_CLEAN_crypto_sort_int32(int32_t *x, long long 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 3b4d1302..09271259 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, int32_t n); +void PQCLEAN_SNTRUP857_CLEAN_crypto_sort_int32(int32_t *x, long long n); #endif