aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/math/libnttfft/ntt_fft_params.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2016-07-25 12:17:49 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2016-07-29 12:36:15 +0200
commit7256c68da0b101f42d24f9ce525960b7bf09805f (patch)
treec431b93e3f6c62a828359fd7a44496a2e78a8e83 /src/libstrongswan/math/libnttfft/ntt_fft_params.h
parentd305f251a53520db97c899ba1c1f40e239fb68fa (diff)
downloadstrongswan-7256c68da0b101f42d24f9ce525960b7bf09805f.tar.bz2
strongswan-7256c68da0b101f42d24f9ce525960b7bf09805f.tar.xz
integrity-test: check code and ro segments of libnttfft
Diffstat (limited to 'src/libstrongswan/math/libnttfft/ntt_fft_params.h')
-rw-r--r--src/libstrongswan/math/libnttfft/ntt_fft_params.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/libstrongswan/math/libnttfft/ntt_fft_params.h b/src/libstrongswan/math/libnttfft/ntt_fft_params.h
index 1fefac424..27fabe7c4 100644
--- a/src/libstrongswan/math/libnttfft/ntt_fft_params.h
+++ b/src/libstrongswan/math/libnttfft/ntt_fft_params.h
@@ -48,68 +48,68 @@ struct ntt_fft_params_t {
/**
* Square of Montgomery radix: r^2 mod q
*/
- uint32_t r2;
+ const uint32_t r2;
/**
* Montgomery radix mask: (1<<rlog) - 1
*/
- uint32_t rmask;
+ const uint32_t rmask;
/**
* Size of the FFT with the condition k * n = q-1
*/
- uint16_t n;
+ const uint16_t n;
/**
* Inverse of n mod q used for normalization of the FFT
*/
- uint16_t n_inv;
+ const uint16_t n_inv;
/**
* Number of FFT stages stages = log2(n)
*/
- uint16_t stages;
+ const uint16_t stages;
/**
* FFT twiddle factors (n-th roots of unity) in Montgomery form
*/
- uint16_t *wr;
+ const uint16_t *wr;
/**
* FFT phase shift (2n-th roots of unity) in forward transform
*/
- uint16_t *wf;
+ const uint16_t *wf;
/**
* FFT phase shift (2n-th roots of unity) and scaling in inverse transform
*/
- uint16_t *wi;
+ const uint16_t *wi;
/**
* Subsampling of FFT twiddle factors table
*/
- uint16_t s;
+ const uint16_t s;
/**
* FFT bit reversal
*/
- uint16_t *rev;
+ const uint16_t *rev;
};
/**
* FFT parameters for q = 12289 and n = 1024
*/
-extern ntt_fft_params_t ntt_fft_12289_1024;
+extern const ntt_fft_params_t ntt_fft_12289_1024;
/**
* FFT parameters for q = 12289 and n = 512
*/
-extern ntt_fft_params_t ntt_fft_12289_512;
+extern const ntt_fft_params_t ntt_fft_12289_512;
/**
* FFT parameters for q = 17 and n = 8
*/
-extern ntt_fft_params_t ntt_fft_17_8;
+extern const ntt_fft_params_t ntt_fft_17_8;
#endif /** NTT_FFT_PARAMS_H_ @}*/