1 Reply Latest reply: Jun 8, 2012 5:57 AM by Umer RSS

    Security condition not satisfied (6982)

    Umer
      Hi,
      I a have SCP02 and INIT-UPDATE and EXTERNAL-AUTHENTICATION are working fine but I could not send further encrypted APDUs,
      Here is the trace:
      Card Info: PC/SC card in Dell Smart Card Reader Keyboard 0, protocol T=0, state OK
      Select Card Manager Status Word: 9000
      Init-Update: 8050000008bac2c81ffd255a77
      Init-Update Status Word: 9000
      Data Receve InitUpdate command: 00 00 00 00 20 11 00 0A 00 00 FF 02 00 31 DF AA 47 
              16 6E 97 28 BB EC C7 F2 F6 C8 A1
      S_ENC : 4E 0C E9 0F 74 C3 17 E5 C3 47 24 3F DD DF 14 6C
      card Crypto: BA C2 C8 1F FD 25 5A 77 00 31 DF AA 47 16 6E 97 80 
              00 00 00 00 00 00 00
      Authenticated
      Card Crypto1:28BBECC7F2F6C8A1
      Card Crypto2:28BBECC7F2F6C8A1
      S_MAC : 98 2A 47 8C 82 5C 2F D1 F4 09 F6 1F AD B9 BC 92
      Host Crypto: 00 31 DF AA 47 16 6E 97 BA C2 C8 1F FD 25 5A 77 80 
              00 00 00 00 00 00 00
      MAC: F2 95 45 D4 85 DA 51 4B
      ICV for the next Command using above MAC: A2 EF F7 D3 01 06 ED 6F
      External-Authentication APDU: 848203001023268450891688cff29545d485da514b
      Exth-Auth Status Word: 9000
      Data Receve Exth-Auth command: 
      MAC: 81 17 01 34 79 82 14 95
      ICV for the next Command using above MAC: 28 67 26 32 67 7A E7 16
      Data field :0d70726163746963652e7061636b08a000000003000000000000
      Paddded Data Field: 0d70726163746963652e7061636b08a000000003000000000000800000000000
      Encrupted datafield (using S_ENC)12ea3089399ab6b3597baeb407c24b9ce91f7af879828c3e2783f13096184c09
      Encrypted APDU(Using Current SCP02)80e602002812ea3089399ab6b3597baeb407c24b9ce91f7af879828c3e2783f13096184c09811701347982149500
      Plain APDU: 80E602001A0D70726163746963652E7061636B08A00000000300000000000000 | len: 32
      Encrypted: 80E602002812EA3089399AB6B3597BAEB407C24B9CE91F7AF879828C3E2783F13096184C09811701347982149500 | len: 46
      Test APDU status word: 6982
      Data Receve Test APDU command: 
      I could not figure out so far where I am wrong.

      Thanks