DES and RSA test applet

Hello all,
I have to test DES and RSA with some Java Card, but I have NO idea with it.
Is there any sample applets or any good site to learn it?
If I can have applet files, that will be great.
Thanks a lot,
Julie.

This could be an issue, for example, if there is a card that doesn't implement javacardx.crypto. Creating Cipher myCipher as a member variable would throw an exception if it's not implemented on the card. This ultimatly will prevent it from being loaded.
Take your CAP file and try to load it with the reference implementation and you'll see what I mean. Also, try to compile, and generate a CAP file outside the JCOP IDE environment. You'll see what ticks me off about the Sun kit. It would still generate the CAP file. BUT crypto isn't implemented in the Sun Kit. It should kick out an export not found message.
Discarding objects aren't needed because, if you notice, the JC uses a facade design pattern for the crypto implementations to assure only one instance is created. That's the getInstance() methods.

Similar Messages

  • MD5 and RSA - Slow performance  - Help / Views Required

    Hi,
    I am facing a problem while signing a message.The
    scenario is:
    I have to create 20,000 messages to be sent to
    clients. I am encrypting the message using MD5 and
    RSA.
    But when i am encrypting via RSA it takes about 20
    mins to encrypt the 20k messages.I dont know why its
    taking so much time. I have max 4-5 mins to manipulate
    and send messages. The sample code is as follows:
    ur earliest help will be quite helpful.
    Thanks in advance
    Hassan
    ************** Source Code ****************
    import java.io.IOException;
    import java.math.BigInteger;
    import java.security.KeyFactory;
    import java.security.MessageDigest;
    import java.security.Signature;
    import java.security.PrivateKey;
    import java.security.spec.RSAPrivateKeySpec;
    import org.apache.log4j.Logger;
    public class Signer {
    ******************************************

    Hi Sabre,
    I have compiled the simple code from JCE tutorial for DES. The output text it is showing is different than input text.
    Is there any problem going on in tutorial's example ?
    Regards
    Hamid
    ******** output **************
    the original cleartext is: [B@13a328f
    the encrypted text is: [B@337838
    the final cleartext is: [B@119cca4
    ******** Code ************
    public class jCypher {
    private static Cipher desCipher = null;
    public static void main (String[] args) throws NoSuchAlgorithmException,
    InvalidKeyException, IllegalBlockSizeException, NoSuchProviderException,
    BadPaddingException, NoSuchPaddingException, Exception
    //Creating a Key Generator and Generating a Key
    //public static KeyGenerator getInstance(String algorithm);
    KeyGenerator keygen = KeyGenerator.getInstance("DES");
    SecretKey desKey = keygen.generateKey();
    // Creating a Cipher
    // Cipher.getInstance(Transformation);     
    // c1 = Cipher.getInstance("RSA/ECB/PKCS1Padding");     
    desCipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
    // Cipher.init(int opmode, Key key);
    desCipher.init(Cipher.ENCRYPT_MODE, desKey );
    // Cleartext
    byte[] cleartext = "This is small Text for testing".getBytes();
    System.out.println("the original cleartext is: " + cleartext.toString());
    // Encrypt the cleartext
    // encrypted or decrypted data in one step (single-part operation)
    // public byte[] doFinal(byte[] input);
    byte[] ciphertext = desCipher.doFinal(cleartext);
    System.out.println("the encrypted text is: " + ciphertext.toString());
    // Initialize the same cipher for decryption
    desCipher.init(Cipher.DECRYPT_MODE, desKey );
    // Decrypt the ciphertext
    byte[] cleartext1 = desCipher.doFinal(ciphertext);
    System.out.println("the final cleartext is: " + cleartext1.toString());
    } // End main()
    }

  • ACS 4.0 and RSA Token Server problem

    Hi,
    We are having a problem trying to get ACS 4.0 for Windows to authenticate wireless users on an RSA Token server.
    Our Cisco 1200 series AP is configured for WPA2 and LEAP authentication. It points at the ACS server for RADIUS authentication. Now this works fine for users with a static password defined on the ACS internal database. However, for obvious security reasons, we?d like the authentication passed to our internal RSA server.
    I have installed the RSA Agent on the same server as the ACS along (after adding the generated sdconf.rec file to the System32 folder). The RSA server has been added to the ACS external databases and a user configured to use the RSA Token server for password.
    When we try to authenticate, the ACS fails the attempt with reason ?External DB password invalid?. The same user can successfully authenticate when using the RSA test authentication tool which is installed on the ACS server as part of the RSA Agent software.
    After running some debugs on a PIX in front of the servers, I can see traffic to/from the servers when using the test tool (which works), however it looks like ACS doesn?t even send traffic to the RSA server when authenticating.
    Any help or advice appreciated.
    Thanks

    Hi,
    The token servers only support PAP. Please make sure that the request are going to the RSA in PAP.
    Following link talks about the same.
    http://www.cisco.com/univercd/cc/td/doc/product/access/acs_soft/csacs4nt/acs40/user/o.htm#wp824733
    Regards,
    ~JG

  • Integration of Cisco ACS SE 4.2 and RSA SecurID Token Server

    Hi,
    I would be very appreciated if anyone can share their experience. Thanks in advance.
    Issue:
    I am trying to configure the ACE SE 4.2 to authenticate using RSA SecurID Token Server.
    Problems encountered:
    Authentication failed. In the failed logged attempt the error "External Database not operational" was next to the login name.
    In the auth.log, there was "External DB [SecurID.dll]: aceclnt.dll callback returned error [23]".
    Questions:
    1. Please kindly advise how I should resolve this problem.
    2. Also, is there any successful message once ACS get the sdconf.rec? Will the "Purge Node Secret" button be enabled?
    Troubleshooting steps I have done:
    Below is the steps I took to setup the external DB.
    1. Verified sdconf.rec is not a garbage file using the Test authentication function in RSA client.
    2. FTP sdconf.rec in the external database configuration. (Had used Wireshark and confirm file transfered successfully.)
    2. Defined unknown user policy to check RSA SecurID Token Server to authenticate.
    Thank you.

    I have NO experience with ACS SE 4.2 and
    RSA SecurID Token Server BUT I have
    experiences with Cisco ACS 4.1 running on
    Windows 2003 SP2 Enterprise Edition and
    RSA SecurID Token Server.
    All the troubleshoot you've done is correct.
    In Windows 2003 running Cisco ACS, you can
    install the test authentication RSA client
    and that you can verify that the setup
    is correct (by verifying that the sdconf.rec
    is not corrupted).
    One thing I can think of is that when you
    setup the ACS SE box, under external
    database, configure unknown user policy,
    did you check it to tell how to define users
    when they are not found in the ACS internal
    database. Did you select RSA SecurID token
    server?
    Other than that, from what I understand,
    you've done everything correctly.

  • Cannot call "mask and limit testing" inside a loop

    Calling "mask and limit testing" in a loop doesn't work. The problem
    is that the Upper Limit and Lower Limit are initialized only the first
    time the VI is called. All waveforms are tested against the same
    limits even if different limits are passed at each iteration. Is there
    a way to use this VI in a loop?
    Thanks!
    Martin
    Attachments:
    test_limits_testing.vi ‏193 KB

    Dear Martin,
    Thank you for contacting National Instruments. I would like to apologize for the delay in responding to your support request.
    From the information you have provided, it sounds like you are running your VI and experiences issues with the lower and upper mask refreshing after subsequent iterations of the FOR loop.
    The �Mask and Limit Testing� Express VI is not intended to function inside a loop; however, you can fortunately modify this Express VI to perform the desired action. To do so, please follow these instructions:
    1) Open the Block Diagram for your �test_limits_testing.vi� file
    2) [Right Click] on the �Mask and Limits Testing.vi� Express VI
    a. Select [Open Front Panel]
    b. When prompted to convert to a standart subVI, choose [Convert]
    3)
    [Right Click] on the �subMaskLimitTesting.vi� Express VI
    a. Select [Open Front Panel]
    4) From the toolbar, select [Window] >> [Show Block Diagram]
    5) You should see two subVI�s named �MatchDT� (white icons with black text)
    a. Wire a [True] Constant to the �Reset 2� input terminal for each of the �MatchDT� subVI�s
    i. To do this, right click each input terminal and select [Create]>>[Constant]
    ii. Make sure the constant value is set to [T] for �true�
    6) Save and Close the subVI�s
    7) Re-run your �test_limits_testing.vi� file, and the masking limits should re-initialize upon each loop iteration
    You have successfully customized the VI to function within a loop.
    I hope this helps! Please don�t hesitate to let me know if there�s anything else I can help with or clarify. Have a great day!
    Kind Regards,
    Joe Des Rosier
    National Instruments

  • Creating RSA signed applets

    Is there anyway by whicch I can test my RSA signed applet by using self issued certificates??
    I created a RSA signed applet using the documentation available on
    http://java.sun.com/products/plugin/1.3/docs/rsa_signing.html
    I used a self-signed certificate but it doesn't work. It gives me a security exception.

    Found a way :)
    Details at http://forum.java.sun.com/thread.jsp?forum=63&thread=152882
    Cheers
    Abraham Khalil

  • Unit testing and integration testing

    hello 2 all,
                    what is the diff bet unit and integration testing? in sap what is unit teesting consists of and integration testing consists of what?
    is this the work  of test engineers r whose work is this?
    take care
    love ur parents

    Hi Sameer,
    Unit Testing
    A unit test is a procedure used to validate that a particular module of source code is working properly from each modification to the next. The procedure is to write test cases for all functions and methods so that whenever a change causes a regression, it can be quickly identified and fixed. Ideally, each test case is
    separate from the others; constructs such as mock objects can assist in separating unit tests. This type of testing is mostly done by the developers and not by end-users.
    Integration testing
    Integration testing can proceed in a number of different ways, which can be broadly characterized as top down or bottom up. In top down integration testing the high level control routines are tested first, possibly with the middle level control structures present only as stubs. Subprogram stubs were presented in Section 2 as incomplete subprograms which are only present to allow the higher level control routines to be tested. Thus a menu driven program may have the major menu options initially only present as stubs, which merely announce that they have been successfully called, in order to allow the high level menu driver to be tested.
    Top down testing can proceed in a depth-first or a breadth-first manner. For depth-first integration each module is tested in increasing detail, replacing more and more levels of detail with actual code rather than stubs. Alternatively breadth-first would proceed by refining all the modules at the same level of control
    throughout the application. In practice a combination of the two techniques would be used. At the initial stages all the modules might be only partly functional, possibly being implemented only to deal with non-erroneous data. These would be tested in breadth-first manner, but over a period of time each would be
    replaced with successive refinements which were closer to the full functionality. This allows depth-first testing of a module to be performed simultaneously with breadth-first testing of all the modules.The other major category of integration testing is bottom up integration testing where an individual module is
    tested from a test harness. Once a set of individual modules have been tested they are then combined into a collection of modules, known as builds, which are then tested by a second test harness. This process can continue until the build consists of the entire application.
    In practice a combination of top-down and bottom-up testing would be used. In a large software project being developed by a number of sub-teams, or a smaller project where different modules were being built by individuals. The sub-teams or individuals would conduct bottom-up testing of the modules which they were
    constructing before releasing them to an integration team which would assemble them together for top-down testing.
    I think this will help.
    Thanks ,
    Saptarshi

  • Unit Testing and Integrating testing In HR

    Dear Sap Gurus,
    Would you be kind enough to  give me an example of unit testing and integrating testing??  what do you test, eg..TC and what else.. what happened.??. And also an example of Integrating testing  ..and an example ....I know what unit and integrating test is ..and with a good example, i will have a great idea about it ...thanks a lot.

    Hi Pooja
    Unit Testing:
    A process for verifying that software, a system, or a system component performs its intended functions.
    Unit transactions are tested against their own specifications and design documents.
    Integration Testing
    An orderly progression of testing in which software elements, hardware elements or both are combined and tested until the entire system has been integrated.
    Integration tests deal mainly with the testing of cross-application process chains in addition to transactions and business processes. The process models and the test cases derived from these form the basis of these tests.
    Regards
    Vijay

  • Unit testing, integration and functional testing

    Hello all,
    I would like to know the difference between Unit testing, integration and functional testing. And also what are the testing tools that are more commonly used?
    Thanks,
    Maxx

    Hi,
        Unit testing :
                    A complete cycle of each  module will be tested
                    ie for PP Right from requirements to planned orders /production orders
                    confirmation .
        Integration testing:
                    Here cross module testing will be carried out.
                     ie PP and MM integration
                        After confirming production order a GR is made /billing is carried out
                        and delivered.
          Functional testing:
                    This testing is carried out to see whether the system can with stand l the loads during processing by users.
                    Stress test and volume test.
                Regards,
                nandha

  • Difference between unit testing and integration testing

    What is the difference between unit testing and integration testing in SAP? Is unit testing takes place in Dev client and integration testing takes place in QA system?
    Please clarify
    thanks

    Hello Krishen,
    unit testing means veryfiingsmall / the smallet pieces of software, while integration testing checks the overall functionality of applications. Within the AS ABAP the tool ECATT + manual tests is used for integration tests and the ABAP Unit language integration for unit testing.
    When, Who, Where tests are carried out is ultimately a personal decision. As unit tests are operate even under heavy development they are often the first choice for developers, but the unit tests can also serve for regression tests over a long period. Integration tests tend too be created and executed in later stages as they require often a certain majurity of the software under test.
    Beside the mentioned links you may check out ABAP Unit infos also in the Wiki.
    https://wiki.sdn.sap.com/wiki/display/HOME/ABAP+Unit
    Best Regards
      Klaus

  • The images imported to my stage turn up as blank and render every image previous to the rogue imported image as red squares that fill the perimeters of the image which then renders the publishing and scene testing features in flash useless, what can i do

    I have been working on animating a scene in flash for a few weeks and recently I have encountered a problem with importing my images on to the stage where the images I import do not turn up, however the key frame that I attempted to import the image onto shows that it is occupied by an image and every frame previous to the key frame that just imported an image that does not show turns up as a red square that fills the original perimeters of the image, there is no solution to this problem any where on the forum and the adobe technical support staff will not help me find a solution to this problem what can I do to get Flash running normally again and fix this problem?????
    Also after the first time i publish a preview after i begin using flash, flash renders the publishing and scene testing features as useless and claims that there is no HTML template found, or if the images if i import any images onto the stage that come up blank and render every image previous to that image as a red square and then try and publish a preview  flash renders the publishing and scene testing features as useless and claims that there is no HTML template found. What can I do to fix this problem??? there is no solution on the web anywhere to this problem either.

    I don't know if Flash has a memory limit of its own. The memory for your Flash file is based on the available memory on your computer.
    There is a limit on the number of frames that you can have in any given timeline. I think that it's about 15000 frames, but that's a guess. Flash does all of its work at runtime, this means that no part of your animation is pre-compiled like it is in a video file. So the more objects that you have on the stage, the more work Flash has to do. It follows that the more objects that there are to animate, the more work your processor and the video card have to do.
    Here's a list of articles on memory management that might be useful:
    Garbage collection internals for Flash Player and Adobe AIR | AdobeDeveloper Connection
    actionscript 3 - What are good memory management techniques in Flash/as3 - Stack Overflow
    AS3 Memory Management Tips

  • When do u go for elementary test and combined test(rsrv)

    hi all,
    Can anyone explain me with an realtime scenario ? when do we go for elementary test in rsrv trns code and combined test.
    thanxs
    hari

    hi hari,
    RSRV is used for analysis and repair of all BW objects.You can perform consistency checks on the data and metadata stored in BW System.RSRV tests the foriegn key relationships between the individual tables of the enhanced starschema of the BW system
    There are 2 types of tests
    1.Elementary Tests- these tests are related to master data,transaction data,ODS objects,Hierarchies.database(indices,parametres,statistics),aggregates,PSA tables and documents.
    2.Combined Tests-This test determines which elementary tests are performed according to the parametres entered.
    Hope this helps!
    partha

  • VI Analyzer Front Panel Size and Postion Test fails

    Hi
    We make a lot of use of the VI Analyser and I have been playing with the configuration settings to try and make it only fail the tests that matter to us and I have one test I do not understand correctly.
    From the LabVIEW help
    Panel Size and Position—Checks that a front panel
    completely resides within the bounds of the screen. The test also checks whether
    the front panel is larger than the maximum specified width and height. If you
    are using a multi-monitor system, the test fails if the panel does not reside
    entirely within the bounds of the primary monitor. This test works only on
    standard, control, and global VIs.
    I would like to apply this test, a simple check developers are not creating huge VI, it sounds simple enough, but I cannot seem to get this test to pass.
    I am working with two monitors and this test fails when my VI is on either monitor with the message  "This VI's front panel does not reside entirely within the specified bounds (1280 x 1024)" my current screen resolutionis 1280 x 1024, so I assume as long as my VI front panel fits within one screen it should be a pass.
    I can clearly see my that VI front panel (and block diagram for that matter) fits within the screen of either monitor. If I look at the VI properties of my VI the Window Size is 474 x 513, could anybody please suggest when why this might be failing.
    cheers 
    Dannyt
    Danny Thomson CLAD
    Sub10 Systems Ltd
    Solved!
    Go to Solution.

    Hi Norbert,
    Thanks for the prompt reply, my asking the question and your reply has made me play with this a little deeper and I have managed to solve my problem.
    In case anyone else has a similar problem here are the details.
    When you have two monitors and look at the Windows properites you see one monitor is identified as 1 and the other as 2, thses identities are based on the graphics card and the which monitor is plugged into which ouptput connector. You can then chose which monitor you wish to act as your primary monitor. You would suspect it would not matter once you have selected your primary monitor BUT IT DOES.
    My inital set-up   
    Left Hand Monitor    - idenity 2 selected to be primary monitor
    Right Hand Monitor - identiy 1 
    With this set-up everything looks and acts as I expect it to task bar, icons etc on my primarry monitor.  However if you run the VI Analyser it will fail Panel Size and Position on BOTH the left and right hand monitors.
    I crawlled under my desk and swapped the monitors cables round so now the set-up is
    Left Hand Monitor    - idenity 1 selected to be primary monitor
    Right Hand Monitor - identiy 2
    Now the VI Analysers Panel Size & Position Tests will pass on the left hand monitor but fail on the right hand monitor, just as would expect.
    It appears that LabVIEW is looking not only at the windows "Primary Monitor" setting but also the identies, this does not seem the behaviour I would expect nor the correct behaviour.
    cheers 
    Dannyt
    Danny Thomson CLAD
    Sub10 Systems Ltd

  • Interface and conversion testing of SAP environments with Master Data

    Hi guy's
    Please let me know if some one of you know about SAP Conversion Project. Below you have more description:
    - testing of Interfaces from Legacy Systems
    - testing of conversion programs used in the conversion or transposition of data from legacy systems
    - data cleansing activities associated with conversion
    - identify and populate various SAP environments with Master Data necessary for both conversion and interface testing
    Any detail info in that and what kind of knowledge you need to have in some of project will be useful.
    Thanks in advance
    Adeel

    Hi Yannick,
    I am trying to do the exact same thing. Have you gotten any further on this issue?

  • Xmonad, xorg 1.9, and catalyst-test

    Hi guys,
    I'm running xorg 1.9 and catalyst-test on my HP Envy 15 (which contains a Radeon Mobility 5830.)  Almost everything works; nothing strange appears in /var/log/Xorg.log or glxinfo.  It's clear that my hardware acceleration is fine because I'm getting 200+ FPS in Extreme Tux Racer.
    However, xmonad, of all things, is super-slow.  When I switch workspaces or spawn tiled windows, the redraw lag is quite visible and I can see my CPU spike.
    Amid other reports of X problems, I tried installing the backclear/catalyst-maximize-fix xserver packages from the catalyst repository, but those didn't seem to help.  I also tried flipping the bit to enable XAA 2D acceleration, and that didn't seem to help either.
    Any ideas as to why X doesn't seem to be accelerating this properly?

    Yeeees, catalyst isn't supporting xserver 1.10 atm. Maybe 11.3 will support it, maybe.
    Workaround is to:
    - add xorg-server-* and xf86-input-* packages which you installed into pacman.conf's IgnorePkg list
    - OR use [xorg19] repo - read wiki .

Maybe you are looking for

  • I can't open iTunes on my computer.

    When I tried to turn on iTunes yesterday I got the error message, "The procedure entry point AVCFPlayerItemDurationChangedNotification could not be located in the dynamic link library AVFoundation CF.dll."  Then, when I clicked OK, I got a message sa

  • New issue with Safari

    Looking at the console I just noticed a high number of messages that look like this: Does anyone have any idea of what can be happening? I disabled as many personal settings as I could and stopped using multiple desktops and kept activity to the bare

  • Configuring Time capsule to existing network

    Existing network consists of Cisco DPC3825 modem (shaw network with a static IP (this is a home based office)) and a Cisco Linksys EA3500 router. I need to keep the existing router as i have several custom routing tables for VOIP and SIP related conn

  • Toplink stop sending queries

    I have problems with a specific query that uses CONTAINS (intermedia) on a customer site's web interface. For some simple values looked by the query, the query seems to take forever to be handled by the DB. But that's not the main problem. The user c

  • Changing email host url question

    Hey guys, So I know it's possible to change the email host url via the pro options in the email settings. My question is, say I were to change the url from helpdesk.oldcompanyname.com to helpdesk.newcompanyname.com, would the links from old tickets s