how to switch from SL1 to SL3 for Mifare plus x card on nxp library(NDA)?

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

how to switch from SL1 to SL3 for Mifare plus x card on nxp library(NDA)?

1,123 Views
huliping
Contributor I

hi,how to switch from SL1 to SL3 for Mifare plus x card on nxp library(NDA)? thank you very much.

i have signed the NDA,it have the mfp components of the nxp,i have enter the SL1,but i don't know how to enter SL3,how can i do it,

below is my code

1.

/*   SL0*/

memset(TemBuf,0x00,16);//key
uiRet = phalMfp_WritePerso(palMfp,1,0x9000,TemBuf);

memset(TemBuf,0x00,16);//key
uiRet = phalMfp_WritePerso(palMfp,1,0x9001,TemBuf);

memset(TemBuf,0x00,16);//key
uiRet = phalMfp_WritePerso(palMfp,1,0x9002,TemBuf);

memset(TemBuf,0x00,16);//key
uiRet = phalMfp_WritePerso(palMfp,1,0x9003,TemBuf);

uiRet = phalMfp_CommitPerso(palMfp, 1);//personal

SL0:above code id ok,it can enter SL1.

2.

/*SL2/3*/

how can i enter SL2 or SL3 ?

should i select phalMfp_AuthenticateSL1? or select phalMfp_AuthenticateSL2? or select phalMfp_AuthenticateSL3?

how can i set the argument?thank you very much.

(1)phalMfp_AuthenticateSL1(palMfp, 1,1,0x9003, 0, 0,16, TemBuf, 0,PcdCap2In,PdCap1,PdCap2);

(2)phalMfp_AuthenticateSL2(palMfp, 1,0,0x9002, 0, 0,16, TemBuf, 0,PcdCap2In,PdCap1,PdCap2,pKmf);

(3)phalMfp_AuthenticateSL3(palMfp,0,0x9003, 0, 0,16, TemBuf, 0,PcdCap2In,PdCap1,PdCap2);

if i set those argument,it will be error,how can i do it?thank you very much.

0 Kudos
2 Replies

988 Views
constantinrazva
NXP Employee
NXP Employee

Hello huliping@kingberry.com.cn‌,

On this community we handle question regarding MATLAB/Simulink or our toolboxes. Unfortunately I can't help you on this topic, but I can suggest that you open a ticket for technical support here (go to 'Go to Ticket').

 

Hope this helps,

Razvan.

0 Kudos

988 Views
huliping
Contributor I

ok,thank you for your help,thank you very much.

0 Kudos