Browse Source

Make a static global explicitly const

master
Thom Wiggers 5 years ago
parent
commit
2108bdcdb5
No known key found for this signature in database GPG Key ID: 1BB0A7CE26E363
12 changed files with 12 additions and 12 deletions
  1. +1
    -1
      crypto_kem/frodokem1344aes/clean/noise.c
  2. +1
    -1
      crypto_kem/frodokem1344aes/opt/noise.c
  3. +1
    -1
      crypto_kem/frodokem1344shake/clean/noise.c
  4. +1
    -1
      crypto_kem/frodokem1344shake/opt/noise.c
  5. +1
    -1
      crypto_kem/frodokem640aes/clean/noise.c
  6. +1
    -1
      crypto_kem/frodokem640aes/opt/noise.c
  7. +1
    -1
      crypto_kem/frodokem640shake/clean/noise.c
  8. +1
    -1
      crypto_kem/frodokem640shake/opt/noise.c
  9. +1
    -1
      crypto_kem/frodokem976aes/clean/noise.c
  10. +1
    -1
      crypto_kem/frodokem976aes/opt/noise.c
  11. +1
    -1
      crypto_kem/frodokem976shake/clean/noise.c
  12. +1
    -1
      crypto_kem/frodokem976shake/opt/noise.c

+ 1
- 1
crypto_kem/frodokem1344aes/clean/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM1344AES_CLEAN_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM1344AES_CLEAN_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem1344aes/opt/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM1344AES_OPT_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM1344AES_OPT_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem1344shake/clean/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM1344SHAKE_CLEAN_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM1344SHAKE_CLEAN_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem1344shake/opt/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM1344SHAKE_OPT_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM1344SHAKE_OPT_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem640aes/clean/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM640AES_CLEAN_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM640AES_CLEAN_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem640aes/opt/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM640AES_OPT_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM640AES_OPT_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem640shake/clean/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM640SHAKE_CLEAN_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM640SHAKE_CLEAN_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem640shake/opt/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM640SHAKE_OPT_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM640SHAKE_OPT_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem976aes/clean/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM976AES_CLEAN_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM976AES_CLEAN_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem976aes/opt/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM976AES_OPT_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM976AES_OPT_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem976shake/clean/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM976SHAKE_CLEAN_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM976SHAKE_CLEAN_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


+ 1
- 1
crypto_kem/frodokem976shake/opt/noise.c View File

@@ -10,7 +10,7 @@
#include "common.h" #include "common.h"
#include "params.h" #include "params.h"


static uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;
static const uint16_t CDF_TABLE[CDF_TABLE_LEN] = CDF_TABLE_DATA;


void PQCLEAN_FRODOKEM976SHAKE_OPT_sample_n(uint16_t *s, size_t n) { void PQCLEAN_FRODOKEM976SHAKE_OPT_sample_n(uint16_t *s, size_t n) {
// Fills vector s with n samples from the noise distribution which requires 16 bits to sample. // Fills vector s with n samples from the noise distribution which requires 16 bits to sample.


Loading…
Cancel
Save