Make PR more readable

This commit is contained in:
Aaron Tulino
2025-12-11 02:53:54 -07:00
committed by GitHub
parent b602436a6e
commit 8a929015c9
+3 -2
View File
@@ -164,9 +164,10 @@ static int decrypt_cryptogram(uint8_t *key, uint8_t *input, uint8_t *out, int in
static void increment_command_wrapper(uint8_t *input, int input_len) {
// Increment the end of the header by 1
uint32_t value = MemBeToUint4byte(&input[input_len - sizeof(uint32_t)]);
uint8_t* offset = &input[input_len - sizeof(uint32_t)];
uint32_t value = MemBeToUint4byte(offset);
value++;
Uint4byteToMemBe(&input[input_len - sizeof(uint32_t)], value);
Uint4byteToMemBe(offset, value);
}
static void padToBlockSize(const uint8_t *input, int *inputSize, int blockSize, uint8_t *output) {