I am trying to load a FFFFFFFFFFFF
key to the volatile memory of omnikey 5321 reader.
But I get an error SW1 SW2: 69 86
. Can anyone suggest why? (maybe omnikey does not support writing volatile keys?).
Here is the code:
bcla = 0xFF;
bins = 0x82;
bp1 =0x0 // Load key in volatile memory
bp2 = 0x20 // store in the volatile memory
len = 0x6; // Length = 6 bytes
sendBuffer[0] = bcla;
sendBuffer[1] = bins;
sendBuffer[2] = bp1;
sendBuffer[3] = bp2;
sendBuffer[4] = len;
// Now, copy the actual key to the send buffer
for (int k =0 ;k<=5;k++)
sendBuffer[k + 5] = str3[k]; // This will copy FFFFFFFFFFFF key
// then make call to scardtransmit.. also set length of send buffer to 11