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

I can't write 6 bytes to a file on a Desfire card #148

Open
crossmax opened this issue Aug 13, 2024 · 0 comments
Open

I can't write 6 bytes to a file on a Desfire card #148

crossmax opened this issue Aug 13, 2024 · 0 comments

Comments

@crossmax
Copy link

Hello.
I can't figure out why I can't write 6 bytes to a file on a Desfire card.

The following are the values when i call to write_data function.

overhead_size: 8. __cmd_n: 14. length: 6. __d_size: 55.
frame_bytes: 14. bytes_send: 0. bytes_left: 55. 
*** write_data ***
===> 0000   90 3d 00 00 0d 06 00 00 00 06 00 00 38 6a e7 38 
===> 0010   58 a8 00 
<=== 0000   91 af 

When I use another PCSC reader that it use libpcsclite library i get this for the same desfire file

===>     90 3D 00 00 0F 06 00 00 00 06 00 00 8E 66 E6 B0 DA 3C C6 FF 00 
<===     91 00

What is wrong if I sending to write function a value of 6 into length parameter?

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

No branches or pull requests

1 participant