From 2515f133786ac688ea97eb3157988136735b42c3 Mon Sep 17 00:00:00 2001 From: Thomas Pornin Date: Fri, 20 Sep 2019 09:01:32 -0400 Subject: [PATCH] Updated version number, and added an explicit cast to appease some versions of clang-tidy. --- crypto_sign/falcon-1024/META.yml | 2 +- crypto_sign/falcon-1024/clean/sign.c | 2 +- crypto_sign/falcon-512/META.yml | 2 +- crypto_sign/falcon-512/clean/sign.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto_sign/falcon-1024/META.yml b/crypto_sign/falcon-1024/META.yml index 695cf3c0..26488107 100644 --- a/crypto_sign/falcon-1024/META.yml +++ b/crypto_sign/falcon-1024/META.yml @@ -20,4 +20,4 @@ auxiliary-submitters: - Zhenfei Zhang implementations: - name: clean - version: round two + version: 20190920 diff --git a/crypto_sign/falcon-1024/clean/sign.c b/crypto_sign/falcon-1024/clean/sign.c index d6689eb3..10101a68 100644 --- a/crypto_sign/falcon-1024/clean/sign.c +++ b/crypto_sign/falcon-1024/clean/sign.c @@ -1122,7 +1122,7 @@ PQCLEAN_FALCON1024_CLEAN_sampler(void *ctx, fpr mu, fpr isigma) { * centered on 0. */ z0 = PQCLEAN_FALCON1024_CLEAN_gaussian0_sampler(&spc->p); - b = prng_get_u8(&spc->p) & 1; + b = (int)prng_get_u8(&spc->p) & 1; z = b + ((b << 1) - 1) * z0; /* diff --git a/crypto_sign/falcon-512/META.yml b/crypto_sign/falcon-512/META.yml index e66ba9be..51e8ac2e 100644 --- a/crypto_sign/falcon-512/META.yml +++ b/crypto_sign/falcon-512/META.yml @@ -20,4 +20,4 @@ auxiliary-submitters: - Zhenfei Zhang implementations: - name: clean - version: round two + version: 20190920 diff --git a/crypto_sign/falcon-512/clean/sign.c b/crypto_sign/falcon-512/clean/sign.c index d53fda29..f96ddfe2 100644 --- a/crypto_sign/falcon-512/clean/sign.c +++ b/crypto_sign/falcon-512/clean/sign.c @@ -1122,7 +1122,7 @@ PQCLEAN_FALCON512_CLEAN_sampler(void *ctx, fpr mu, fpr isigma) { * centered on 0. */ z0 = PQCLEAN_FALCON512_CLEAN_gaussian0_sampler(&spc->p); - b = prng_get_u8(&spc->p) & 1; + b = (int)prng_get_u8(&spc->p) & 1; z = b + ((b << 1) - 1) * z0; /*