Help: Analyse PUT KEY apdu?

Hi all,
I have an PUT KEY apdu like this:
1) 80 D8 00 81 43 03 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47
or
2) 80 D8 01 00 16 CD E5 F1 B9 49 F1 1F A7 6B BF 0E 91 32 23 C2 E6 00
And in GP 2.1.1 specification, coding of PUT KEY apdu like this:
CLA   '80' or '84'
INS   'D8'                  PUT KEY
P1    'xx'                   Reference control parameter P1
P2    'xx'                   Reference control parameter P2
Lc    'xx'                   Length of data field+*
_Data 'xxxx..'              Key data (and MAC if present)_
Le    '00'
And data field structure like this:
_1byte Key type_
_1byte Length of key or key component_
Variable: 1-n            Key or key component data value
_1byte Length of key check value_
Variable: 0-n            Key check value (if present)
I can't analyse above apdu(s) follow that format.
Please explain for me!
Thanks,
HoaND
Edited by: hoaibaotre on Oct 19, 2011 9:00 AM
Edited by: hoaibaotre on Oct 19, 2011 9:13 AM

Hi hoaibaotre,
It's obvious that the specification of Data Field lies in your post
1) 80 D8 00 81 43 03 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47 80 10 50 D2 82 EF C4 24 0A EB BD 85 AD E1 F7 71 ED A2 03 8B AF 47
or
2) 80 D8 01 00 16 CD E5 F1 B9 49 F1 1F A7 6B BF 0E 91 32 23 C2 E6 00
This is the format
1-1byte Key type
2-1byte Length of key or key component
3-Variable: 1-n Key or key component data value
4-1byte Length of key check value
5-Variable: 0-n Key check value (if present)
Look into your first PUT KEY APDU command
1- 0x80
2- 0x10
3- 0x50 0xD2 0x82 0xEF 0xC4 0x24 0x0A 0xEB 0xBD 0x85 0xAD 0xE1 0xF7 0x71 0xED 0xA2, in this case n = 16 (0x10)
4- 0x03
5- 0x8B 0xAF 0x47, in this case n = 3. n = 0 if MAC is not present (so the 4th equals to 0x00)
The 2nd key and 3rd key are explained in the same way.
For the second PUT KEY APDU command, it seems to me that it's a command to put a single key of 16 bytes
Hope that this would shed some light on the PUT KEY command.
Best regards,
JDL
P.S. it seems to me that you are Vietnamese, working for Viettel? a mobile operator in Vietnam and are you working for the smartcard center (Viettel Global, situated in the Duy Tan str. in Hanoi, behind the TienPhong Bank building?).

Similar Messages

  • PUT KEY APDU Problem

    I am trying to send PUT KEY apdu on jcop shell but facing problem. I have coded put key apdu as
    => 80 D8 00 81 38 19 80 10 09 09 09 09 09 09 09 09 ....8...........
    09 09 09 09 09 09 09 09 00 80 10 09 09 09 09 09 ................
    09 09 09 09 09 09 09 09 09 09 09 00 80 10 09 09 ................
    09 09 09 09 09 09 09 09 09 09 09 09 09 09 00 ...............
    (15 msec)
    <= 6A 80
    Wrong Data
    My keys are 09 09 09 09 09 09 09 09 09 09 09 09
    As per GP in length of key check value I have put byte 00.
    New veresion number is 19 (25)., key type is 80.
    What is wrong in this?
    I am able to change it in JCOP shell bye put key command as below.
    cm> set-key 3/1/DES-ECB/707172737475767778797A7B7C7D7E7F
    cm> set-key 25/1/DES-ECB/707172737475767778797A7B7C7D7E7F
    cm> set-key 25/2/DES-ECB/606162636465666768696A6B6C6D6E6F
    cm> set-key 25/3/DES-ECB/505152535455565758595A5B5C5D5E5F
    cm> put-keyset 25
    => 80 D8 00 81 43 19 80 10 40 0B F8 D2 37 5D 2C 2F [email protected]],/
    A9 CA 90 07 CD 43 7F 09 03 E9 33 47 80 10 10 C4 .....C....3G....
    29 F8 AA 0A 8E B6 B1 AF 43 7D 8B 0F 2D EC 03 9D ).......C}..-...
    CB 14 80 10 13 F5 67 38 72 99 BA 1F A1 79 EA AF ......g8r....y..
    18 C8 CD E4 03 A4 B7 D6 00 .........
    (15 msec)
    <= 19 E9 33 47 9D CB 14 A4 B7 D6 90 00 ..3G........
    Status: No Error

    do you know how to calculate the key check value? check the gp spec.

  • PUT KEY command with returned SW 6982

    There would be some other threads dealing with PUT KEY command however, my put key command failed with SW6982.
    Firstly, I have done it successfully in Java and now I migrate this solution to C#.Net, I have an PCSC class which helps me communicate with the SCreader. I refered to this thread
    [PUT KEY APDU|https://forums.oracle.com/forums/thread.jspa?threadID=1551395]
    I implement exactly the same as I have done in Java (based on source code provided in the thread mentioned above) but failed. Here's a log file for the communication
    Card Manager Selection --> Success!
    INITIALIZE UPDATE Command sent --> Success
    Data from Card: 00 00 00 93 02 90 97 95 20 93 01 02 00 0A FB 59 58 D6 62 71 BE 71 F2 E6 1C 37 D8 7D
    Diversification data: 00 00 00 93 02 90 97 95 20 93
    Static key set Calculation --> Success
    S-ENC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
    S-MAC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
    S-DEK: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
    Session key set Calculation --> Success
    Session ENC: 33 9F 1D 7F 5D 58 41 EB 03 4F 5C E2 34 55 78 94
    Session C-MAC: C6 71 3F 31 B8 DC 1F 89 05 DF EC B4 06 5C B8 1E
    Session R-MAC: 3C AE E5 A2 73 1A D0 52 69 0B C8 B5 A1 0F 34 01
    Session DEK: 33 9F 1D 7F 5D 58 41 EB 03 4F 5C E2 34 55 78 94
    Card cryptogram: BE 71 F2 E6 1C 37 D8 7D
    Host cryptogram: 4B 48 C8 62 AB E4 E5 8C
    EXTERNAL AUTHENTICATE C-MAC: CB 83 EE 48 91 BE 1D 0C
    EXTERNAL AUTHENTICATE command: 84 82 00 00 10 4B 48 C8 62 AB E4 E5 8C CB 83 EE 48 91 BE 1D 0C
    Data to calculate MAC: 84 D8 01 81 4B 01 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47
    PUT KEY apdu C-MAC: C7 16 78 CE F3 48 EE A7
    PUT KEY sent: 84 D8 01 81 4B 01 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 C7 16 78 CE F3 48 EE A7What I try to do is that: I try to replace the old key set (40...4F) by itself (no derivation rule is applied)
    I have replaced the values of this scripts to the java code and it produces the same values as in C# code. I really don't know why? The External Authenticate command executed successfully and I use its C-MAC to calculate to C-MAC of PUT KEY command (as detailed in EMV CPS v1.1, page 79/103).
    One more thing: in the source in the thread mentioned above, I saw that in the PUT KEY apdu command, he added the value "00" after the C-MAC of PUT KEY. I don't know why?
    Is there anybody experienced the same problem as mine and has resolved it? It would be very kind of you to spend a little time on my problem and advice me what to do, I'm really stuck now.
    Best regards,
    JDL

    bug found, question answer

  • Put Key Command APDU log

    Hi everyone
    I'll appreciate it if anyone could send me an APDU Log of a correct PUT KEY Command. Specially if its a log from gpshell commands.
    Best Regards
    Shilan

    Here is my log.
    Session IV: 0000000000000000
    Session IV: e2d6f67e500c6b68I put all session IV equal "0000000000000000", but yours are every different. Where are they coming from?
    KeySet
    ENC : 404142434445464748494A4B4C4D4E4F
    MAC : 404142434445464748494A4B4C4D4E4F
    DEK : 404142434445464748494A4B4C4D4E4F
    Session Keys
    S-ENC : A2268F71917EFE0F33CC6166E1154E27
    S-MAC : 7A227D376A9DBE23AB50B7DCB45B2093
    S-DEK : F39FCFB2383B09578723B8C2E03B2729
    New KeySet
    ENC : 404142434445464748494A4B4C4D4E4F
    MAC : 404142434445464748494A4B4C4D4E4F
    DEK : 404142434445464748494A4B4C4D4E4F
    Encrypted Keys = ECB_TDES(S-DEK, NewKEY)
    ENC : 6CCC3D43CFC2CDE6CEABC760468B7EFF
    MAC : 6CCC3D43CFC2CDE6CEABC760468B7EFF
    DEK : 6CCC3D43CFC2CDE6CEABC760468B7EFF
    => 80 50 00 00 08 3A2A0051F957624F
    <= 611C
    => 00 C0 00 00 1C
    <= 00001104000012A9089A0102000710AF44C6064E6B91632B302205699000
    Session IV: 0000000000000000
    => 84 82 01 00 10 9C4DA4D81C5AB9E2A19A614FB880BFE0
    <= 9000
    Session IV: 0000000000000000
    => 84 D8 01 81 4B 0180106CCC3D43CFC2CDE6CEABC760468B7EFF038BAF4780106CCC3D43CFC2CDE6CEABC760468B7EFF038BAF4780106CCC3D43CFC2CDE6CEABC760468B7EFF038BAF47AB4BFB2D4F634E9C
    <= 6982
    Session IV: 0000000000000000
    => 84 CA 00 CF 08 2BD04A1545B7CC72
    <= 6985

  • Problem with Put Key Command

    Hi everyone
    I'm woking on Gem Xpresso card which support scp 02.
    I can Authenticate successfully and Install and load my applet on it. but I have problem in put key command.
    my first key set is:
    47454d5850524553534f53414d504c45
    and this is the key that I want to set as my new key:
    404142434445464748494a4b4c4d4e4f
    with the algorithm that I use the encrypt value of this key will be :
    33173C8ECDA55BDF7E50625531BE4FC5
    and its check value will be :
    8BAF47
    so this is the APDU that I send for Put Key command:
    80D800814301811033173C8ECDA55BDF7E50625531BE4FC5038BAF47811033173C8ECDA55BDF7E50625531BE4FC5038BAF47811033173C8ECDA55BDF7E50625531BE4FC5038BAF47
    but I recieve error 94 85 (invalid check value)
    do I calculate my check value wrong?
    does different versions of jcdk or different versions of globalplatform hav different ways for calculating check value and keys encrypted values?
    I'll appreciate any help
    Best Regards,
    Shilan

    Try visit Gemplus forum or mailing-list.

  • Put Key Command

    I'd like to put three initial key with 404142434445464748494A4B4C4D4E4F to the JCOP card. I know there is a script command, set-key, but I'd like to use APDU Command.
    I tried,
    /send 80D88000138010404142434445464748494A4B4C4D4E4F0000
    and there is 6985(conditions of use not satisfied) error.
    Please let me know the correct command.
    Thank you,
    Julie.

    Its a bit more complicated than just sending a clear text key within a PUT KEY command. According to the GlobalPlatform specifications, the PUT KEY command can only be issued within a Secure Channel Session. Further the key data within the PUT KEY command must be encrypted with the Key Encryption Key and each key must have its own key check value.
    Once you have found all the relevant portions of the specifications, the following may help. It is a put key script for a proprietary tool and it details the steps that are required to produce a viable PUT KEY command. Of course you will have to convert these steps to work in your own environment.
    G
    # ------- definitions ---------------------------------------
    dd cardManagerAID as           a0 00 00 00 03 00 00;
    DD hostChallenge as           20 21 22 23 24 25 26 27;
    DD initialKey as           40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F;
    DD encryptionKey as           70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F;
    DD macKey as                60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F;
    DD keyEncryptionKey as           80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F;
    #----- Definitions for Card Manager APDUs
    define apdu selectCardManager as base apdu
    with header of 00 a4 04 00 and with data of cardManagerAid;
    define apdu initializeUpdate as base apdu
    with header of 80 50 00 00 and with data of hostChallenge
    and returning keyDerivationData(0:10) cardChallenge(12:8) cardCryptogram(20:8);
    define apdu externalAuthenticate as base apdu with header of 84 82 00 00;
    define apdu PutKey as base apdu with header of 80 d8 00 81;
    #------ End Definitions---------------------------------
    issue selectCardManager command;
    # Using the default key set version. In this case the Initialization key.
    #####---- Mutual Authentication-------------------
    issue initializeUpdate command;
    perform vop20_generatesessionkey function
    with key of initialKey
    and with data of cardChallenge hostChallenge
    and returning authSessionKey;
    perform vop20_generatesessionkey function
    with key of initialKey
    and with data of cardChallenge hostChallenge
    and returning macSessionKey;
    perform vop20_generate_host_cryptogram function
    with key of authSessionKey
    and with data of cardChallenge hostChallenge
    and returning hostCryptogram;
    perform vop20_compute_mac function
    with key of macSessionKey
    and with data of 80 82 00 00 08 hostCryptogram
    and with icv of 00 00 00 00 00 00 00 00
    and returning mac;
    issue externalAuthenticate command
    with data of hostCryptogram mac;
    #####---- End Mutual Authentication-------------------
    #####---- Put Keys -----------------------------------
    # Add a new key set version (1) and populate the 3 keys.
    perform encrypt function
    with key of InitialKey
    and with data of EncryptionKey
    and returning EncryptedEncryptionKey;
    Perform encrypt function
    with key of EncryptionKey
    and with data of 00 00 00 00 00 00 00 00
    and returning EncryptionKeyCheckValue;
    perform encrypt function
    with key of InitialKey
    and with data of MacKey
    and returning EncryptedMacKey;
    Perform encrypt function
    with key of MacKey
    and with data of 00 00 00 00 00 00 00 00
    and returning MacKeyCheckValue;
    perform encrypt function
    with key of InitialKey
    and with data of KeyEncryptionKey
    and returning EncryptedKeyEncryptionKey;
    Perform encrypt function
    with key of KeyEncryptionKey
    and with data of 00 00 00 00 00 00 00 00
    and returning KEKCheckValue;
    issue PutKey command
    with data of 01
    81 10 EncryptedEncryptionKey 03 EncryptionKeyCheckValue(0:3)
         81 10 EncryptedMacKey 03 MacKeyCheckValue(0:3)
         81 10 EncryptedKeyEncryptionKey 03 KEKCheckValue(0:3);

  • Put Key Command Problem

    Hi everyone ,
    I'm trying to change my card's default key to some other key .
    My card supports GP 2.1.1 and JCRE 2.2.1
    My default keys are :
    I've tried put key command (after opening secure channel ) with defferent P1 and P2 and key versions but I recieve errors , bellow is my APDU logs :
    I'll appreciate it if anyone could help me to find the correct byte setting for p1 and p2 parameters and key version .
    Best Regards,
    Vivian

    Hi,
    What is the status word being returned by your command? Also, can you post the host challenge and response to INITIALIZE UPDATE for the APDU session so I can recreate the session keys to compare key data field values? The only thing I can see with that APDU that may cause you any issues is the Le is not present. The PUT KEY command will return the KCV's on success. Other than that, the only problem could be the encryption. Are you using the session DEK key to encrypt the key values?
    Cheers,
    Shane

  • GlobalPlatform Put-Key and Key Versions

    I want to change the default ISD keys of a JCOP card from 4041.. to someother value. My expectation was that the put-key command replaces these keys. However, I have some suprising findings:
    1. Put-Key actually creates a new version of the keys.
    2. All key versions allow you to mutually authenticate. I fail to understand why would someone like to have different keys to open the same lock. What is the reason behind this scheme?
    3. It is not possible to change keyset 255, as in 255/1/404142...
    4. You can have at the max four versions of the keys. Why limit on 4?
    I am using JCOP31/JCOP41 cards.
    I am very confused on the 2nd point. How do I change the default ISD keys?

    Hello, I ask a question,
    I analysis the log file of JCOP applet download, I check initlize update and external authentic command successfuly, but when meet the third command, the MAC is wrong: I guess the ICV is wrong,
    the ICV= using LEFT 8 byte of mac session key to encrypt last MAC value(external authentic with a MAC which icv using 0000...)
    follow is the log file
    cm> set-key 1/1/DES-ECB/404142434445464748494a4b4c4d4e4f 1/2/DES-ECB/404142434445464748494a4b4c4d4e4f 1/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm> init-update 1
    => 80 50 01 00 08 51 0D 8A B4 A6 F7 3D EC 00
    00 00 52 74 00 14 78 90 81 08
    01 02
    00 1A A8 09 B4 40 6C 0A
    BF 8D 80 AF E6 2C CB 52 90 00
    (SCP02)
    SC = 00 1A
    SENC Session Key: B4 4D B1 AE 29 F3 A4 E7 70 BF 2E 5D A9 BD EE DE
    MAC Session Key: 7E AF 83 39 23 73 67 21 29 43 FC C2 96 AA 78 E8
    => 84 82 03 00 10 85D6DC2AC1B64706 61546D641B8DBD2F
    <=9000
    HOSTMAC: 85 D6 DC 2A C1 B6 47 06
    myMAC : 61 54 6D 64 1B 8D BD 2F (ICV=00 00 00 00 00 00 00 00)
    evrything is ok;
    cm> delete a0000003334355502d4d4f42494c45
    => 84 E4 00 00 20 D6 C0 C2 4A 72 C3 21 BA DB 7A 5E 16 D0 6D B7 22 8B 0D 98 70 8F 6D 28 36 834C929006A82732
    <= 6A 88
         PlainText: 4F 0F A0 00 00 03 33 43 55 50 2D 4D 4F 42 49 4C 45
    Encryped: D6 C0 C2 4A 72 C3 21 BA DB 7A 5E 16 D0 6D B7 22 8B 0D 98 70 8F 6D 28 36
    ICV = DES(7E AF 83 39 23 73 67 21(key), 61546D641B8DBD2F(lastMAC)) = 28 8B 0D F5 CF B4 C9 2E
    MacData: 84 E4 00 00 20 D6 C0 C2 4A 72 C3 21 BA DB 7A 5E 16 D0 6D B7 22 8B 0D 98 70 8F 6D 28 36 80 00 00
    myMAC: E4 CC 0A ED AE 43 67 62
    cm> delete a000000333435550
    => 84 E4 00 00 18 1A 5B B4 78 8F 4F 5F 43 60 D0 D8 D0 08 45 37 24 CDC2CA9A740E0C51
    (34692 usec)
    <= 6A 88 j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm> upload "D:\eclipse\workspace\cup\bin\cupMobilePayment\javacard\cupMobilePayment.cap"
    => 84 E6 02 00 20
    51 F2 1F 72 A7 B6 4B B2 D9 DA CF AE DD 77 87 E6 D3 EE 13 C2 F9 CA FA 1A BE F6 93 89 C5 F1 AF E4
    (39798 usec)
    <= 00 90 00
    PT = 08 A0 00 00 03 33 43 55 50 08 A0 00 00 03 33 43 55 50 00 00 00
    ET = 51 F2 1F 72 A7 B6 4B B2 68 38 4A 5E E2 26 2F 8E F7 46 D7 A2 4D A7 DA 40
    Status: No Error
    => 84 E8 00 00 F8 75 56 4E 74 4B 4B 9B 29 BB 1D 1A .....uVNtKK.)...
    49 4C 36 C8 C9 74 98 6D 73 93 7E 83 E2 7A 0A FC IL6..t.ms.~..z..
    79 6A 9D 52 D9 74 A7 0C 3B ED 46 24 40 28 16 57 yj.R.t..;.F$@(.W
    AE 18 7A E2 6E 16 E4 66 42 70 29 D0 5F 38 2A 8F ..z.n..fBp)._8*.
    66 E9 B6 F2 C6 4B 12 7F F2 66 DE 6C 44 5B 15 02 f....K...f.lD[..
    A6 8F C4 9C 11 6D 4C A1 29 3E F9 1E 69 B2 C3 C2 .....mL.)>..i...
    9A 5C 16 77 7E 8D F5 A1 A6 AC DD 64 5C D9 9C 3F .\.w~......d\..?
    6D 0D FF 4A 16 0F 9E B1 49 8B 45 5C 98 E6 D1 76 m..J....I.E\...v
    EF 39 7D EB 4E 45 07 64 93 DD 48 6A CB 54 34 D7 .9}.NE.d..Hj.T4.
    52 F0 B8 1C 72 CA F2 DC 24 E4 6E 2C E1 6A 17 CF R...r...$.n,.j..
    0B 88 25 88 FF CC DB B3 52 5F E2 C7 85 D7 18 0C ..%.....R_......
    50 DE 72 3A 92 A8 17 16 05 E6 52 4D 43 3E CC 0D P.r:......RMC>..
    51 7B F0 CA 97 95 BF 56 9A C2 C1 15 49 27 45 A6 Q{.....V....I'E.
    0F 46 6F 2E BB 94 1C 28 6D EA 3F 9C AC 85 84 70 .Fo....(m.?....p
    15 CD D1 3B 6B 4A 70 D5 1D 10 B3 4C 67 9E 98 C1 ...;kJp....Lg...
    F9 DA ED 93 03 1C 9D 8F E6 CF 3D 5C F4 00 ..........=\..
    (251859 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 01 F8 08 03 FD 54 AF 06 42 AB 16 39 97 ........T..B..9.
    14 EC AA CC 86 2E 56 F2 B6 AA A1 C5 0E 71 EB 84 ......V......q..
    14 73 3A 01 4B D2 DA 0C 59 B0 BB 20 95 E0 51 8F .s:.K...Y.. ..Q.
    6A 2C 6E 5D 42 F2 04 0F 55 5E 43 E9 58 D0 95 7B j,n]B...U^C.X..{
    D3 10 58 17 6F F8 EF 1F BD 5A 0E F1 A7 E0 7B 62 ..X.o....Z....{b
    E4 B5 9A 7F FD D6 FB CF 0E 68 14 8F 3C 29 BB EA .........h..<)..
    03 B1 B8 8A C5 E8 41 0D 62 25 A8 11 68 F3 2D 85 ......A.b%..h.-.
    0E 5E 49 D2 9C 6F 1D 20 F7 C3 C5 93 47 5E BF 36 .^I..o. ....G^.6
    53 83 7B 02 74 58 E7 68 05 A0 99 31 11 85 E1 14 S.{.tX.h...1....
    8D DF 63 FD 46 52 5A 1E 84 C4 E8 85 08 16 21 95 ..c.FRZ.......!.
    60 E0 1E F1 7F A5 F6 9B 66 0D 3F B3 94 B1 FA 5C `.......f.?....\
    92 29 DC 29 D5 8C 76 78 05 B7 CF 42 8A 34 9E 2D .).)..vx...B.4.-
    9F 88 C9 52 4C 06 32 ED 0B EA 53 88 DC EB 4F AA ...RL.2...S...O.
    57 A0 92 83 B5 5B 1B 2C 74 28 73 2B 3E C8 6C 38 W....[.,t(s+>.l8
    71 7A BD 88 11 75 79 3A 94 E6 3D 81 50 FD 19 A3 qz...uy:..=.P...
    D2 77 ED 1B 8A C9 A2 FB 12 FB 6E 13 FA 00 .w........n...
    (135784 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 02 F8 17 0D 7F 22 BF 7C 75 90 30 4F D1 ........".|u.0O.
    3A DA 50 77 5E F0 56 16 DB 6F EA 0C 44 61 05 CC :.Pw^.V..o..Da..
    8A 07 8D BB 76 FA EE C9 2A 51 5B 0B 3C 3B 8D 02 ....v...*Q[.<;..
    9B 40 F9 D2 E2 00 A5 F2 AD 43 65 34 BE C2 FB 72 [email protected]
    1C 16 05 86 17 D0 75 70 E6 4E 27 15 5D 43 50 F2 ......up.N'.]CP.
    DF 0C DB 96 3D 64 AC D6 F7 32 08 57 26 EC 9B 29 ....=d...2.W&..)
    16 FD 92 21 FB 60 90 AE F0 AE 92 89 54 7F 7C 0D ...!.`......T.|.
    D5 EA 1D 0D BE 35 52 5E D5 2A A0 17 78 B2 CC 02 .....5R^.*..x...
    AD A6 FA F3 0D 27 A0 A2 23 7F ED FD 94 A1 3B FA .....'..#.....;.
    9F ED 50 7A 48 48 6C 8F 35 DC EC 73 35 51 11 57 ..PzHHl.5..s5Q.W
    01 1D 69 E4 69 2F 96 75 ED EA 7D 3D AD 17 D5 05 ..i.i/.u..}=....
    D2 24 CF 10 F0 63 4E CB A3 71 80 69 CB E6 3B 1D .$...cN..q.i..;.
    BE 8B 84 58 10 62 F0 1E 1A 95 D6 73 28 91 00 6C ...X.b.....s(..l
    63 75 12 AD EF 80 A6 3A 5A 9A 51 BE 9D AA 8E 16 cu.....:Z.Q.....
    48 B5 67 9E 2F 72 62 98 7C C3 A7 86 D5 EC CF 08 H.g./rb.|.......
    A8 04 AE 1B 0A 6C 70 A8 04 5F 39 F8 A8 00 .....lp.._9...
    (84775 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 03 F8 65 B0 96 36 BD 16 ED AB 13 5E 49 .....e..6.....^I
    4C 8E 85 15 AF 22 03 1E 26 E0 71 E2 0C A5 B3 0E L...."..&.q.....
    37 2B F5 61 C0 CC F3 C5 D9 83 72 AF 0B 43 AF D2 7+.a......r..C..
    1F A5 B7 DC C1 F3 92 FE AC 52 52 0A 81 42 24 D0 .........RR..B$.
    23 34 AE A0 CF 1B 13 50 4F 6F DB 21 F8 C8 CD 72 #4.....POo.!...r
    C5 BF F7 D6 D6 FE C6 8B FF 7D 26 D9 79 74 F9 23 .........}&.yt.#
    45 1C 8C 19 4C CF 4A 0A EA 3F F5 F8 F6 D1 0F 1B E...L.J..?......
    DA FC CC BB D1 75 12 78 F7 FB 40 29 69 8E CF 0C .....u.x..@)i...
    3F DF 46 20 64 3B DF 8E BC 26 70 05 89 0E 1D 98 ?.F d;...&p.....
    E5 16 8A 55 8B CE E5 D8 C3 68 39 27 35 5F 09 07 ...U.....h9'5_..
    08 A1 AC BE 5E 1F 79 30 04 EF 91 79 13 6C 8D EA ....^.y0...y.l..
    E3 1F 63 FF 0C A7 56 DC 4E 4A 37 BC D2 9F 19 41 ..c...V.NJ7....A
    AF 81 CB 83 9A 69 E5 7C 95 C7 98 53 27 62 4E 03 .....i.|...S'bN.
    57 AF 5B CC AA 40 E1 3F A3 0E E1 E5 44 68 36 7C W.[..@.?....Dh6|
    A5 2E 35 17 09 1F 15 49 28 69 57 05 8F A2 DE B5 ..5....I(iW.....
    11 87 1C 4F 80 74 B9 B4 57 93 CA 90 4B 00 ...O.t..W...K.
    (85548 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 04 F8 C1 8E 28 4B 0C 20 1C 4C 92 F5 F3 .......(K. .L...
    CB 85 3E 11 57 2C 74 D3 4E 30 77 80 79 D4 62 1F ..>.W,t.N0w.y.b.
    59 25 5D 45 6B A4 2E 01 BA A0 0E 61 CE ED C4 14 Y%]Ek......a....
    4D 0B 25 79 9C 40 F9 90 EB DD 38 34 67 20 83 6B M.%[email protected] .k
    11 9D 98 AA 7B EB CB 8F F3 58 A3 86 4E CB F9 50 ....{....X..N..P
    88 CF 34 BD 1A DF 13 D2 C4 55 D5 A0 94 30 F8 79 ..4......U...0.y
    31 67 8A 5D 4A 4E 10 27 D9 BF DC 3B A3 9D C1 8E 1g.]JN.'...;....
    11 AF E2 05 98 98 66 A0 4A B3 04 2D 2B 25 70 5C ......f.J..-+%p\
    F1 1F DF 8D 4C 63 63 DF 1B E7 8D 67 8C B5 34 F9 ....Lcc....g..4.
    64 D1 C4 06 67 BC 91 52 13 8E 34 1A 3B 2D AB C8 d...g..R..4.;-..
    52 F2 FE B4 E6 0A B9 34 28 AA 58 02 EA 96 04 5B R......4(.X....[
    9E 75 B6 77 5A 35 8F 5C 9A 51 AB BE 71 75 68 C7 .u.wZ5.\.Q..quh.
    F2 66 F9 19 A2 34 D0 59 5B 93 52 62 6A 01 8D 88 .f...4.Y[.Rbj...
    60 C8 72 7F 66 E3 6C 41 BD EB 85 39 56 D6 59 B9 `.r.f.lA...9V.Y.
    2A EC F8 BA DA 0C 26 E1 9C D9 57 DA 88 2C 5F AD *.....&...W..,_.
    A4 EF E9 42 93 EA 75 5E 4C 90 F2 22 DB 00 ...B..u^L.."..
    (85170 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 05 F8 92 87 8B 7B D4 FA DC 1C 0F 59 61 ........{.....Ya
    E7 2B 00 93 85 45 65 BA 5E F0 24 6D E8 55 0C CD .+...Ee.^.$m.U..
    78 00 2B 75 AC A6 E9 A7 24 59 FC 9D C8 3A E8 2E x.+u....$Y...:..
    C4 1D AC B3 43 76 55 A2 C8 5D DC 65 45 87 CD BD ....CvU..].eE...
    AF E7 9E A3 8C 67 70 3A 62 84 D6 58 45 FC 39 A0 .....gp:b..XE.9.
    5E 87 50 91 22 12 2D 4B 56 4C 70 B5 C8 D6 F3 A1 ^.P.".-KVLp.....
    92 54 F4 C0 66 D2 7D C3 90 E6 CD 0C C3 B6 23 9D .T..f.}.......#.
    14 5D C1 71 F2 98 F0 13 3D 92 B6 8D B8 BB A8 34 .].q....=......4
    1F E4 F9 95 49 30 4A 5A 7D 20 EC 83 86 C4 08 55 ....I0JZ} .....U
    F4 72 4C 02 12 97 69 63 16 F9 06 7E 5E DF 24 E9 .rL...ic...~^.$.
    8F 69 B5 B5 0F 6B EF E9 F1 50 DB 27 DB 8F CD 40 .i...k...P.'...@
    70 E2 E3 43 34 EB 67 88 3F EE 18 90 77 F1 44 39 p..C4.g.?...w.D9
    9A 19 3A C0 B9 FB 73 C4 20 3C 87 B3 4A 7A 70 89 ..:...s. <..Jzp.
    42 15 D6 92 40 9A D9 7A 3B 23 8B FD 10 6D FC 05 [email protected];#...m..
    AE 23 0C E5 8E E0 BA F9 99 45 32 CD 9E A6 7D D4 .#.......E2...}.
    E2 B7 EB 6D 35 94 76 3A 23 49 AE 61 B4 00 ...m5.v:#I.a..
    (84623 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 06 F8 20 83 58 25 06 53 71 E4 8E 54 2A ..... .X%.Sq..T*
    AC 7B 29 E7 5F B0 71 E2 BD 05 8C 16 DD 8D D3 61 .{)._.q........a
    91 45 0C 42 CB 80 F5 46 B8 E1 2F 43 B2 B5 1C DB .E.B...F../C....
    F9 32 14 00 34 04 80 BF D5 2A 09 6E 3F C3 F1 18 .2..4....*.n?...
    5F F7 41 A9 74 11 33 50 EE F5 21 51 92 52 CF 97 _.A.t.3P..!Q.R..
    F4 FD 5A 40 1F 48 13 4F 0D CD F2 DF 85 BD 3A E0 [email protected]......:.
    0F 01 88 58 C3 86 CF C7 62 F8 4C F6 2A AF 6C 34 ...X....b.L.*.l4
    37 CD D0 B3 67 07 29 4E ED 91 AB 8D 86 E6 F0 7D 7...g.)N.......}
    1E 46 C3 C3 99 48 93 9E 95 BD 2F 90 6F 6A 42 E9 .F...H..../.ojB.
    30 78 F5 46 E4 FB F8 81 7A 3A 25 DC 96 AC 3D C9 0x.F....z:%...=.
    BD 9F 54 DB 5B C3 83 BB E1 61 5E D9 C8 F4 7B C2 ..T.[....a^...{.
    EB C2 16 CD 43 62 38 F1 97 66 A7 49 8D D2 BB A1 ....Cb8..f.I....
    85 C2 0B C9 46 9F 87 49 28 41 C2 F1 A3 77 9F 7A ....F..I(A...w.z
    AA 58 A3 26 1D 59 9F F0 B0 BD 87 D3 6F E7 28 AC .X.&.Y......o.(.
    93 1A DD BB 98 2C B1 CA 18 EC 12 BA 49 EA 35 42 .....,......I.5B
    1C F9 81 99 24 62 13 9C 1C AC 15 7B 8D 00 ....$b.....{..
    (85261 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 07 F8 9E 79 86 65 BE 67 76 91 99 DE CA ......y.e.gv....
    EF 94 D9 FC FC 9C 75 08 E8 C8 75 F8 15 81 F0 2C ......u...u....,
    84 88 FF F7 44 8C B2 AF C4 2C 01 D1 B7 23 47 98 ....D....,...#G.
    0B 7D 0F 87 52 B8 97 45 52 DC 99 08 3E 6E 8A 6F .}..R..ER...>n.o
    8C 40 6B 39 8B DF 8B 87 D1 8D 3A C0 D8 17 B1 DF .@k9......:.....
    6A F0 3D B5 38 07 55 22 FF A2 2A DF 92 6B 73 D3 j.=.8.U"..*..ks.
    49 F8 AA 48 72 23 8F C7 A5 C9 02 A0 00 38 10 76 I..Hr#.......8.v
    35 8B 31 1C C3 C4 30 DC B9 DB 23 AA 4D 1D 8B 76 5.1...0...#.M..v
    40 D9 F2 B5 17 A7 97 5C 4B F5 90 02 4A F7 DB 06 @......\K...J...
    06 31 BF CF 5F 2E 42 31 62 6E 75 00 7E D4 78 3B .1.._.B1bnu.~.x;
    50 76 6C 57 3D B2 B7 BB 39 D1 92 D3 38 51 34 3C PvlW=...9...8Q4<
    42 62 E9 44 F6 5B 92 59 13 47 25 59 6E 3D 48 B2 Bb.D.[.Y.G%Yn=H.
    01 5B 2B 06 11 EA 5C E7 3E D4 81 88 94 F2 B7 14 .[+...\.>.......
    8F EE 52 A7 FF 85 06 9C B9 E9 1A 1A 8B 5A 66 DF ..R..........Zf.
    B6 72 A0 44 F9 DC 66 2D 14 11 3F 62 C5 E6 94 33 .r.D..f-..?b...3
    6A CD 6F 97 63 5B 2E BE 3D 44 AF 65 A5 00 j.o.c[..=D.e..
    (85691 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 08 F8 38 C4 7A CA DE 8C 8A 65 FE 6C 66 .....8.z....e.lf
    AD 62 D1 35 B6 01 97 D3 D7 ED 26 40 09 8C 98 DE .b.5......&@....
    4D 55 AF C5 07 EA D0 AE 69 50 2D 9C DA 18 3F 48 MU......iP-...?H
    70 16 54 46 43 1C 51 CA 8B C5 E5 46 15 3E 89 14 p.TFC.Q....F.>..
    A2 4C F3 DE B1 FC 99 C4 8C A9 83 4F 08 0A 37 38 .L.........O..78
    07 9A A1 4B 24 6A 32 E2 16 24 E6 16 C8 1E 54 A4 ...K$j2..$....T.
    3B 0F 5B 28 CF 91 98 4C 76 51 5E 9D E7 DA 0F E1 ;.[(...LvQ^.....
    4F 92 6F 1E C1 B1 A4 5D EF 84 23 DD EA 3D 12 8D O.o....]..#..=..
    DD AB 78 8C CC 92 BD 79 B3 24 A1 DA 2E FE B7 7F ..x....y.$......
    40 81 93 F9 75 8E E3 5D 4A 14 65 12 9A BD 6A 39 @...u..]J.e...j9
    74 DC C2 70 37 CF 38 48 91 E2 2A AE E5 AE 67 AA t..p7.8H..*...g.
    A4 4A FC 7B 55 F8 B6 21 CB 5D 7A 45 58 35 1A F8 .J.{U..!.]zEX5..
    D1 26 D4 52 9F FE 5E 44 C4 65 9F BF E6 25 7E E5 .&.R..^D.e...%~.
    86 36 DE 2D FE 93 84 76 28 38 A7 AA 56 25 96 98 .6.-...v(8..V%..
    B9 63 23 7F 74 08 F2 44 9C 0C E5 A2 46 E6 06 FD .c#.t..D....F...
    5C 70 B3 DB B5 A4 8A ED A2 00 D9 CE AC 00 \p............
    (85756 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 09 F8 DB 50 62 74 24 1F A8 17 4B 80 F6 ......Pbt$...K..
    8E AD 94 CB 8D 9B 54 F1 1C 75 60 15 88 AE 91 45 ......T..u`....E
    55 53 DD C1 2D F1 5B 44 52 C5 A1 91 2D 7E 97 37 US..-.[DR...-~.7
    19 D5 9C E2 D9 EC A4 AB 7B D4 E7 51 40 3F 65 71 ........{..Q@?eq
    39 6E 4A 95 03 0D 01 1B DC 59 E6 90 87 00 7B 92 9nJ......Y....{.
    5A B9 BA 7A EF E5 62 1C 09 87 07 72 CA E0 7F 34 Z..z..b....r...4
    EF 01 7A B9 58 10 DB 5E 45 AA 08 40 88 7B 28 D8 ..z.X..^E..@.{(.
    B2 1F F7 A9 63 91 55 A1 B3 4B F9 C2 13 0F FE A8 ....c.U..K......
    83 72 5A FA 0B EA 89 7B 52 0B C9 E1 D8 D9 8F 51 .rZ....{R......Q
    B7 E3 65 EB 98 8C EA A9 E9 6B 4B 15 36 8C 1A 3C ..e......kK.6..<
    B9 F8 28 20 0A 2B CD B1 73 6B 98 F5 37 70 F1 6C ..( .+..sk..7p.l
    9C 26 19 2D 18 F0 B9 BC D6 8E 51 6B 59 6E 8C 66 .&.-......QkYn.f
    09 2F 5F 9A 30 F6 F2 EE 02 D3 4D 4C C5 4A FA 4C ./_.0.....ML.J.L
    8A B9 FC D0 24 27 62 E5 7D EE DD 26 0F 22 64 72 ....$'b.}..&."dr
    E4 8B 8E EB 75 18 1D 01 56 15 BC 58 C2 22 89 6B ....u...V..X.".k
    B9 34 49 6F 56 3D 68 61 89 D1 AB 54 69 00 .4IoV=ha...Ti.
    (83870 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 0A F8 DE C9 18 19 CE 6F AC 11 13 09 F2 ..........o.....
    9D 7D 56 E1 3E 9C E9 D5 DC 18 02 0A 07 DC 7D D9 .}V.>.........}.
    EF BA 14 1B 7D B5 11 A2 50 17 85 8A E2 63 77 AC ....}...P....cw.
    5A F0 7F AA 49 1E 77 86 5D 6C DE 0D DC AF 40 40 Z...I.w.]l....@@
    A9 12 0F 08 2F 7F 46 01 9D 25 01 4D FC 67 BB 38 ..../.F..%.M.g.8
    CC 9E 03 7B 2B 7C 3F EC 36 B1 3A BB 7E 30 17 BB ...{+|?.6.:.~0..
    8E AD 12 C5 B8 B3 8C 4A AC 90 70 36 15 0E 41 8E .......J..p6..A.
    E2 62 70 70 8B 38 D6 AA A5 73 5B 16 1C 67 7E 64 .bpp.8...s[..g~d
    B3 8D 29 1C 04 CD 9B 22 2D 87 81 E9 A5 43 A4 B8 ..)...."-....C..
    83 B5 E6 F5 81 F8 01 C3 B8 2A DE C5 04 2C 8E DF .........*...,..
    61 F5 A9 53 C2 A4 34 EB 76 22 15 8D 41 26 D1 B8 a..S..4.v"..A&..
    F4 58 52 AD E7 61 1D EC 47 27 C6 17 50 42 B3 58 .XR..a..G'..PB.X
    0D A7 8D C5 2A 6E C9 E9 30 29 44 18 17 05 B4 7B ....*n..0)D....{
    6E FD 91 2E 40 3B 44 E3 0F 38 84 BC 8F 86 2C 37 n...@;D..8....,7
    08 56 03 F0 F9 92 67 87 DF FD 9D 25 1C 52 8B D3 .V....g....%.R..
    AD 1C 16 3A C1 04 1B F7 D9 5B 4D 47 18 00 ...:.....[MG..
    (85986 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 0B F8 AB 24 E7 15 F9 CB 73 EF 93 76 9B ......$....s..v.
    6A F5 0B 56 7A 18 CE 26 C8 0B E6 C0 CF 09 4A 55 j..Vz..&......JU
    45 18 D7 3B 16 A4 FB A5 7B A4 34 00 3D 2F CA 8A E..;....{.4.=/..
    6A F1 A4 F1 19 56 32 62 C4 05 10 32 A4 18 87 FF j....V2b...2....
    21 0B 55 3E B3 51 54 6B 18 D7 0C B7 BC 03 1F 49 !.U>.QTk.......I
    39 B2 45 98 00 D2 B6 22 A0 FC AF 3F EE 93 E8 F5 9.E...."...?....
    8A 39 44 AC 62 A7 4E 5B 51 02 87 21 FA 14 C1 59 .9D.b.N[Q..!...Y
    D8 A8 4E 74 29 AD 8E 02 82 EB 2F 0B 14 EA 41 59 ..Nt)...../...AY
    66 F3 84 D0 C1 35 FC 6C 71 B6 57 CB 3A 8D 7E C4 f....5.lq.W.:.~.
    5A 48 3D 00 D1 7E 90 4A 2E 72 73 25 32 7D C1 68 ZH=..~.J.rs%2}.h
    4A 31 AE BD 64 A7 05 EA 71 6B 37 EE 81 FB 34 00 J1..d...qk7...4.
    95 9B 17 C5 81 7D FA AB 4C 0A B7 C6 B0 60 AC 88 .....}..L....`..
    88 E3 A9 82 03 45 00 85 2C 4A 57 24 7F 3B 08 F4 .....E..,JW$.;..
    7E 4D 30 D9 48 F5 01 58 5E 99 F3 74 9E 32 04 C9 ~M0.H..X^..t.2..
    D0 A6 B2 79 C7 6B F9 29 C8 2C D6 04 FB 01 C6 C3 ...y.k.).,......
    72 36 FB AA C3 04 F6 6C AD BA 1E 72 E8 00 r6.....l...r..
    (85577 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 0C F8 8F D3 42 3A 9C 8D FE 27 1C 60 A2 .......B:...'.`.
    26 58 72 70 C7 4D A5 97 AA 7B 1E 56 A2 1D 31 C5 &Xrp.M...{.V..1.
    C6 A2 3E 4C 26 9C 87 66 53 C1 BE 2F DB D6 EB C0 ..>L&..fS../....
    E7 1A 95 39 B0 7C E5 02 56 AE FC 44 4F 3C C6 FD ...9.|..V..DO<..
    C2 93 39 18 70 65 49 E4 16 87 12 A6 DA E5 C2 96 ..9.peI.........
    48 F9 62 8F A2 85 EE AD D8 2F F6 9D F0 7C 24 3C H.b....../...|$<
    8A BC 83 76 26 83 27 FE 4A FF 13 92 36 7D 5A 76 ...v&.'.J...6}Zv
    9F 48 80 8B 17 8C AE 03 02 92 F8 39 1F 21 40 D6 .H.........9.!@.
    19 0A 1C 1B 01 D0 FE 30 32 FC 25 83 D7 06 0C C3 .......02.%.....
    FB 35 A7 63 CB 12 B6 B7 56 83 DB A8 17 10 4D 47 .5.c....V.....MG
    EF B8 1B 53 57 EF F6 13 3E 73 17 7C 97 7D 25 E8 ...SW...>s.|.}%.
    61 2D 53 37 7F 22 0D 51 68 7B 32 C1 97 BE 4C 84 a-S7.".Qh{2...L.
    E7 3C ED 59 43 8D C2 DA 73 59 3A CE 8F 3B 66 A2 .<.YC...sY:..;f.
    87 3D 47 83 B9 7C E1 47 3B 0E 2B C6 37 3D E3 86 .=G..|.G;.+.7=..
    38 00 53 79 FA BC F6 47 90 67 AE 19 87 36 E1 CD 8.Sy...G.g...6..
    07 3C BD DE EC 43 1B FA 2B 24 C5 3E 8F 00 .<...C..+$.>..
    (85591 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 0D F8 C3 A0 F1 73 3E F7 A3 64 08 CB 8D ........s>..d...
    50 07 C2 E6 89 BE 79 36 17 75 71 B0 8C 98 D5 A9 P.....y6.uq.....
    C6 F8 DD 9E D3 E9 31 95 B9 7A AF 5D E3 BB 9F 1B ......1..z.]....
    C4 88 C3 D3 BF EE 1E 31 A1 13 BC BF 61 1A 41 6E .......1....a.An
    B9 19 1A B6 94 46 2A 8E D2 15 05 9B 4F AB 3D 3F .....F*.....O.=?
    78 E2 98 F7 53 B9 02 A4 B0 71 3D 22 F5 9A F5 EA x...S....q="....
    BC DB CF A1 91 59 63 73 20 03 A4 58 17 13 39 61 .....Ycs ..X..9a
    1A A8 2A BC 55 F5 1A 48 F7 C8 35 C9 A2 39 6F 15 ..*.U..H..5..9o.
    80 A9 21 AE FD 67 EF 0F 86 87 8A 64 7F C3 74 01 ..!..g.....d..t.
    3B 09 EF 82 5E EB 63 98 0E 7B D0 B0 B5 03 1F B2 ;...^.c..{......
    89 34 4E 79 41 BF 84 9D 9C E6 AA 08 03 5B AD 91 .4NyA........[..
    33 5E B6 BD C3 19 D1 5D B4 CC CE E6 AD C7 F6 FC 3^.....]........
    FD 8B 9D CC AB 82 1F FF 9F 50 A0 83 8C 1E 87 BB .........P......
    CD 6B C3 49 12 91 4E D3 9A 5C DF 41 08 DF 2F 72 .k.I..N..\.A../r
    2B BF 1D BE B7 AD A7 BD E6 94 E3 21 5A 58 70 F9 +..........!ZXp.
    39 CA FD 95 10 C7 82 87 94 E8 43 CA F9 00 9.........C...
    (84218 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 0E F8 90 65 C3 EE FA E3 11 FA FF A2 55 ......e........U
    66 30 5A 27 0F 67 7C 83 EC 96 73 2E C3 97 42 62 f0Z'.g|...s...Bb
    C2 DF 1F 6A 5F 73 4D 00 00 D2 FE 0D B8 24 63 08 ...j_sM......$c.
    B9 8E 4D AD D3 E5 34 65 16 7E 6D 4A E9 2C 72 EF ..M...4e.~mJ.,r.
    C7 F3 17 74 D1 98 E4 84 02 BF 9E 26 0D 88 95 9C ...t.......&....
    20 2D 59 A0 F3 34 0E 6E 26 C3 1E AA A4 32 5C C3 -Y..4.n&....2\.
    7B 07 F3 81 50 87 F6 9F 68 92 F6 8A 10 65 62 CC {...P...h....eb.
    94 35 01 C1 B4 54 B8 F5 A2 08 94 7B 03 02 C8 AC .5...T.....{....
    0E CF 6D BE C9 96 0C D1 5A A7 5B 71 74 90 7D 11 ..m.....Z.[qt.}.
    C5 90 B0 7E 3C D1 71 20 21 86 D1 C4 92 C2 20 CA ...~<.q !..... .
    2A 8D C2 E8 C2 25 2A 55 3F E5 2C 97 E6 FC 09 FB *....%*U?.,.....
    5A FF CD 9A 7F 72 BB 0C 16 59 CD DF ED FC EE 34 Z....r...Y.....4
    DB 2A 9A 86 82 D9 37 F9 3B A6 8B A6 9E 42 F5 18 .*....7.;....B..
    89 27 15 AE F0 11 16 27 FB 25 88 16 87 A6 B7 AD .'.....'.%......
    5D EC C1 A8 3A F5 92 BE F0 89 15 69 C2 CC 15 86 ]...:......i....
    7A 6F 58 DE 71 0E AE AE A5 DB 45 98 D8 00 zoX.q.....E...
    (85648 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 0F F8 66 98 93 A7 94 09 99 64 BF 21 14 .....f......d.!.
    1C E9 D9 AD FE C7 6E 13 52 8E 27 26 B1 84 0F 1E ......n.R.'&....
    CB 25 4B 85 14 EB E0 9C A0 09 A6 A0 93 29 04 3B .%K..........).;
    B0 22 48 39 CC 75 A6 EE E0 4B C2 E8 DD A0 17 6E ."H9.u...K.....n
    28 BA F2 7B CF C1 DC AF B6 20 11 FE AA FC BB 22 (..{..... ....."
    D4 5F 92 B1 93 4D 45 2C 94 5B FA 01 61 F3 00 FE ._...ME,.[..a...
    FE 5E 9D 12 0E FF EB 89 BF AB 19 EB E3 A7 4E 04 .^............N.
    7D A8 95 8E 74 E7 00 75 2C 8D 51 CB 56 CF 46 CE }...t..u,.Q.V.F.
    CF 97 6C 27 A4 EE DC 38 A5 E3 AD 4C D8 9D D2 AC ..l'...8...L....
    21 26 0E 70 0A 78 BA 7F F8 0C 1E 15 90 1C DD 9A !&.p.x..........
    1E 95 CE 88 4B B3 8A D8 3C BD 14 E4 2B 43 8C B8 ....K...<...+C..
    59 DD 25 3A DE B4 17 0F A6 68 E0 33 D0 9F E0 E7 Y.%:.....h.3....
    09 8F B8 29 62 DF 99 09 62 29 E1 5F E8 A8 8F 02 ...)b...b)._....
    4A 5E 1F 9E 11 0B CB A5 7F C0 F5 DF 44 B0 53 75 J^..........D.Su
    AF 9C A0 1F 31 D5 CA 77 01 96 37 E2 EA 40 D6 E2 ....1..w..7..@..
    D7 4A 79 E7 25 89 20 23 39 D8 39 03 91 00 .Jy.%. #9.9...
    (85655 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 10 F8 9A F3 63 4B E6 24 1F F4 AD B0 10 .......cK.$.....
    A2 52 65 4E 46 E0 AA 3A A8 F6 B0 47 9F 65 62 D1 .ReNF..:...G.eb.
    98 93 11 D7 E9 43 11 A0 BD 86 DE 38 04 B1 E5 42 .....C.....8...B
    A1 38 39 11 A8 20 27 5F E8 63 E6 1B 03 A4 2F F0 .89.. '_.c..../.
    3C 89 40 FC FB E4 21 6C 82 FD 0A 98 EE 08 54 73 <.@...!l......Ts
    43 C4 65 33 8F A5 98 A8 AB 95 9F 24 9B 44 C6 CD C.e3.......$.D..
    09 29 5C 13 C3 7A C7 99 FF 27 85 9D 00 FE 8B E3 .)\..z...'......
    FD A9 3D 00 63 8C B8 5F 0E E3 D3 85 03 81 45 08 ..=.c.._......E.
    4A 7A CF 72 66 CA B6 65 80 AB F7 1B 48 AD D7 B4 Jz.rf..e....H...
    AF 27 EE 48 B7 E6 34 D8 A1 3F 6C D1 A5 85 56 28 .'.H..4..?l...V(
    15 05 28 50 D6 FF B5 91 1D DC 5D 17 2F 35 A1 54 ..(P......]./5.T
    15 01 2E 96 2F 0E 07 A2 14 B4 03 07 8E 4E CB B3 ..../........N..
    1A 7D 02 FA B2 A7 EC 10 B7 18 67 BE 62 7E C2 DB .}........g.b~..
    00 5F AC F0 DD 82 AB C4 08 BC 56 E2 BF 92 85 32 ._........V....2
    0F 6F 2B 94 CA 06 B5 0D AA 8B 97 F2 20 EC 99 BC .o+......... ...
    0E F5 83 A4 1B A2 6B 06 91 5F DE 20 E2 00 ......k.._. ..
    (85556 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 11 F8 88 39 8B A6 D0 14 72 03 F0 14 73 ......9....r...s
    4F EE CF 0D FF E4 3A DB 07 8C B1 21 C7 C4 1A 98 O.....:....!....
    64 B5 71 BD B5 97 78 C8 56 7C 1A 96 F3 D8 59 A5 d.q...x.V|....Y.
    13 64 2A F9 F5 A4 86 96 FC C9 78 A8 F7 41 B9 35 .d*.......x..A.5
    05 DB 8C 63 B3 5E A4 23 03 E8 FE 9C 31 1F 5F 30 ...c.^.#....1._0
    00 67 A4 7B 3E F4 09 C1 6C B6 89 CB 96 1C 0C FF .g.{>...l.......
    8A 58 E6 37 41 B7 B9 A4 B3 52 52 A8 E9 07 DE 4F .X.7A....RR....O
    5D 3F 65 C0 00 1F B0 20 A0 A1 02 EF 7B 24 89 C7 ]?e.... ....{$..
    8A 43 03 94 7C C6 03 EE 5A CA 80 FF 81 E8 EF 99 .C..|...Z.......
    04 C5 F2 90 61 0F 09 37 B4 61 FD 68 23 93 94 79 ....a..7.a.h#..y
    61 1D 6C 49 F4 C0 8C 56 7E AC 1B F8 1F A7 FE B1 a.lI...V~.......
    A2 E6 F9 24 1E FE 06 FD A0 80 17 7D DD 1B 3E 41 ...$.......}..>A
    E5 85 5E 57 EB B5 DF E0 D5 E3 D1 9A 19 C7 67 76 ..^W..........gv
    0D 90 FC 16 A1 5C A4 A1 09 41 32 F5 97 A5 B2 65 .....\...A2....e
    8A 42 EF AA 18 8F 46 A1 AA 1D A8 13 D4 F0 11 4B .B....F........K
    08 03 88 BE FC 02 86 FD 35 F3 01 CE 61 00 ........5...a.
    (83512 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 12 F8 08 4E E8 A1 2B A6 0B 7D 56 B8 67 ......N..+..}V.g
    F1 BA B1 6A 23 53 D2 9E 57 2E 21 89 C1 58 6A C6 ...j#S..W.!..Xj.
    91 06 B8 7E 63 E4 EF 5C 2E 7B 24 A6 4F BA 80 4E ...~c..\.{$.O..N
    D3 2D 66 36 4C 91 37 4E 55 41 4E 9F 9B AA BB 77 .-f6L.7NUAN....w
    1C 98 C5 43 B0 19 EB 29 7E 07 1C 7E BE 38 52 F3 ...C...)~..~.8R.
    46 9E 91 F5 06 56 72 74 26 11 56 2B 13 50 82 FA F....Vrt&.V+.P..
    E1 DC 26 8F 3A 73 E9 22 BC F8 CA 9E 8A 4E 0B 7C ..&.:s.".....N.|
    95 36 0C 4F 95 3C 4C 5B C5 7A FE 5E 26 13 53 9D .6.O.<L[.z.^&.S.
    C4 1B ED 31 DF 07 25 8F DB 3F 23 AD F8 C2 16 0B ...1..%..?#.....
    95 A0 1E 89 C9 DF F9 FB 56 5B 28 78 3B 3C 25 7D ........V[(x;<%}
    3C 47 74 2A 8D DF 70 A4 D2 5F 17 3F 6B 3C 4D 2D <Gt*..p.._.?k<M-
    A2 A0 41 07 21 EA 86 E7 4F 0E 5A 80 EE 74 99 3C ..A.!...O.Z..t.<
    6B 9C 6A 5C 2F 9D 45 00 3A 77 36 9F 53 A4 17 BC k.j\/.E.:w6.S...
    E1 E5 DA 5E 46 1D 3F C1 7E 72 09 33 6F A4 AF 9A ...^F.?.~r.3o...
    90 0E 38 2C 88 6C 82 97 59 B9 72 24 15 6F 8B EE ..8,.l..Y.r$.o..
    28 04 A3 22 9E CE D6 04 44 63 63 D1 85 00 (.."....Dcc...
    (85143 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 13 F8 46 66 6D B3 81 0D 4E 5C D6 C2 74 .....Ffm...N\..t
    9B B6 02 4F 3F F3 8D 7F D3 30 C0 FC 8D 5D 41 13 ...O?....0...]A.
    B3 EE 03 BE 49 20 D9 1E AE A2 06 63 2A 06 BA 71 ....I .....c*..q
    96 B2 C6 95 39 F5 C5 5A AE E4 96 5C BC 39 81 67 ....9..Z...\.9.g
    18 06 14 2B 1D 5F 25 AA B1 E1 57 0A 3C 5E EF 4F ...+._%...W.<^.O
    28 E6 8B B4 BB E4 57 9B E5 C1 C4 1A D7 91 BC DC (.....W.........
    BE 89 6D 40 40 2F 4C 29 9F 00 F3 DC 10 E3 4D 4D ..m@@/L)......MM
    36 0E 8C F2 98 21 3C 9E 21 B8 1A 30 35 F8 64 57 6....!<.!..05.dW
    FA 32 0D A7 74 2C 65 CA B9 A6 C2 59 F4 59 BD F6 .2..t,e....Y.Y..
    5B 73 48 11 38 92 5B 65 75 95 7F 7A 1C 77 B9 25 [sH.8.[eu..z.w.%
    5E 2E 47 BF 9B A6 01 9B 82 FB 69 BB CF CB FB 4C ^.G.......i....L
    23 75 B2 3B 37 F7 9F 3C 0F E2 88 ED 84 58 C9 3D #u.;7..<.....X.=
    32 8E 33 99 72 D2 46 E8 F1 EC 77 92 12 46 5C F6 2.3.r.F...w..F\.
    E8 53 A3 09 EF 7F 94 8F 18 D6 94 88 A3 E8 AB DA .S..............
    0A 55 66 24 0D 90 A5 FA CB 8A 09 2C 68 1A 02 AF .Uf$.......,h...
    9C C7 74 EE 4A 4E 18 C8 82 0F 37 5A 8A 00 ..t.JN....7Z..
    (86176 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 14 F8 00 9B 3A DE 2E 24 20 AA DD FE 2D .......:..$ ...-
    0A 3D 52 76 0B 9E FE C9 98 CA 8B 92 9F 71 93 47 .=Rv.........q.G
    A4 F1 BD 93 2E 9E 80 3D D5 D4 07 D1 09 59 F4 DD .......=.....Y..
    99 07 A1 A0 64 1E F0 40 AB 3A 45 C4 A2 69 84 9E ....d..@.:E..i..
    A4 28 58 27 A9 7D CF 2C FE FF 29 20 89 82 1F 47 .(X'.}.,..) ...G
    46 5D FD A1 DF DB C3 67 2C 28 CB A6 2C C4 C3 59 F].....g,(..,..Y
    19 5D 16 F4 34 46 A2 74 B1 F7 51 63 F4 75 65 EE .]..4F.t..Qc.ue.
    3F DF F9 D4 09 33 81 C0 31 96 40 E4 2B 2C 90 62 ?....3..1.@.+,.b
    AC 8A 98 31 90 85 6D 93 28 05 0D 7F F8 F9 2C 3F ...1..m.(.....,?
    C8 9D C2 D6 01 4A 04 CB 04 47 02 80 0D 9E EB 00 .....J...G......
    D9 32 AD F5 23 D7 CE A8 05 2C 53 40 63 7D A4 21 .2..#....,S@c}.!
    59 DC F7 26 6E DC 30 95 60 F8 7D B0 79 02 30 75 Y..&n.0.`.}.y.0u
    B7 AD 99 99 6F 92 CC C2 83 76 7D A0 A5 2F 07 F4 ....o....v}../..
    93 22 89 33 48 59 DF 1D 51 5E FE 44 1D BF DB F5 .".3HY..Q^.D....
    8F 00 1B 98 4A D2 43 EB 43 C4 D5 46 D1 A3 CE F0 ....J.C.C..F....
    CC 75 BC AE CB 92 4B AF 5D 2E 2D 36 33 00 .u....K.].-63.
    (84277 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 15 F8 09 48 5E 68 70 DB 40 55 E9 9A 02 ......H^hp.@U...
    67 58 B4 C0 EF 0D 65 58 AD BE 1F 27 97 69 19 26 gX....eX...'.i.&
    E3 31 4F F2 60 99 BD E3 73 01 D9 DA B6 F7 48 ED .1O.`...s.....H.
    6C BE D8 8A 25 4B 7F 32 18 E1 B8 31 62 57 F0 08 l...%K.2...1bW..
    BA 03 A7 C8 72 FF 65 40 28 69 6F 25 4A 48 0A 45 ....r.e@(io%JH.E
    0D 5F 7A EE 1D 1E FB 5C 4C E2 56 5C 4E FD FA 68 ._z....\L.V\N..h
    70 ED 47 4F C3 43 1E CC 20 9A 77 96 B5 45 A7 6B p.GO.C.. .w..E.k
    14 3D 16 63 E2 29 3F BB 78 97 FE F6 44 0A 06 42 .=.c.)?.x...D..B
    B6 D0 D6 F0 87 7A F4 BD 6E 53 B1 4C 97 D2 96 EF .....z..nS.L....
    99 B7 AA 85 0D CD AC E9 EB 67 67 98 D1 8F 3F 4A .........gg...?J
    70 A2 09 AF A8 65 0E A3 E9 12 C1 29 46 8F F6 DF p....e.....)F...
    D6 E4 FA D4 DA 69 2A B8 E0 D3 B9 47 D9 86 03 45 .....i*....G...E
    A5 BB 4D D0 A5 7F 9B 95 2F 64 AF 6F C1 31 A6 1D ..M...../d.o.1..
    4E 96 E3 E5 64 B6 19 52 E4 E9 B8 9B F0 FC 48 28 N...d..R......H(
    B9 E6 1C 36 DC 27 64 48 93 37 08 F9 4B 2A 24 BB ...6.'dH.7..K*$.
    D6 D4 7E C1 DD 7B D7 DB 1A 01 5E 42 2F 00 ..~..{....^B/.
    (86313 usec)
    <= 00 90 00 ...
    Status: No Error
    => 84 E8 00 16 F8 62 10 2B 4A 91 E4 5E C7

  • Put Key order

    Hello eveyone,
    I've sucessfully changed the KMAC, KENC & KEK keys through GPshell, but there is something i do not understand when it constructs the APDU.
    *[1]* Using GPshell, and changing only the KMAC key it changes all three keys (I just wanted to change KMAC) I was unable to find in the GP specification, nor in GP Key Management System
    documents why this happens.
    The command used is:
    #put_sc_key -keyver 4 -newkeyver 5 -mac_key 414142434445464748494A4B4C4D4E4E
    The execution of this command is:
    CLA ins          P1(Kver)          P2(Kid)          LC
    80      D8          04               81     43
    N.V. number
    05
    Ktype     Kle          New Key                                                            L.CValue     K.V
    80          10          EF BE E6 C6 D9 9D 7B 70 BD E9 D7 E9 27 F0 20 AF      03               8B AF 47
    80          10          B3 CD A7 9E AF DA 24 14 CC 32 1B 9C 7A 91 16 CE      03               8B AF 47     
    80          10          EF BE E6 C6 D9 9D 7B 70 BD E9 D7 E9 27 F0 20 AF      03               8B AF 47
    As can be seen, it sets an unknown (DES+CBC) key on the first and third place, and in the second the actual KMAC.
    *[2]* When setting in GPshell only "-enc_key"
    It changes the two first keys and sets the third key to an unknown (DES+CBC) key.
    80 D8 06 81 43 07
    8010 B3CDA79EAFDA2414C81268ADFF4D471903AE7589
    8010 B3CDA79EAFDA2414C81268ADFF4D471903AE7589
    8010 EFBEE6C6D99D7B70BDE9D7E927F020AF038BAF47
    00
    *[3]* Finally, the same operation in GPshell with only "-kek_key" it changes all three keys to the same value.
    80 D8 07 81 43 08
    8010 F4A8CAA63DD4F371AA0A1E5903EE51FB03AE7589
    8010 F4A8CAA63DD4F371AA0A1E5903EE51FB03AE7589
    8010 F4A8CAA63DD4F37190D37089B5FB024903AE7589
    00
    Someone knows where this behavior is explained in detail? it doesn't make sense to me.
    Thanks,

    This is most likely an issue with the GPShell code. The GP card spec says you can specify a key version and key ID in the PUT KEY command. As a workaround you can try to set the other two keys to the current value.
    - Shane

  • Put-Key Command Fails with 6982

    Hi,
    I am using a JCOP 2.4.1 R3 card. And i am trying to send PUT-KEY command through APDU. But i get 6982 as a response from the card.
    Initial Key: 404142434445464748494A4B4C4D4E4F
    New Key: 101112131415161718191A1B1C1D1E1F
    IV: 0000000000000000
    ENCSessionKey - 3DES_CBC("0182" + "0000" + "000000000000000000000000") with inital Key
    macSessionKey - 3DES_CBC("0101" + "0000" + "000000000000000000000000") with inital Key
    IV: 0000000000000000
    encrypted Key  - 3DES_CBC(new key) with ENCSessionKey
    KeyCheckValue - 3DES_CBC("0000000000000000") with new key
    PutKey APDU = "80D8008143 + 01 + 8010 + 730CD82CAC6724E7CF9CA4E822934B7F + 03 + 3E1CFE + 8010 + 730CD82CAC6724E7CF9CA4E822934B7F + 03 + 3E1CFE + 8010 + 730CD82CAC6724E7CF9CA4E822934B7F + 03 + 3E1CFE"
    Response from card : 6982
    Can someone tell me where i am going wrong? And what i am missing to do?

    Hi,
    I found the issue. I was using 3DES_CBC instead of using 3DES_ECB_NoPadding.

  • Put Key

    I got error 0x9484 (algorithm not supported) when I tend to add a new DES key to card.
    Here is my command:
    80 D8 00 01 0C 06 80 08 31 32 33 34 35 36 37 38 00
    Key Version=0x06
    Key Id=0x01
    Key Type=DES
    Key length=8
    Key="12345678"
    Key check value length=0x00
    I got -> 00 94 84

    Think !
    If you get an algorithm not supported then it's NOT supported. APDU commands have nothing to do with an algorithm being supported or not. It's what your applet is trying to do and what's supported by the vendor.
    There are steps you must do before you attempt a Put Key. It's all documented.
    Read the GP manuals, and read the reference manuals that come from the vendor that detail what's on the cards.

  • I need help with Creating Key Pairs

    Hello,
    I need help with Creating Key Pairs, I generate key pais with aba provider, but the keys generated are not base 64.
    the class is :
    import java.io.*;
    import java.math.BigInteger;
    import java.security.*;
    import java.security.spec.*;
    import java.security.interfaces.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import au.net.aba.crypto.provider.ABAProvider;
    class CreateKeyPairs {
    private static KeyPair keyPair;
    private static KeyPairGenerator pairGenerator;
    private static PrivateKey privateKey;
    private static PublicKey publicKey;
    public static void main(String[] args) throws Exception {
    if (args.length != 2) {
    System.out.println("Usage: java CreateKeyParis public_key_file_name privete_key_file_name");
    return;
    createKeys();
    saveKey(args[0],publicKey);
    saveKey(args[1],privateKey);
    private static void createKeys() throws Exception {
    Security.addProvider(new ABAProvider());
    pairGenerator = KeyPairGenerator.getInstance("RSA","ABA");
    pairGenerator.initialize(1024, new SecureRandom());
    keyPair = pairGenerator.generateKeyPair();
    privateKey = keyPair.getPrivate();
    publicKey = keyPair.getPublic();
    private synchronized static void saveKey(String filename,PrivateKey key) throws Exception {
    ObjectOutputStream out= new ObjectOutputStream(new FileOutputStream(filename));
    out.writeObject(key);
    out.close();
    private synchronized static void saveKey(String filename,PublicKey key) throws Exception {
    ObjectOutputStream out= new ObjectOutputStream( new FileOutputStream(filename));
    out.writeObject(key);
    out.close();
    the public key is:
    �� sr com.sun.rsajca.JSA_RSAPublicKeyrC��� xr com.sun.rsajca.JS_PublicKey~5< ~��% L thePublicKeyt Lcom/sun/rsasign/p;xpsr com.sun.rsasign.anm����9�[ [ at [B[ bq ~ xr com.sun.rsasign.p��(!g�� L at Ljava/lang/String;[ bt [Ljava/lang/String;xr com.sun.rsasign.c�"dyU�|  xpt Javaur [Ljava.lang.String;��V��{G  xp   q ~ ur [B���T�  xp   ��ccR}o���[!#I����lo������
    ����^"`8�|���Z>������&
    d ����"B��
    ^5���a����jw9�����D���D�)�*3/h��7�|��I�d�$�4f�8_�|���yuq ~
    How i can generated the key pairs in base 64 or binary????
    Thanxs for help me
    Luis Navarro Nu�ez
    Santiago.
    Chile.
    South America.

    I don't use ABA but BouncyCastle
    this could help you :
    try
    java.security.Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    java.security.KeyPairGenerator kg = java.security.KeyPairGenerator.getInstance("RSA","BC");
    java.security.KeyPair kp = kg.generateKeyPair();
    java.security.Key pub = kp.getPublic();
    java.security.Key pri = kp.getPrivate();
    System.out.println("pub: " + pub);
    System.out.println("pri: " + pri);
    byte[] pub_e = pub.getEncoded();
    byte[] pri_e = pri.getEncoded();
    java.io.PrintWriter o;
    java.io.DataInputStream i;
    java.io.File f;
    o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pub64"));
    o.println(new sun.misc.BASE64Encoder().encode(pub_e));
    o.close();
    o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pri64"));
    o.println(new sun.misc.BASE64Encoder().encode(pri_e));
    o.close();
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.FileReader("d:/pub64"));
    StringBuffer keyBase64 = new StringBuffer();
    String line = br.readLine ();
    while(line != null)
    keyBase64.append (line);
    line = br.readLine ();
    byte [] pubBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
    br = new java.io.BufferedReader(new java.io.FileReader("d:/pri64"));
    keyBase64 = new StringBuffer();
    line = br.readLine ();
    while(line != null)
    keyBase64.append (line);
    line = br.readLine ();
    byte [] priBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
    java.security.KeyFactory kf = java.security.KeyFactory.getInstance("RSA","BC");
    java.security.Key pubKey = kf.generatePublic(new java.security.spec.X509EncodedKeySpec(pubBytes));
    System.out.println("pub: " + pubKey);
    java.security.Key priKey = kf.generatePrivate(new java.security.spec.PKCS8EncodedKeySpec(priBytes));
    System.out.println("pri: " + priKey);
    catch(Exception e)
    e.printStackTrace ();
    }

  • Need some help with putting a folder in users directory

    I'm not sure how to do this, but what I want to do is put this file in C:/My Documents, but I need to be able to verify that C://My Documents exists, if not put it in C:/Program Files.
    Can any one help me out?
    try {
                        String[] contactArray = parseDatFile(fc.getSelectedFile());
                        Document document = createXMLDocument(contactArray);
                        saveToXMLFile(
                        document,
                        new File(
                        "C:/Program Files/xxx/",// looks for directory for list
                        "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
                    } catch (Exception exc) {
                        File f = new File("C:/Program Files/xxx/");// setting directory for list if not there
                        boolean yes = true;
                        yes = f.mkdir();// creating directory
                        try {
                            String[] contactArray = parseDatFile(fc.getSelectedFile());
                            Document document = createXMLDocument(contactArray);
                            saveToXMLFile(
                            document,
                            new File(
                            "C:/Program Files/xxx/",// used only if the directory didn't exist
                            "xxxxxxxxxxxxxxxxxxxxxxx"));

    Need some help with putting a folder in users directoryI recomend using System.getProperty( "user.home" ) not a hard-coded value.
    This will use the users home folder ( C:\My Documents ) on Win9X (I guess), C:\Documents and Settings\<current user> on Win2K +, and ~ on Unix-a-likes.

  • I forgot secret questions to enter the account I need to help me put back on the questions and answers them  Your brother Mohammed Al-Ghamdi

    I forgot secret questions to enter the account But I know the PIN number to my account I need to help me put back on the questions and answers them
    Your brother Mohammed Al-Ghamdi

    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
      Or Email Here  >  Apple  Support  iTunes Store  Contact
    NOTE:
    It is not wise to post personal information on a Public forum. I have asked the Hosts to remove your Account Details and Phone Number.

  • Help to put logic in a specific Order by clause

    Suppose in the employee table 2 fields are available.
    1. Name, 2. Name_flag.
    Furter the structure is like,
    NAME     NAME_FLAG
    SMITH     4
    CLARK     3
    JONES     4
    BLAKE     2
    KING     1
    SCOTT     3
    NICK     2
    RICKY     2
    I want to diplay the names in order to name_flag's order in a specific sequence like 2,4,1,3. As shown below.
    NAME     NAME_FLAG
    BLAKE     2
    NICK     2
    RICKY     2
    JONES     4
    SMITH     4
    KING     1
    CLARK     3
    SCOTT     3
    Kindly help to put a logic in the query.

    ORDER BY DECODE(NAME_FLAG, 2, 1,
                               4,2,
                               1,3,
                               2,4,
                               5)

Maybe you are looking for