Skip to content

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

@crossmax

Description

@crossmax

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions