I have already developed a value file by using tablinx where the setting as
new DESFireEV3File.ValueFileSettings(IDESFireEV3.CommunicationType.Enciphered,
(byte) 0x01,
(byte) 0x02,
(byte) 0x03,
(byte) 0x00,
0,
1000,
0,
false,
false);
The credit and depit API works well
but when I get value the error
INFO: Response received : 917E
Catch Exception >> (Length Error SW2 = 126)
Note that credit , depit and getvalue all works well when I make IDESFireEV3.CommunicationType.plain
and I am using key no 1 for get value authenticate and key no 3 in credit and depit
In Enciphered mode, the tag expects the session to be authenticated with the correct key for the operation. If the session is not authenticated with the correct key (in this case, likely Key 3), the tag cannot encrypt the response properly, leading to a length mismatch and the 917E error. Please try authenticating with Key 3 before calling getValue().