mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
Make a static global explicitly const
This commit is contained in:
parent
4f19ea25d0
commit
2108bdcdb5
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
@ -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…
Reference in New Issue
Block a user