mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 18:25:07 +08:00
Merge remote-tracking branch 'upstream/master' into felica_support_request_service
# Conflicts: # client/cmdhffelica.c
This commit is contained in:
commit
94cc2c0473
2 changed files with 4 additions and 5 deletions
|
@ -622,7 +622,7 @@ static int CmdHFFelicaDumpLite(const char *Cmd) {
|
|||
return PM3_ETIMEOUT;
|
||||
}
|
||||
|
||||
PrintAndLogEx(SUCCESS, "Recorded Activity (trace len = %"PRIu64" bytes)", tracelen);
|
||||
PrintAndLogEx(SUCCESS, "Recorded Activity (trace len = %"PRIu32" bytes)", tracelen);
|
||||
|
||||
print_hex_break(trace, tracelen, 32);
|
||||
printSep();
|
||||
|
|
|
@ -26,12 +26,11 @@
|
|||
(x = (x >> 8 & 0xff00ff) | (x & 0xff00ff) << 8, x = x >> 16 | x << 16)
|
||||
|
||||
void crypto1_init(struct Crypto1State *state, uint64_t key) {
|
||||
if (state == NULL)
|
||||
return;
|
||||
state->odd = 0;
|
||||
state->even = 0;
|
||||
|
||||
int i;
|
||||
|
||||
for (i = 47; state && i > 0; i -= 2) {
|
||||
for (int i = 47; i > 0; i -= 2) {
|
||||
state->odd = state->odd << 1 | BIT(key, (i - 1) ^ 7);
|
||||
state->even = state->even << 1 | BIT(key, i ^ 7);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue