From a3fcc8a19fd39e13e41f96abb78a9f6c0bb4c5e5 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 12 Mar 2019 11:22:45 +0100 Subject: Retrait des suffixes _TI Dans le but de rendre diff -ru ref add_threshold plus digeste. --- src/add_threshold/cipher.c | 34 +++++++++++++++++----------------- src/add_threshold/tweakey.c | 6 +++--- src/add_threshold/tweakey.h | 6 +++--- 3 files changed, 23 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/add_threshold/cipher.c b/src/add_threshold/cipher.c index d78270d..1535025 100644 --- a/src/add_threshold/cipher.c +++ b/src/add_threshold/cipher.c @@ -84,7 +84,7 @@ 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_TI(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] = { @@ -103,7 +103,7 @@ static void _state_init_TI(uint8_t X[BLOCK_BYTES], uint8_t Y[BLOCK_BYTES], uint8 } -static void _compute_round_tweakeys_TI( +static void _compute_round_tweakeys( const uint8_t key[KEY_BYTES], const uint8_t tweak[TWEAK_BYTES], uint8_t RTK_X[ROUNDS][ROUND_TWEAKEY_BYTES], @@ -112,18 +112,18 @@ static void _compute_round_tweakeys_TI( { uint8_t TK_X[TWEAKEY_BYTES]; uint8_t TK_Y[TWEAKEY_BYTES]; - tweakey_state_init_TI(TK_X, TK_Y, key, tweak); - tweakey_state_extract_TI(TK_X, TK_Y, 0, RTK_X[0], RTK_Y[0]); + tweakey_state_init(TK_X, TK_Y, key, tweak); + tweakey_state_extract(TK_X, TK_Y, 0, RTK_X[0], RTK_Y[0]); for (uint8_t i=1; i