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 f1bf4826bb5307a2677d44af6f8079b6cf0b3224
parent 05bf717f8a8f7edf0cf59fcc14d7a650372eb38c
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Tue, 12 Mar 2019 14:34:03 +0100

Ajustements mineurs sur l'implémentation à seuil

- retrait de stdio.h (inutile)
- "aération" du prototype de _state_init

Diffstat:
Msrc/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 @@ -22,7 +22,6 @@ where the input block is split into three shares. #include <stdint.h> #include <string.h> -#include <stdio.h> #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] = {