mirror of
https://github.com/nfc-tools/mfcuk.git
synced 2026-02-18 02:55:49 +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)
|
static uint32_t bswap_32_pu8(uint8_t *pu8)
|
||||||
{
|
{
|
||||||
uint32_t u32;
|
// TODO: This function need to be tested on both endianness machine types
|
||||||
memcpy(&u32, pu8, sizeof(uint32_t));
|
return pu8[0] << 24 | pu8[1] << 16 | pu8[2] << 8 | pu8[3];
|
||||||
return u32;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern mfcuk_finger_tmpl_entry mfcuk_finger_db[];
|
extern mfcuk_finger_tmpl_entry mfcuk_finger_db[];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user