diff --git a/libfreefare/mifare_desfire_crypto.c b/libfreefare/mifare_desfire_crypto.c index 59f7890..1bee569 100644 --- a/libfreefare/mifare_desfire_crypto.c +++ b/libfreefare/mifare_desfire_crypto.c @@ -105,7 +105,7 @@ void cmac_generate_subkeys (MifareDESFireKey key) { int kbs = key_block_size (key); - uint8_t R = (kbs == 8) ? 0x1B : 0x87; + const uint8_t R = (kbs == 8) ? 0x1B : 0x87; uint8_t l[kbs]; memset (l, 0, kbs);