mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Make style
This commit is contained in:
parent
f76de40982
commit
44e9d13d1a
3 changed files with 263 additions and 262 deletions
|
@ -253,9 +253,11 @@ void MifareDES_Auth1(uint8_t *datain) {
|
||||||
// Default Keys
|
// Default Keys
|
||||||
uint8_t PICC_MASTER_KEY8[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
uint8_t PICC_MASTER_KEY8[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||||
uint8_t PICC_MASTER_KEY16[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
uint8_t PICC_MASTER_KEY16[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00};
|
0x00, 0x00
|
||||||
|
};
|
||||||
uint8_t PICC_MASTER_KEY24[24] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
uint8_t PICC_MASTER_KEY24[24] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
|
};
|
||||||
//uint8_t null_key_data16[16] = {0x00};
|
//uint8_t null_key_data16[16] = {0x00};
|
||||||
//uint8_t new_key_data8[8] = { 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77};
|
//uint8_t new_key_data8[8] = { 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77};
|
||||||
//uint8_t new_key_data16[16] = { 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF};
|
//uint8_t new_key_data16[16] = { 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF};
|
||||||
|
@ -389,8 +391,7 @@ void MifareDES_Auth1(uint8_t *datain) {
|
||||||
|
|
||||||
des_dec(encRndB, rotRndB, key->data);
|
des_dec(encRndB, rotRndB, key->data);
|
||||||
memcpy(both + 8, encRndB, rndlen);
|
memcpy(both + 8, encRndB, rndlen);
|
||||||
}
|
} else if (payload->mode == MFDES_AUTH_ISO) {
|
||||||
else if (payload->mode == MFDES_AUTH_ISO) {
|
|
||||||
if (payload->algo == MFDES_ALGO_3DES) {
|
if (payload->algo == MFDES_ALGO_3DES) {
|
||||||
uint8_t tmp[16] = {0x00};
|
uint8_t tmp[16] = {0x00};
|
||||||
memcpy(tmp, RndA, rndlen);
|
memcpy(tmp, RndA, rndlen);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue