Hi
@Kan_Li ,
Thank you for your response,
I reviewed documents AN12543 and UM11225, and used them to create an array for storing values.
for generate & write AES 128 key below T=1 & APDU parameter is right or not?
please help me to create the AES 128 key.
uint8_t AES128[18] = {
0x5A, // NAD
?, // PCB
?, // LEN
0x80,//CLA
0x01,//INS
0x03, // P1
0x00, // P2
?,// TLV[TAG_POLICY]?
?,//TLV[TAG_POLICY_CHECK]?
?, // TLV[TAG_MAX_ATTEMPTS]?
?,//TLV[TAG_1]?
?,//TLV[TAG_2]?
?,//TLV[TAG_3]?
?,//TLV[TAG_4]?
?,//TLV[TAG_5]?
?,//TLV[TAG_11]?
?,// CRC1?
?// CRC2 ?};
(1)Which PCB Value I Want to Take for create and write AES 128?
(2)How to Calculate the LEN?
(3)which value i want to take for TLV[TAG_POLICY],TLV[TAG_POLICY_CHECK],
TLV[TAG_MAX_ATTEMPTS],TLV[TAG_1],TLV[TAG_2],TLV[TAG_3],TLV[TAG_4],TLV[TAG_5],TLV[TAG_11]?
(4)How to Calculate the CRC1 & CRC2?