lilliput-ae-reference-implementation

Implementations of Lilliput-AE submitted to the NIST LWC standardization process
git clone https://git.kevinlegouguec.net/lilliput-ae-reference-implementation
Log | Files | Refs | README

commit c5f787cb8cd6d2841e3d46446c0a571eade891dc
parent e88dab71fe5ba3b2254497ab38e740db52b7b26b
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Tue, 20 Nov 2018 14:58:56 +0100

Refus des avertissements de compilation

Viens de me faire bouffer par un  bug de formattage ; il était signalé
par un warning, mais noyé sous la masse. Stop.

Diffstat:
Mcrypto_aead/lilliputaei128v1/ref/Makefile | 6++++--
Mcrypto_aead/lilliputaei128v1/ref/tweakey.c | 9++++-----
2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/crypto_aead/lilliputaei128v1/ref/Makefile b/crypto_aead/lilliputaei128v1/ref/Makefile @@ -13,12 +13,12 @@ results: # TODO: should add order-only prerequisite to remove mkdir from this target results/%.o: %.c @mkdir -p $(dir $@) - gcc -c -I. $< $(nist_flags) -o $@ + gcc -c -I. $< $(nist_flags) -Werror -o $@ results/test-%: results/test/%.o results/test-tweakey: results/test/tweakey.o results/tweakey.o | results - gcc $^ $(nist_flags) -o $@ + gcc $^ $(nist_flags) -Werror -o $@ test-tweakey: results/test-tweakey mkdir -p results/tweakey @@ -28,3 +28,5 @@ test-tweakey: results/test-tweakey results/test-tweakey.o: tweakey.h results/tweakey.o: tweakey.h + +# TODO: add valgrind diff --git a/crypto_aead/lilliputaei128v1/ref/tweakey.c b/crypto_aead/lilliputaei128v1/ref/tweakey.c @@ -41,17 +41,16 @@ void tweakey_state_init( void tweakey_state_extract( - const tweakey_state *TK, - uint8_t round_tweakey[ROUND_TWEAKEY_BYTES], /* output */ - uint8_t i /* round constant */ + __attribute__((unused)) const tweakey_state *TK, + __attribute__((unused)) uint8_t round_tweakey[ROUND_TWEAKEY_BYTES], /* output */ + __attribute__((unused)) uint8_t i /* round constant */ ) { } -void tweakey_state_update(tweakey_state *TK) +void tweakey_state_update(__attribute__((unused)) tweakey_state *TK) { } -