Forum / MIFARE and NFC Reader IC`s / Mifare Plus S SL3 authentication over pn532 – timeout issue
Tagged: Mifare Plus S SL3 pn532
-
Hi,
I'm trying to authenticate mifare plus S SL3 card with pn532 module. And uart is used for communication between pc and pn532.
After Iso 14443-4 activation is completed. Authentication reset(78h) apdu command has been executed correctly and returned success.
When i send the First Authentication(70h) apdu, only pn532 returns a ack. But there isn't any response message from card.
If i change block number of authentication command with invalid block number, Card returns message specified invalid block number.
What could be possible reasons?
...
==> Reset Authentication
00 00 FF 07 F9 D4 42 0A 00 78 A1 29 9E 00
==> Read
00 00 FF 00 FF 00 00 00 FF 08 F8 D5 43 00 0A 00 90 E7 42 25 00
==> Read
==> First Authentication
00 00 FF 0A F6 D4 42 0B 00 70 03 40 00 D1 E9 72 00
==> Read
00 00 FF 00 FF 00
....
****************************************************************
....
==> Reset Authentication
00 00 FF 07 F9 D4 42 0A 00 78 A1 29 9E 00
==> Read
00 00 FF 00 FF 00 00 00 FF 08 F8 D5 43 00 0A 00 90 E7 42 25 00
==> Read
==> First Authentication (Invalid Block Number)
00 00 FF 0A F6 D4 42 0B 00 70 40 03 00 CD 6C F3 00
==> Read
00 00 FF 00 FF 00 00 00 FF 08 F8 D5 43 00 0B 00 09 73 11 50 00
==> Read
...
Thanks,
Cihan
+ 0 | - 0
Hello!
Are you polling ok? please tell me what do I need for it?
Can any one help?
PN532 1 Can't poll mifare Plus! I success poll mifare classic and nfc phone. But what do I need for polling Mifare Plus ? (card currently in sl3 mode)
+ 0 | - 0
Hello Cihan and Oleg,
I do not have a PN532 available, but I can provide a log of the authentication on a MIFARE Plus S:
phpalI14443p3a_ActivateCard--------ENTRY-------- pUidIn=00 Send to card: 26
Recv from card: 0400
Send to card: 9320
Recv from card: 3D6AEA02BF
Send to card: 93703D6AEA02BF
Recv from card: 20
phpalI14443p3a_ActivateCard--------LEAVE-------- pUidOut=3D6AEA02 pSak=20 pMoreCardsAvailable=00 [STATUS = SUCCESS]
phpalI14443p4a_ActivateCard--------ENTRY-------- bFsdi=08 bCid=00 bDri=00 bDsi=00
Send to card: E080
Recv from card: 0C75778002C1052F2F0035C7
phpalI14443p4a_ActivateCard--------LEAVE-------- pAts=0C75778002C1052F2F0035C7 [STATUS = SUCCESS]
phalMfp_AuthenticateSL3--------ENTRY-------- bFirstAuth=01 wBlockNr=4000 wKeyNumber=0005 wKeyVersion=0000 pDivInput=00 pPcdCap2In=00
phpalI14443p4_Exchange--------ENTRY-------- wOption=8000 pTxBuffer=70004000
phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]
Send to card: 700040000A007000400000
phpalI14443p4_Exchange--------ENTRY-------- wOption=4000 pTxBuffer=00
Send to card: 00
Recv from card: 0A009007BD8CE0C2E4F29DBD94C4DCAD031191
phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=9007BD8CE0C2E4F29DBD94C4DCAD031191 [STATUS = SUCCESS]
Recv from card: 9007BD8CE0C2E4F29DBD94C4DCAD031191
IV = 00000000000000000000000000000000
PICC-to->PCD E(Kx, RNDB): 07BD8CE0C2E4F29DBD94C4DCAD031191
Plain RNDB = A5D4CCC5AAF53988D488496408330205
RNDA = 072E5C14668953BD7133FDE9D5105B52
Encrypted RndA = 64815E0CC58CEC86D124EB329BF2DD80
Encrypted RndB' = 7B9B1DDF7DB48AB588D7E0A3CF0FFFC6
Send to card: 7264815E0CC58CEC86D124EB329BF2DD807B9B1DDF7DB48AB588D7E0A3CF0FFFC6
phpalI14443p4_Exchange--------ENTRY-------- wOption=0000 pTxBuffer=7264815E0CC58CEC86D124EB329BF2DD807B9B1DDF7DB48AB588D7E0A3CF0FFFC6
Send to card: 0B007264815E0CC58CEC86D124EB329BF2DD807B9B1DDF7DB48AB588D7E0A3CF0FFFC6
Recv from card: 0B009044E180DE3F8B80F56FBB31BAAAC17EBBCC5D371CD3021D35F7F02B18B401F3C7
phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=9044E180DE3F8B80F56FBB31BAAAC17EBBCC5D371CD3021D35F7F02B18B401F3C7 [STATUS = SUCCESS]
Recv from card: 9044E180DE3F8B80F56FBB31BAAAC17EBBCC5D371CD3021D35F7F02B18B401F3C7
PICC-to->PCD E(Kx, TI||RndA'||PICCcap2||PCDcap2): 44E180DE3F8B80F56FBB31BAAAC17EBBCC5D371CD3021D35F7F02B18B401F3C7
Plain TI = 8CD89259
Plain RNDA' = 2E5C14668953BD7133FDE9D5105B5207
Plain SessionKeyEnc KENC = E9D5105B526408330205CC7C6A35A511
Encrypted SessionKeyEnc KENC = 3ACCF262C814FE3439DF74964241A387
Plain SessionKeyMac MAC = BD7133FDE988D4884964A2FA90D1CC22
Encrypted SessionKeyMAC KMAC = 59D231C3D253E1157B4D7CF751C1201A
phalMfp_AuthenticateSL3--------LEAVE-------- pPcdCap2Out=000000000000 pPdCap2=000000000000 [STATUS = SUCCESS] AUTHENTICATED
Regards,
The TapLinx team
+ 0 | - 0
Hello, thank for response!
But, what is the setting for pooling, samconfiguration and pn532 registers required begore using phpalI14443p3a_ActivateCard--------ENTRY--------?
I can't poll Mifare plus card, whith sak = 20.(pn532_1 cant detect this card whith command inlistpassive targets)
Whith best regards, Oleg
+ 0 | - 0
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.