summaryrefslogtreecommitdiff
path: root/src/add_threshold
diff options
context:
space:
mode:
Diffstat (limited to 'src/add_threshold')
-rw-r--r--src/add_threshold/cipher.c4
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);
}