diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-05-02 11:00:43 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-05-02 11:00:43 +0200 |
| commit | db83baed9936156a8ea2fe72980fbda21542d7ec (patch) | |
| tree | b71fce1efc649c349c7b04bcfcc34640bbbccc14 | |
| parent | ce047dd5b1beaba66b8ea615191c421e1c8c8c9a (diff) | |
| download | lilliput-ae-implem-db83baed9936156a8ea2fe72980fbda21542d7ec.tar.xz | |
Utilisation de "size_t" pour l'indexation d'un tableau
Surtout par souci d'homogénéité.
| -rw-r--r-- | src/add_threshold/cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/add_threshold/cipher.c b/src/add_threshold/cipher.c index f0e1ac4..db1ec04 100644 --- 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); } |
