Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: MIFARE Classic: allow sector 0 authentication #161

Merged
merged 1 commit into from
May 21, 2024

Conversation

knthm
Copy link
Contributor

@knthm knthm commented May 21, 2024

Due to a logic bug, authenticating sector 0 isn't currently possible.

Adapt a similar, but more robust and descriptive, range check from the readBlock method to remedy this.

fixes: #160

Due to a logic bug, authenticating sector 0 wasn't previously possible.

Adapt a similar, but more robust and descriptive, range check from the
readBlock method to remedy this.

fixes: nfcim#160
@Harry-Chen Harry-Chen merged commit 5ce2f05 into nfcim:master May 21, 2024
@Harry-Chen
Copy link
Contributor

Thanks!

@knthm
Copy link
Contributor Author

knthm commented May 21, 2024

Thanks in return for the quick turnaround! 😄

@knthm knthm deleted the fix-mifare-classic-sector-0-auth branch May 21, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: MIFARE Classic: Cannot authenticate sector 0
2 participants