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.

Similar Messages

  • 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 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

  • 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.

  • Mapping problem with compressed key update record

    Hi, could you please advise?
    I'm getting the following problem:
    About a week ago replicat abened with "Error in mapping" error. I found in discard file some record looking like:
    filed1 = NULL
    field2 =
    field3 =
    field4 =
    field5 =
    datefield = -04-09 00:00:00
    field6 =
    field8 =
    field9 = NULL
    field10 =
    Where filed9 = @GETENV("GGHEADER", "COMMITTIMESTAM"), field10 = = @GETENV("GGHEADER", "COMMITTIMESTAM"), others are table fields mapped by USEDEFAULTS
    So I got Mapping problem with compressed key update record at 2012-06-01 15:44
    I guess I need to mention that extract failed in 5 minuts before it with: VAM function VAMRead returned unexpected result: error 600 - VAM Client Report <[CFileInfo::Read] Timeout expired after 10 retries with 1000 ms delay, waiting to read transaction log or backup files. To increase the number of retries, use SETENV (GGS_CacheRetryCount = n) in Extract parameter file. To control retry delay time, use SETENV (GGS_CacheRetryDelay = n). handle: 0000000000000398 ReadFile GetLastError:997 Wait GetLastError:997>.
    I don't know if it has ther same source as data corruption, could you tell me if it is?
    Well, I created new extract, starting 2012-06-01 15:30 to check if there was something with extract at the time, but got the same error.
    If I run extract beging at 15:52 it starts and works.
    But well, I got another one today. Data didn't look that bad, but yet one column came with null value:( And I'm using it as a key column, so I got Mapping problem with compressed key update record again:(
    I'm replicating from SQL Server 2008 to Oracle 11g.
    I'm actually using NOCOMPRESSUPDATES in Extract.
    CDC is enabled for all tables replicated. The only thing is that it is enabled not by ADD TRANDATA command, but by SQL Server sys.sp_cdc_enable_table, does it matter?
    Could you please advise why does it happen?

    Well, the problem begins somewhere in extract or before extract, may be in transaction log, I don't know:(
    Here are extract parameters:
    EXTRACT ETCHECK
    TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT
    SOURCEDB TEST, USERID **, PASSWORD *****
    exttrail ./dirdat/ec
    NOCOMPRESSUPDATES
    NOCOMPRESSDELETES
    TABLE tst.table1, COLS (field1, field2, field3, field4, field5, field6, field7, field8 );
    TABLE tst.table2, COLS (field1, field2, field3, field4 );
    Data pump:
    EXTRACT DTCHECK
    SOURCEDB TEST, USERID **, PASSWORD *****
    RMTHOST ***, MGRPORT 7809
    RMTTRAIL ./dirdat/dc
    TABLE tst.table1;
    TABLE tst.table2;
    Replicat:
    REPLICAT rtcheck
    USERID tst, PASSWORD ***
    DISCARDFILE ./dirrpt/rtcheck.txt, PURGE
    SOURCEDEFS ./dirdef/sourcei.def
    HANDLECOLLISIONS
    UPDATEDELETES
    MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
    MAP dbo.TPROCPERIODCONFIRMSTAV, TARGET R_019_000001.TPROCPERIODCONFIRMSTAV, COLMAP (USEDEFAULTS , field5 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed6= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (filed1, field2, field3);
    Rpt file for replicat:
    Oracle GoldenGate Delivery for Oracle
    Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
    Windows x64 (optimized), Oracle 11g on Apr 22 2011 00:34:07
    Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
    Starting at 2012-06-05 12:49:38
    Operating System Version:
    Microsoft Windows Server 2008 R2 , on x64
    Version 6.1 (Build 7601: Service Pack 1)
    Process id: 2264
    Description:
    ** Running with the following parameters **
    REPLICAT rtcheck
    USERID tst, PASSWORD ***
    DISCARDFILE ./dirrpt/rtcheck.txt, PURGE
    SOURCEDEFS ./dirdef/sourcei.def
    HANDLECOLLISIONS
    UPDATEDELETES
    MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
    MAP dbo.TPROCPERIODCONFIRMSTAV, TARGET R_019_000001.TPROCPERIODCONFIRMSTAV, COLMAP (USEDEFAULTS , field5 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed6= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (filed1, field2, field3);
    CACHEMGR virtual memory values (may have been adjusted)
    CACHEBUFFERSIZE: 64K
    CACHESIZE: 512M
    CACHEBUFFERSIZE (soft max): 4M
    CACHEPAGEOUTSIZE (normal): 4M
    PROCESS VM AVAIL FROM OS (min): 1G
    CACHESIZEMAX (strict force to disk): 881M
    Database Version:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    Database Language and Character Set:
    NLS_LANG = "AMERICAN_AMERICA.CL8MSWIN1251"
    NLS_LANGUAGE = "AMERICAN"
    NLS_TERRITORY = "AMERICA"
    NLS_CHARACTERSET = "CL8MSWIN1251"
    For further information on character set settings, please refer to user manual.
    ** Run Time Messages **
    Opened trail file ./dirdat/dc000000 at 2012-06-05 12:49:39
    2012-06-05 12:58:14 INFO OGG-01020 Processed extract process RESTART_ABEND record at seq 0, rba 925 (aborted 0 records).
    MAP resolved (entry tst.table1):
    MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
    2012-06-05 12:58:14 WARNING OGG-00869 No unique key is defined for table table1. All viable columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
    Using the following default columns with matching names:
    field1=field1, field2=field2, field3=field3, field4=field4, field5=field5, field6=field6, field7=field7, field8=field8
    Using the following key columns for target table R_019_000001.TCALCULATE: field3.
    2012-06-05 12:58:14 WARNING OGG-01431 Aborted grouped transaction on 'tst.table1', Mapping error.
    2012-06-05 12:58:14 WARNING OGG-01003 Repositioning to rba 987 in seqno 0.
    2012-06-05 12:58:14 WARNING OGG-01151 Error mapping from tst.table1 to tst.table1.
    2012-06-05 12:58:14 WARNING OGG-01003 Repositioning to rba 987 in seqno 0.
    Source Context :
    SourceModule : [er.main]
    SourceID : [er/rep.c]
    SourceFunction : [take_rep_err_action]
    SourceLine : [16064]
    ThreadBacktrace : [8] elements
    : [C:\App\OGG\replicat.exe(ERCALLBACK+0x143034) [0x00000001402192B4]]
    : [C:\App\OGG\replicat.exe(ERCALLBACK+0x11dd44) [0x00000001401F3FC4]]
    : [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x000000014009F102]]
    : [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x00000001400B29CC]]
    : [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x00000001400B8887]]
    : [C:\App\OGG\replicat.exe(releaseCProcessManagerInstance+0x25250) [0x000000014028F200]]
    : [C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0xd) [0x000000007720652D]]
    : [C:\Windows\SYSTEM32\ntdll.dll(RtlUserThreadStart+0x21) [0x000000007733C521]]
    2012-06-05 12:58:14 ERROR OGG-01296 Error mapping from tst.table1 to tst.table1.
    * ** Run Time Statistics ** *
    Last record for the last committed transaction is the following:
    Trail name : ./dirdat/dc000000
    Hdr-Ind : E (x45) Partition : . (x04)
    UndoFlag : . (x00) BeforeAfter: A (x41)
    RecLength : 249 (x00f9) IO Time : 2012-06-01 15:48:56.285333
    IOType : 115 (x73) OrigNode : 255 (xff)
    TransInd : . (x03) FormatType : R (x52)
    SyskeyLen : 0 (x00) Incomplete : . (x00)
    AuditRBA : 44 AuditPos : 71176199289771
    Continued : N (x00) RecCount : 1 (x01)
    2012-06-01 15:48:56.285333 GGSKeyFieldComp Len 249 RBA 987
    Name: DBO.TCALCULATE
    Reading ./dirdat/dc000000, current RBA 987, 0 records
    Report at 2012-06-05 12:58:14 (activity since 2012-06-05 12:58:14)
    From Table tst.table1 to tst.table1:
    # inserts: 0
    # updates: 0
    # deletes: 0
    # discards: 1
    Last log location read:
    FILE: ./dirdat/dc000000
    SEQNO: 0
    RBA: 987
    TIMESTAMP: 2012-06-01 15:48:56.285333
    EOF: NO
    READERR: 0
    2012-06-05 12:58:14 ERROR OGG-01668 PROCESS ABENDING.
    Discard file:
    Oracle GoldenGate Delivery for Oracle process started, group RTCHECK discard file opened: 2012-06-05 12:49:39
    Key column filed3 (0) is missing from update on table tst.table1
    Missing 1 key columns in update for table tst.table1.
    Current time: 2012-06-05 12:58:14
    Discarded record from action ABEND on error 0
    Aborting transaction on ./dirdat/dc beginning at seqno 0 rba 987
    error at seqno 0 rba 987
    Problem replicating tst.table1 to tst.table1
    Mapping problem with compressed key update record (target format)...
    filed1 = NULL
    field2 =
    field3 =
    field4 =
    field5 =
    datefield = -04-09 00:00:00
    field6 =
    field8 =
    field9 = NULL
    field10 =
    Process Abending : 2012-06-05 12:58:14

  • 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 Fail.(CLA=0x84)

    Hello.
    I have a problem to transmit Put Key Command.
    I followed 'GP2.1.1 E4.4' to create a C-Mac using S-Mac Key but the result is failed.
    I think there is something wrong in my calculating...
    So, could you explain me how to create C-Mac of Put key Command ?
    ---------my log.------------
    *Base Key
    DES-ECB/
    404142434445464748494a4b4c4d4e4f
    1/2/DES-ECB/
    404142434445464748494a4b4c4d4e4f
    1/3/DES-ECB/
    404142434445464748494a4b4c4d4e4f
    *New Key
    DES-ECB/
    404142434445464748494a4b4c4d4e4f
    2/2/DES-ECB/
    404142434445464748494a4b4c4d4e4f
    2/3/DES-ECB/
    404142434445464748494a4b4c4d4e4f
    => 80 50 00 00 08 FD3FC82EB5403371
    <= 611C
    => 00 C0 00 00 1C
    <= 00001104000012A9089A0102002B6C04D3C7DDE8F5569C833019DDCE9000
    => 84 82 01 00 10 DDE15E5AE73CA146CC15FC59AC11787A
    <= 9000
    => 84 D8 01 81 4B 0180101F2DE4D6C8509DFF2F8AC23D8370A6A6038BAF4780101F2DE4D6C8509DFF2F8AC23D8370A6A6038BAF4780101F2DE4D6C8509DFF2F8AC23D8370A6A6038BAF479F353241203729B0
    <= 6982
    ---sample log(success)----
    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 D3 B3 00 7C 8B D1 5E 41
    <= 00 00 70 15 00 05 94 91 11 07 01 02 00 01 6C 7F FC 11 3F B9 A9 76 C3 F9 AA 34 9D 46
    cm> ext-auth mac
    => 84 82 01 00 10 951724B48FD378858B1ED7
    D1 C5 2D 7E 45
    <= 90 00 ..
    Status: No Error
    cm> set-key 2/1/
    DES-ECB/
    ffeeddccbbaa99887766554433221100
    2/2/DES-ECB/
    ffeeddccbbaa99887766554433221100
    2/3/DES-ECB/
    ffeeddccbbaa99887766554433221100
    cm> put-keyset
    => 84 D8 00 81 4B 02 80 10 AE 25 9D AE 8A 7F 23 37 7F CF AD 42 5C B8 C3 EC 03 F3 9C 09 80 10 AE 25 9D AE 8A 7F 23 37 7F CF AD 42 5C B8 C3 EC 03 F3 9C 09 80 10 AE 25 9D AE 8A 7F 23 37 7F CF AD 42 5C B8 C3 EC 03 F3 9C 09 69 54 47 5D 25 8A AA 36
    <= 02 F3 9C 09 F3 9C 09 F3 9C 09 90 00
    Status: No Error
    Edited by: 970753 on 2012. 11. 12 오전 3:13

    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

  • Mapping problem with compressed key update record (target format)...

    Hi Guys,
    Getting below error while replication from Source to target. Source table is having NOT NULL Column, but on target replicat process giving error about some NULL value ??
    How to overcome this issue, any idea...
    2011-08-04 10:35:04 INFO OGG-00995 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: REPLICAT RMASTRK starting.
    2011-08-04 10:35:05 INFO OGG-00996 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: REPLICAT RMASTRK started.
    2011-08-04 10:35:06 WARNING OGG-00869 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: OCI Error ORA-01407: cannot update ("INFRA"."CUST"."CODE") to NULL (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"DP_ID" = :a3,"EXCHNG_CODE" = :a4,"ORD_QTY" = :a5,"ORD_PRICE" = :a6,"CODE" = :a7,"MKRT_CODE" = :a8,"CHANN>.
    2011-08-04 10:35:06 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Aborted grouped transaction on 'INFRA.CUST', Database error 1407 (ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL).
    2011-08-04 10:35:06 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Repositioning to rba 44132192 in seqno 68708.
    2011-08-04 10:35:06 *WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: SQL error 1407 mapping INFRA.CUST to INFRA.CUST OCI Error ORA-01407:* *cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"DP_ID" = :a3,"EXCHNG_CODE"=:a4,"ORD_QTY"*
    *= :a5,"ORD_PRICE" = :a6,"SCRP_CODE" = :a7,"MKRT_CODE" = :a8,"CHANN>.*
    2011-08-04 10:35:06 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Repositioning to rba 44132192 in seqno 68708.
    2011-08-04 10:35:06 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: Error mapping from INFRA.CUST to INFRA.CUST.
    2011-08-04 10:35:06 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rmastrk.prm: PROCESS ABENDING.
    Oracle GoldenGate Delivery for Oracle process started, group RMASTRK discard file opened: 2011-08-04 10:35:05
    Current time: 2011-08-04 10:35:06
    Discarded record from action ABEND on error 1407
    OCI Error ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL
    (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"MKRT_CODE" = :a8,"CHANN>
    Aborting transaction on ./dirdat/pm beginning at seqno 68708 rba 44132192
    error at seqno 68708 rba 44132192
    Problem replicating INFRA.CUST to INFRA.CUST
    *Mapping problem with compressed key update record (target format)...*
    ORD_QTY = 500
    ORD_PRICE = 37430
    SCRP_CODE =
    MKRT_CODE = N
    Oracle GoldenGate Delivery for Oracle process started, group RMASTRK discard file opened: 2011-08-
    04 10:35:05
    Current time: 2011-08-04 10:35:06
    Discarded record from action ABEND on error 1407
    OCI Error ORA-01407: cannot update ("INFRA"."CUST"."SCRP_CODE") to NULL
    (status = 1407), SQL <UPDATE "INFRA"."CUST" SET "ORD_ID" = :a2,"MKRT_CODE" = :a8,"CHANN>
    Aborting transaction on ./dirdat/pm beginning at seqno 68708 rba 44132192
    error at seqno 68708 rba 44132192
    Problem replicating INFRA.CUST to INFRA.CUST
    Mapping problem with compressed key update record (target format)...
    ORD_QTY = 500
    ORD_PRICE = 37430
    SCRP_CODE =
    MKRT_CODE = N
    Any inputs / help would be appreciated.
    Regards,
    Manish

    The SCRP_CODE column has a NOT NULL constraint. The ORA-01407 error is telling you that you cannot update or set a value for this column to null because of the constraint. This has absolutely nothing to do with an index. You can use a marker/sentinel value in lieu of using NULL. For a numeric field, where everything is positive, a negative value (-1) can be decoded as meaning null. For a character field, a code such as NA can represent NULL.
    This also has nothing to do (directly) with GoldenGate failing because of this error. The underlying SQL statement will fail everywhere, regardless of the tool or application. It is not a case of failing only in GoldenGate.

  • Problem with 'Edit Locally' command -- Due to IISProxy?

    Hi,
    We have a problem with 'Edit Locally' command since we are using Windows Authentication. Our architecture is:
    SAP EP 6.0 SP2 Patch 28 (Solaris)
    IIS Proxy (Windows 2003)
    The situation is:
    If we access to SAP Portal using old url (directly to Solaris) using form-based authentication we do not have any problem with 'edit locally' command.
    However, if we access to SAP Portal using IISProxy and Windows Authentication we get an 'Operation failed' error message.
         Java plug-in console shows the following message:
    cargar: clase com/sapportals/wcm/app/docapplet/DocApplet.class no encontrada.
    java.lang.ClassNotFoundException: com.sapportals.wcm.app.docapplet.DocApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Where is the problem? Is due to authentication method? SAP Portal or IISProxy configuration?
    Thanks,

    Thanks for your comment,
    Now, we have tested with version 1.5.0_01 plugin version but the result is the same: 'Operation failed'
    This is a very important topic to solve before installing Windows Authentication in a productive environment.
    Has anybody any solution?
    Damiá

  • Problems with the vba command sendkeys in Access 2013.

    Hi, I have problems with the vba command sendkeys in Access 2013.
    I use a text field (no control) in a form. By means of the VBA command SendKeys "+ {DELETE}", 1  I get the text in memory from the text field, then place (paste) the text in a Word document. The command line sendkeys
    is followed by moving the focus to a particular control. In Access 2003, which went smoothly. Now the sendkeys command is executed only in Access 2013 in the control that then receives focus. If the procedure ends with the sendkeys command then it works well.
    The procedure with the sendkeys command is activated by a button on a form.
    Who can help me?
    private user

    Hi H.Plmp,
    Based on the description, you want to call the sendkeys from a button.
    >> use a text field (no control) in a form. By means of the VBA command SendKeys "+ {DELETE}", 1  I get the text in memory from the text field<<
    What did you mean that you no control? And how did you get the text in memory from the text field? Also I am not able to understand the exact reason that the command doesn't works in Access 2013.
    And based on the test, sendkeys "+ {Delete}" works well for me when I set a focus for the textbox control. Here is th test code:
    Me.Controls("txtField1").SetFocus
    SendKeys "+ {DELETE}", 1
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Having problem with dead key in Leopard

    Hello. I'm having problem with dead key in Leopard.
    In Tiger it was working, but in Leopard dead key "'" doesn't work.
    In Tiger I could use OPTION key as well to get Latvian special characters (both worked - OPTION Key and dead-key), but in LEOPARD OPTION key is the only possibility to get these characters.
    How can I get dead key "'" working?
    I'm using Latvian language with Latvian keyboard layout.
    Here are images how it looked in Tiger:
    1) Before dead key is pressed:
    http://amerix.no-ip.org/tmp/1.tiff
    2) After dead key is pressed:
    http://amerix.no-ip.org/tmp/2.tiff

    ok, i got answer
    so - first problem was that ukelele didn't work in leopard (it wasn't possible to start new layout), but it was possible to edit Tom Gewecke posted layout.
    There it is possible to change every thing (dead-key as well).
    So I edited it and now i have layout where dead-key works -
    http://amerix.no-ip.org/tmp/LatvianT.keylayout
    Just do what Tom Gewecke said with this layout. It should work!

  • Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.

  • Problems with fuction keys for brightness

    i have laptop hp 15 r006tx Product number: G8D30PA#ACJ 
    i have problems with functions keys for brightness , actually it does't works i can't actually adjust brightness, please help me.....................

    OK...
    I was right.  You have no graphics driver installed for the Intel HD graphics adapter.
    I am very surprised you were able to install the nVidia driver because usually you get an error that states you need to install the Intel graphics driver first.
    Once you install this driver, the Microsoft Basic Display adapter should be replaced by an Intel HD graphics adapter and you should be able to adjust the screen brightness.
    Make sure you have installed this Intel chipset driver first and reboot.  If you have done this already, you can skip this step.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-130504-1&cc=us&dlc=en&lc=en...
    Next, install the Intel HD graphics driver and reboot.  This driver is for W8.1.  If you installed W8, you need a different graphics driver.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-130257-1&cc=in&dlc=en&lc=en...

  • Problem with a key figure restriction

    Hi,
    I have a problem with one key figure in report: in infocube, this key figure is aggrigated for all the profit centers (summation). In infocube, there is a value '150' for each profit centers (100 pieces) and in the report it is counting 150*100=15000. However, it shouldn't count the sum of all entries in the infocube but show only one value in the report which would be '150'.
    I think this should be possible to do but I just don't know how. Hope somebody is able to help me. Thanks in advance.

    Hi,
    If the values are same for all profit center then change the Profit center infoobject property in the query design to show the maximum values for the 'calculation result as' parameter
    Regards,
    Vishwa,
    Edited by: Vishwanath H.E on Sep 3, 2008 9:19 AM

  • I'M HAVING PROBLEM WITH FUNCTION KEY, I'M HAVING PROBLEM WITH FUNCTION KEY

    Hello everybody
    Recently i'm having problem with function key of iphone4, now its working assistive touch key board , between these days i had restored and update then it work for next 12 hour after that it again stoped..
    pls help me from this isssue,
    thanking you.

    There are no function keys on the iPhone.
    Please clearly state the issue that is occurring.

Maybe you are looking for