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 | ef17fe7655f22a0d2223e400b606247ba78fa765 (patch) | |
| tree | b71fce1efc649c349c7b04bcfcc34640bbbccc14 /src/add_threshold/cipher.c | |
| parent | 3bb63d96b61e9e17108320efd89088d1f08b495a (diff) | |
| download | lilliput-ae-implem-ef17fe7655f22a0d2223e400b606247ba78fa765.tar.xz | |
Utilisation de "size_t" pour l'indexation d'un tableau
Surtout par souci d'homogénéité.
Diffstat (limited to 'src/add_threshold/cipher.c')
| -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); } |
