SE050 getting 0x6D00 response when create an object to store AES key

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SE050 getting 0x6D00 response when create an object to store AES key

44 Views
liexin00
Junior Contributor I

Hi,

I recently try to store the AES-256 key into the SE050, however I got the response code 0x6D00 instead of 0x9000. I use the document of AN12313 SE050 APDU Specification, I couldn't found any solution from the forum too. 

Firstly, I soft reset the secure element before sending the APDU command. I think the problem should be on the APDU command instead of T=1 protocol. Anyone can help to tackle the issue?

Thanks.

typedef struct
{
uint8_t cla;
uint8_t ins;
uint8_t p1;
uint8_t p2;
uint8_t lc;
uint8_t data[256];
uint8_t le;
} ApduCommand;

static ApduCommand write_aeskey = {
.cla = 0x80,
.ins = 0x01,
.p1 = 0x03,
.p2 = 0x00,
.lc = 0x28,
.data = {
0x41, 0x04, 0x00, 0x00, 0x00, 0x05,
0x43, 0x20, 0x66, 0x49, 0x38, 0x55, 0x40, 0x59, 0x64, 0x6F, 0x61, 0x22, 0x52, 0x57, 0x35, 0x48, 0x34, 0x79,
0x32, 0x4C, 0x68, 0x50, 0x6C, 0x37, 0x4B, 0x6B, 0x77, 0x60, 0x79, 0x36, 0x47, 0x35, 0x74, 0x72},
.le = 0x00
};

Tags (1)
0 Kudos
Reply
0 Replies