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 db83baed9936156a8ea2fe72980fbda21542d7ec
parent ce047dd5b1beaba66b8ea615191c421e1c8c8c9a
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Thu,  2 May 2019 11:00:43 +0200

Utilisation de "size_t" pour l'indexation d'un tableau

Surtout par souci d'homogénéité.

Diffstat:
Msrc/add_threshold/cipher.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/add_threshold/cipher.c b/src/add_threshold/cipher.c @@ -270,7 +270,7 @@ void lilliput_tbc_encrypt( _compute_round_tweakeys(key, tweak, RTK_X, RTK_Y); - for (uint8_t i=0; i<ROUNDS-1; i++) + for (size_t i=0; i<ROUNDS-1; i++) { _one_round_egfn(X, Y, Z, RTK_X[i], RTK_Y[i], PERMUTATION_ENCRYPTION); } @@ -300,7 +300,7 @@ void lilliput_tbc_decrypt( uint8_t RTK_Y[ROUNDS][ROUND_TWEAKEY_BYTES]; _compute_round_tweakeys(key, tweak, RTK_X, RTK_Y); - for (uint8_t i=0; i<ROUNDS-1; i++) + for (size_t i=0; i<ROUNDS-1; i++) { _one_round_egfn(X, Y, Z, RTK_X[ROUNDS-1-i], RTK_Y[ROUNDS-1-i], PERMUTATION_DECRYPTION); }