JCOP : can't set a new key set (put-key pb)

Hi!
I have this brand new cell phone out of the box , and I've been asked to install a javacard applet on it. I did it for other phones already, but I can't manage to install my app on this one.
For new phones I have to install a new key set. That's where it goes wrong with this phone.
And I don't want to try too hard, because I've been told that after too many tries, the card can be locked/damaged 0_0�
Here's what's happening :
cm> set-my-keys
/set-var KEYS-1
"1/1/DES-ECB/[mykey1] 1/2/DES-ECB/[mykey2] 1/3/DES-ECB/[mykey3] "
set-key ${KEYS-1}
put-keyset 1
Add new key set didn't work, try modify ... (I've masked the key values)
an after an "init" command, I get this message :
Status: Security condition not satisfied
jcshell: Error code: 6982 (Security condition not satisfied)
jcshell: Wrong response APDU: 6982(I also tried "init-update 255", didn't work neither)
Can somebody help me, and does anybody knows a good information source about these matters? (because I searched the net but there's few infos about JCOP out there)
Thanks for your help!

ah ok.
I can't read any answer from init update since I get an error message each time.
But here's another example of a pb I had on another phone ^_^ ... :
I've been given a NFC phone because one couldn't install anything on it by using a "home made" application.
I tried to install it via JCOP, but I just managed to install it manually (i.e.
set keys (script)
init
ext-auth
But the run configuration of the Eclipse+JCOP project failed to install it. I'm using key set number 1. In the config window of the Run I've been adviced to change the key set parameter of the init update command from 1 to 0 (in order to choose default, which normally should be the same) and then it works....
But I was wondering wheras the key set that were used was actually number 1 when I saw your answer : here's the init update response :
00 00 52 74 00 41 78 90 81 08 [u]FF 02 [/u]00 04 F6 4D   
BA 43 42 A1 5E 26 A2 C4 98 4E 3E C6 90 00 Then I looked for a website which could tell me how to know where to look at in this apdu ti see which keyset is used. I found
(http://www.informatik.uni-augsburg.de/lehrstuehle/swt/se/teaching/ss05/javasm05/downloads/Vorlesung6.pdf)
I underlined bytes that seem to be concerned. Can you tell me that it is indeed key set 255 (FF) that's used instead of keyset 1? Or Am I wrong, and in that case, can you correct me? :)
thanks

Similar Messages

  • Can you create a new folder and put several documents in it in Adobe?

    Can you create a new folder and put several documents in it in Adobe?

    Thank you for your help. Now I just want to expand on this a bit. To use the Applescript you have supplied me, how do I tell it to name the folder other than by date, and where to put it?
    Let me say, preferably, is it possible to make an action like this right-clickable? Instead of having to pick a script. Anything that slows this process down means I might as well do it all by hand. What I'd really love to do is this:
    Select a number of items. Right click to an action saying "create a new folder and put this items in it. Name the folder with the first item's name". Very simple and quick.
    Could this be accomplished? Through Automator? or something that can appear in the contextual menu? Folder actions?
    I'm just getting started with using these tools.

  • Account hacked, now can't get a new account set up

    a week ago, my Skype account was hacked and used for international calls.  I contacted Skype, chatted with a cust services rep and was advised to completely close down that account and create a new one.  He suggested I have the account removed from Skype, which I did, too.  
    I've been trying since then to create a new account.  I have successfully completed the screens to set up an account and each time the account has a name like "live:xxxx" where xxxx is my name.  When I log back in, this account does not work.  I've done this 3 times with 3 different emails, and cannot figure out what the actual login is.
    I thought it might be the password, so I clicked on 'forgot password' and I'm sent a token.  But when I try to use the token, I'm told it's not a valid token.
    I've tried to contact customer support and chat again, but I need a valid account to log into before I can reach the chat again.
    I've tried to find answers in the FAQ, but can't seem to find anyone with this same problem. 
    I put a note on twitter for @skype, but no one answered it.
    I use a Mac, although I don't think it's a Mac problem yet.  I can't log into the skype.com page to choose and pay for an account.
    You can sense my frustration...please advise where to go to get this fixed.

    try creating a regular skype account (it seems that the one you created used your live/microsoft credentials);
    https://login.skype.com/account/signup-form
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Can I write a new email + set the background 2 anything apart from white?

    This has been driving me mad all day (and last night!) and i am sure I am being really stupid!
    I want to write a new email to a group and I want the background to be a different colour other that white - I can see how i can change the colour of the font but not the background of the actual email.
    Please help as this is seriously doing my head in!!!
    Thanks

    Hi!
    Ok, it took me some time to find it out, but here is how it works:
    * Compose the message and make sure it's composed in Rich Text.
    * Click the Fonts button in the toolbar
    * Pick the 4th icon from the left (Document color)
    Here comes the buggy part:
    * Set the background color (it doesn't reflect in the message)
    * Save the message as Draft and close it
    * Re-open the message
    --> colored background
    Not the most intuitive solution…but it works.
    Rupert
    <Edited by Moderator>

  • Setting up new keyboard with function keys

    Hi,
    I just attached an older mac USB keyboard (from the G3 era) to my MacBook. It works fine, but I want to know how I can setup my function keys to change the volume, display brightness, etc. Any help is appreciated. Thanks!

    I still don't know how to program in volume and brightness keys, but it doesn't look like anyone else does so I'll mark this as answered.

  • ITunes how can i create a new file and put only some songs on it? I have a hard time understanding iTunes.

    I'm trying to make a new file for iTunes music. I'm really confused on how it all works. can anyone help

    Launch iTunes with the Shift key held down, create a new library, and import your music to it.
    (119794)

  • How can I create a new standard tab set?

    I have a tab set right now with one tab in it. How can I create a new tab set in an existing page with different tabs in it? Thanks.....

    Hi,
    Refer:
    http://proskudin.blogspot.com/2007/06/two-level-tabs.html
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • How can i use toArray to transfer Set to Array ?

    Dear All,
    Currently, I just can do it by the following code, is there any good idea ?
              Object[] object = set.toArray();
              int[] bb = new int[set.size()];
              for(int i=0; i<object.length; i++) {
                   Object object_aa = object;
                   bb[i] = Integer.parseInt(object_aa.toString());
    Thank you very much

    >      Object[] object = set.toArray();
         int[] bb = new int[set.size()];
         for(int i=0; i<object.length; i++) {
              Object object_aa = object;
              bb[i] = Integer.parseInt(object_aa.toString());
    What type of objects are in your set? Are they String or Integer? You will have to do what you showed--converting each object one by one (or just iterate through the Set using an Iterator instead of using toArray, since you won't need the Object [] when you are done).
    If they are String:
    String[] stringArray = (String []) set.toArray(new String[set.size()]);then you won't need to call toString.
    If they are Integer:
    Integer[] integerArray = (Integer[]) set.toArray(new Integer[set.size()]);Then use integerArray.intValue to fill in
    your int array.
    Or:
    int [] bb = new int[set.size()];
    for (Iterator iter = set.iterator(), i=0;
           iter.hasNext(); i++)
       bb[i] = Integer.parseInt(iter.next().toString());
    }where the middle parseInt and toString can be changed, depending on what type of object your set contains.
    Please use code tags, so that your code gets formatted as above (see buttons above posting box).

  • Mistakenly Set up New Users: How to Delete?

    Seems the guy who set up new MacBook set up 3 or 4 new Users, all called " ".
    Very confusing.
    But I can't make them go away. Help please!
    Ultimately I only want one User, and that's me (i.e. the administrator)
    Thanks in advance
    Steve

    This is unusual. When you get home just check to see if there really are more users than you expect, or if it is a problem with Finder.
    You may not be familiar with Terminal but my request is easy and safe.
    In the Applications folder, then the Utilities folder, find and open the Terminal. There will be a short message when you first open it.
    then type, or copy and paste into it
    ls -al /Users
    and press return. If you expect to have only one account you should see:
    drwxrwxr-t 6 root admin 204 18 Mar 23:28 .
    drwxrwxr-t 37 root admin 1258 1 Jul 22:09 ..
    -rw-rw-r-- 1 me admin 6148 22 Jun 20:08 .DS_Store
    drwxrwxrwt 8 root wheel 272 23 Apr 23:37 Shared
    drwxr-xr-x 17 me me 578 16 Jun 23:25 me
    The last entry me being your account name. You can close Terminal now.
    If that is the case these other accounts seem to be phantoms.
    Please post back what you find.
    So I conclude that each of my rogue user accounts has got its own set of these folders.
    Even if you have other accounts their Pictures Music, etc would appear in their own accounts and should not be grouped together in any one account as you have described. That is why I say this is unusual.
    I suggest you run Repair Permissions in the application Disk Utility, which is found in Applications/Utilities. Select the drive, select First Aid click on Repair Permissions.
    regards roam

  • How can i add a new characteristic to Sap standard InfoObject?

    Hi Experts,
    Please anyone let me know how can I add a new characteristic or a key figure into an SAP standard InfoObject in order to add it to the standard InfoCube? The situation is I would like to add region and business unit to the characteristics of the Industrial Hygiene and Safety. After that, I would like to add them to the InfoCube called Accidents: Person Involved [0EIH_C02] that is located in the MultiProvider called Accidents: Complete View [0EIH_MC01]. Is it feasible to do this way?
    I just learned the BW/BI, so please help me with this. I would really appreciate your responses.
    Thanks,
    -Napadol

    Hi Napadol,
    To add a attribute in a char:
    1) Go to info object/char in change mode and add the additional attribute you want and select navigational attribute in attribute tab if you want. (Create these additional attribute first in info object catalouge)
    2) Activate the Object/Char
    3) open info cube in change mode and pick the characteristic from left panel to info cube dimension.
    4) Activate infocube.
    5) Go to multi provider add the char in one of the dimension and do identification for this char and activate.
    Regards,
    Kams

  • SCP02 Put key problem

    Hi,
    I have next troubles, command put key fail, with 6982 code.
    Secure channel mode - 3.
    I don't have any problem with creating secure channel, it creates correctly, I think problem is with encrypting command or maybe with data.
    In SCP01 I do not any operation with LastMac, but as I see in GlobalPlatform Library source, when we use SCP02, we must encrypt Last Mac with DEK Session key, it's correct ? Then I generate new mac for put key command, using "new" LastMac value as ICV. Next I encrypt command with AuthEnc Session key and append mac to result command.
    In Put key I set algo as 0x81, len - 0x10, and CheckValue len - 0x3. This procedure work fine with CyberFlex card.
    PS. JCOP Support don't send me any responce. Nice support ...
    PSS. Maybe somebody explain me how to work with this SCP02 or have SCP02 implementation example.
    -Regards.

    ZuZu wrote:
    Hi,
    I have next troubles, command put key fail, with 6982 code.The key encryption is not correct.
    Secure channel mode - 3.- 3?
    I don't have any problem with creating secure channel, it creates correctly, I think problem is with encrypting command or maybe with data.
    In SCP01 I do not any operation with LastMac, but as I see in GlobalPlatform Library source, when we use SCP02, we must encrypt Last Mac with DEK Session key, it's correct ? Then I generate new mac for put key command, using "new" LastMac value as ICV. Next I encrypt command with AuthEnc Session key and append mac to result command.Normally a card works only with one SCP. So make sure your card really supports SCP02. With SCP02 you encrypt the key values in the PUT KEY command via the DEK session key, and in SCP01 with a static DEK key. Furthermore the session key generation is different. TO get an idea you can check out the open source project GPShell.
    In Put key I set algo as 0x81, len - 0x10, and CheckValue len - 0x3. This procedure work fine with CyberFlex card.Gemalto cards have their own mechanism for SCP. If you search this forum you will find enough hints. JCOP does it strictly according to GP spec.
    PS. JCOP Support don't send me any responce. Nice support ...JCOP support is now restricted to "promising" customers, in other words customers which order large volumes of NXP chips.
    PSS. Maybe somebody explain me how to work with this SCP02 or have SCP02 implementation example.
    -Regards.

  • Problem in Storing ByteArray(Value) with String (Key) using put method

    Hello Folks:
    I wish to store a byte array with associated with a String. For this I use the put method in Java which stores put(Object key, Object value). I have written a piece of code which works but I am not able to understand it. Its not outputing what I want but something else.
    I guess, I have some ignorance.
    When I compile using
    $javac testing.java propsput.java
    $java testing
    I get the following output.
    Bytes Array:[B@1372a1a
    I understand that B stands for Bytes array. Also, If I change the String I get the same thing. If I modify the code for Integer array
    and store some Integer array I get [I@1372a1a.
    I fail to understand why I am getting this 1372a1a again and again.
    Instead where is my array.
    May be I am not using the method getValue correctly.
    Thank You very much for your help
    Regards
    //testing.java
    import java.io.*;
    import java.util.*;
    public class testing{
    public static void main(String args[]){
    propsput headers=new propsput();
    String s="Let me See how you do it";
    byte buf[]=s.getBytes();
    headers.put("Bytes Array",buf);
    //propsput.java
    import java.util.*;
    import java.io.*;
    public class propsput{
    public void put (String key, byte[] value) throws IllegalArgumentException{
    HashMap _props =new HashMap();
    _props.put(key, value);
    Set set =_props.entrySet();
    Iterator i=set.iterator();
    while(i.hasNext())
    Map.Entry me=(Map.Entry) i.next();
    System.out.print(me.getKey()+":");
    System.out.println(me.getValue());
    ----------------------------------------------------------------

    Hi Thanks for your help.
    But I have included your method in the propsput class and also using it like this in the propsput class.
    while(i.hasNext())
    Map.Entry me=(Map.Entry) i.next();
    System.out.print(me.getKey()+":");
    byte a[]=me.getValue();
    showBytes(a);
    But while compiling with javac I get the following error:
    propsput.java:24: incompatible types
    found : java.lang.Object
    required: byte[]
    byte a[]=me.getValue();
    Please let me know how should I use it so as to print my String.
    Well, its still not clear in the previous code (my First Message) that why I am gettinng "1372a1a" everytime. (Even if I change the String. When I change the array to be an Integer array I get [I@1372a1a )
    Othewise in the case of Strings I get ( [B@1372a1a)
    Bytes Array:[B@1372a1a
    Thanks and Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can I restore my new Macbook pro to Factory setting?

    How can I restore my new Macbook pro to Factory setting?

    Install or Reinstall Lion from Scratch
    If possible backup your files to an external drive or second internal drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Erase button and wait until the process has completed.
    Quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Install button.
    Note: Be sure you have an active internet connection.

  • I forgot the administrator password for my mac and cant set a new one without it how can i set a new one

    i forgot the administrator password for my mac and cant set a new one without it how can i set a new one

    Reset Password 10.7, 10.8...
    http://reviews.cnet.com/8301-13727_7-20087723-263/how-to-run-the-password-reset- utility-in-os-x-10.7-lion/

  • Just got new air and trying to set up. When I put in my Apple ID and password it comes up with error message 'can't sign in because of server error. Try again signing on.' Trying again does not fix. I know my ID and PW are right as work on other devices.

    Just got new air and trying to set up. When I put in my Apple ID and password it comes up with error message 'can't sign in because of server error. Try again signing on.' Trying again does not fix. I know my ID and PW are right as work on other apple devices I have.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

Maybe you are looking for

  • A report which shows the vendor invoice and its purchase order MM

    Hi All, I wonder if ther's a SAP standard report which shows the vendor invoice (the FI document) and its purchase order MM. Could anyone help me? Thanks G.Rossi Edited by: Lakshmipathi on Aug 2, 2011 2:24 PM Thread Locked - Reason  Cross Posted

  • Load balancing on rac database with single node appsTier

    Hi, Please advice me, I am working on to configure load balancing on appstier, following is my setup and steps I did so far. Host name      Services Clelx062ptlge --     Rac 1 – only database Clelx063ptlge --     Rac 2 – only database Clelx042ptlge -

  • ALV WebDynpro Hierarchy -Setting non-numeric values in the header level row

    Hi Experts, When setting up an ALV table as a table hierarchy the standard ALV settings only seem to allow for numeric values to be displayed in the higher hierarchy levels. Is there a way to also set the values for some non-numeric columns into thes

  • Can i transfer purchases from apple id to anothe and to earase the first one?

    hi i got 2 apple id's the second one is my email, can i transfer everything in my first apple id to the second one and then to earase the first on? i want to make my mail a primary thing for all my web stuff

  • Error in Loan

    A Loan is entered for the employee. While running payroll following error received. Error with a loan wage type A loan wage type in table RT should be deducted, however the remaining net amount was too small Wage type      9SLD Please lower the loan