mirror of
https://github.com/nfc-tools/mfcuk.git
synced 2025-12-23 18:50:06 +00:00
Attempt to fix key recovering
This patch may fix the keys recovering problem explained in Issue 21.
This commit is contained in:
parent
444dd2a765
commit
5acc9f40a0
@ -214,9 +214,8 @@ static inline uint64_t bswap_64(uint64_t x)
|
||||
|
||||
static uint32_t bswap_32_pu8(uint8_t *pu8)
|
||||
{
|
||||
uint32_t u32;
|
||||
memcpy(&u32, pu8, sizeof(uint32_t));
|
||||
return u32;
|
||||
// TODO: This function need to be tested on both endianness machine types
|
||||
return pu8[0] << 24 | pu8[1] << 16 | pu8[2] << 8 | pu8[3];
|
||||
}
|
||||
|
||||
extern mfcuk_finger_tmpl_entry mfcuk_finger_db[];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user