fix some vs warnings

This commit is contained in:
Matthias J. Kannwischer 2019-06-18 11:41:54 +02:00
bovenliggende 31f9ee52ce
commit ef0ad8e752
4 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen

Bestand weergeven

@ -55,7 +55,7 @@ void PQCLEAN_SABER_CLEAN_cbd(uint16_t *r, const unsigned char *buf) {
int i, j;
for (i = 0; i < SABER_N / 4; i++) {
t = load_littleendian(buf + 4 * i, 4);
t = (uint32_t) load_littleendian(buf + 4 * i, 4);
d = 0;
for (j = 0; j < 4; j++) {
d += (t >> j) & 0x11111111;

Bestand weergeven

@ -47,7 +47,8 @@ int PQCLEAN_SABER_CLEAN_crypto_kem_enc(unsigned char *ct, unsigned char *ss, con
int PQCLEAN_SABER_CLEAN_crypto_kem_dec(unsigned char *ss, const unsigned char *ct, const unsigned char *sk) {
int i, fail;
int i;
unsigned char fail;
unsigned char cmp[SABER_BYTES_CCA_DEC];
unsigned char buf[64];
unsigned char kr[64]; // Will contain key, coins

Bestand weergeven

@ -5,7 +5,7 @@ of "CRYSTALS Kyber: a CCA-secure module-lattice-based KEM"
by : Joppe Bos, Leo Ducas, Eike Kiltz, Tancrede Lepoint,
Vadim Lyubashevsky, John M. Schanck, Peter Schwabe & Damien stehle
----------------------------------------------------------------------*/
#include "api.h"
#include "SABER_params.h"
#include "cbd.h"
#include "fips202.h"
#include "poly.h"

Bestand weergeven

@ -1,7 +1,6 @@
#include "poly_mul.h"
#include "SABER_params.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SCHB_N 16