From 1161f67fa0916faf4d682c2fd5280c5978879210 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 29 May 2023 17:32:16 +0200 Subject: [PATCH] [Crypto] Fixed type comparison warning --- src/utils/Cryptography.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Cryptography.cpp b/src/utils/Cryptography.cpp index 1339c3bb..7be62b6c 100644 --- a/src/utils/Cryptography.cpp +++ b/src/utils/Cryptography.cpp @@ -73,7 +73,7 @@ void RadioLibAES128::generateCMAC(uint8_t* in, size_t len, uint8_t* cmac) { }; uint8_t Y[RADIOLIB_AES128_BLOCK_SIZE]; - for(uint8_t i = 0; i < num_blocks - 1; i++) { + for(size_t i = 0; i < num_blocks - 1; i++) { this->blockXor(Y, &buff[i*RADIOLIB_AES128_BLOCK_SIZE], X); this->encryptECB(Y, RADIOLIB_AES128_BLOCK_SIZE, X); }