From f1bf4826bb5307a2677d44af6f8079b6cf0b3224 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 12 Mar 2019 14:34:03 +0100 Subject: Ajustements mineurs sur l'implémentation à seuil MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - retrait de stdio.h (inutile) - "aération" du prototype de _state_init --- src/add_threshold/cipher.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/add_threshold/cipher.c b/src/add_threshold/cipher.c index ad8b4d3..87267fc 100644 --- a/src/add_threshold/cipher.c +++ b/src/add_threshold/cipher.c @@ -22,7 +22,6 @@ where the input block is split into three shares. #include #include -#include #include "cipher.h" #include "constants.h" @@ -84,7 +83,12 @@ static const uint8_t P[16] = { 0x0, 0x2, 0x8, 0xa, 0x4, 0X6, 0xc, 0xe, 0x1, 0x3, 0x9, 0xb, 0x5, 0x7, 0xd, 0xf }; -static void _state_init(uint8_t X[BLOCK_BYTES], uint8_t Y[BLOCK_BYTES], uint8_t Z[BLOCK_BYTES], const uint8_t message[BLOCK_BYTES]) +static void _state_init( + uint8_t X[BLOCK_BYTES], + uint8_t Y[BLOCK_BYTES], + uint8_t Z[BLOCK_BYTES], + const uint8_t message[BLOCK_BYTES] +) { // To be replaced by real random numbers!!! uint8_t SHARES_0[BLOCK_BYTES] = { -- cgit v1.2.3