Update on variables and comments

Added missing definition of picopass block size in util.c
Changed some variables to full lowercase
Added comment explanation on correlation between macs and decimal values
This commit is contained in:
Antiklesys 2024-07-19 18:34:36 +08:00
commit 27cbdd3031
2 changed files with 12 additions and 5 deletions

View file

@ -410,6 +410,8 @@ uint8_t binaryToHex(char *binaryStr) {
return (uint8_t)strtoul(binaryStr, NULL, 2);
}
#define PICOPASS_BLOCK_SIZE 8
// Function to convert an unsigned int to an array of hex values
void convertToHexArray(uint8_t num, uint8_t *partialkey) {
char binaryStr[25]; // 24 bits for binary representation + 1 for null terminator