summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-12 14:34:03 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-03-12 17:36:12 +0100
commitf1bf4826bb5307a2677d44af6f8079b6cf0b3224 (patch)
tree82406b7d88358494e4f3fc45fb3bd0f9f0e0abf2 /src
parent05bf717f8a8f7edf0cf59fcc14d7a650372eb38c (diff)
downloadlilliput-ae-implem-f1bf4826bb5307a2677d44af6f8079b6cf0b3224.tar.xz
Ajustements mineurs sur l'implémentation à seuil
- retrait de stdio.h (inutile) - "aération" du prototype de _state_init
Diffstat (limited to 'src')
-rw-r--r--src/add_threshold/cipher.c8
1 files 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 <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] = {