Pleasse Help Me (RSA Key Generation Problem)

Hi All,
The following code throws an exception called "java.lang.NoClassDefFoundError: java/security/SecureRandom: Cannot create class in system package"
private void generateRSAKeyPair() throws Exception
          try
               System.out.println("Inside try");
               SecureRandom theSecureRandom = new SecureRandom();
               BigInteger thePublicExponent = new BigInteger("10001", 16);
               RSAKeyGenerationParameters theRSAKeyGenParam =
               new RSAKeyGenerationParameters(thePublicExponent, theSecureRandom, 1024, 80);
               RSAKeyPairGenerator theRSAKeyPairGen = new RSAKeyPairGenerator();
               theRSAKeyPairGen.init(theRSAKeyGenParam);
               AsymmetricCipherKeyPair theKeyPair = theRSAKeyPairGen.generateKeyPair();
               _RSAPrivateKey = (RSAPrivateCrtKeyParameters) theKeyPair.getPrivate();
               _RSAPublicKey = (RSAKeyParameters) theKeyPair.getPublic();
          catch (Exception e)
               e.printStackTrace();
Please tell me the reason

Too many variables - memory, CPU, architecture, do you have hardware crypto, etc. etc. etc.. But it's quite expensive to generate RSA keypairs, your numbers look "reasonable" (given that I know nothing about the hardware you're running them on) to me.
Grant

Similar Messages

  • RSA key generation on JCOP31 v2.4.1 times out

    I have an applet that generates both 1024-bit and 2048-bit RSA key pairs. The applet works on an NXP JCOP41 v2.2.1 smart card, but times out on an NXP JCOP31 v2.4.1 smart card. The applet was compiled with javacard 2.1.1. The JCOP41 card is at javacard 2.2.1. The JCOP31 card is at javacard 2.2.2. I am using an Omnikey CardMan 3821 smart card reader. Does anyone have any experience with generating RSA keys on the NXP JCOP31 v2.4.1 smart card? Thanks.

    Hi,
    The card probably doesn't timeout. It knows that RSA keygen is long, and it should send null procedure bytes in T=0 or S(WTX) blocks in T=1.
    Only a protocol analyser (or oscilloscope) could tell if the card really timeouts. But that's not probable.
    What is probable is that the reader timeouts. Try with another reader if possible.
    Does the reader have an activity led? does it blink or something while the card is generating the key?
    If you get the same behaviour, check the low level card exchanges. But I would be surprised that NXP sells card that go mute on RSA key generation. Or you have a faulty card.
    Regards

  • On-board RSA key generation on Cyberflex Access 64K V2 / Memory leak?

    The description of the Cyberflex Access 64K V2 card states that "On-board key generation RSA up to 2048 bit" (http://www.youcard.de/datenblaetter/chipkarten/DS%20Cyberflex_Access.pdf). So I assume that this implicates that it should somehow be able to instantiate a KeyPair object on which genKeyPair() can be called.
    When I first tried to instantiate an Object either by using KeyBuilder.buildKey or KeyPair I just received an 0x6F00 error. After removing all of the other objects that were also instantiated I was able to create one Key object using KeyBuilder (RSAPrivateKey or RSAPublicKey). However, as soon as I tried to instantiate two Key objects at the same time I just received the 0x6F00 error again.
    I create these objects by using:
    private static RSAPublicKey pubKey;
    private static RSAPrivateCrtKey privKey;
    protected Foo() {
        pubKey = (RSAPublicKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PUBLIC, KeyBuilder.LENGTH_RSA_1024, true);
        privKey = (RSAPrivateCrtKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_1024, true);
        register();
    }So it seems that there is not enough free (EEPROM) memory for both objects. Is this a known problem with the Cyberflex cards? Is there some workaround? Could it be possible that some former test-applets that I've used (and already deleted) on the card leaked some memory that is missing now?

    I think that I've just found the problem. The value of "-nvDataLimit" in the install APDU that I've sent via gpshell was too low. It seems to work with a higher value.

  • A challenging primary key generation problem..

    Hi !
    I have the following problem (this is in theory, not (yet) in practice):
    I have this set of entities with its respective primary keys in the database.. 0,1,2,3,4,5,...............,N
    In a certain moment in the future X, a transaction deletes record (for example) n < N.
    In a certain moment in the future Y after X, a transaction persists new entity Q.
    What primary key does it get ?
    Is it Q=n or is it Q=N+1 ?
    In case the latter, how can I achieve the former ? Is there JPA specified way to do it, or I shall use the "stupid" way.
    I.e. In general I want the gaps in the sequence (caused by deletion of entities), to be filled with the newly persisted ones.
    All suggestions are welcome :)
    P.S. If someone knows the actual difference between the PrimaryKeyGenerationTypes in JPA (SEQUENTIAL, IDENTITY, etc...) please, tell me :P
    Edited by: javaUserMuser on Aug 7, 2008 5:37 PM

    javaUserMuser wrote:
    Well 2^63 = 9 billion billion.. well, thats a lot really. but anyway using the gaps is preferable for me ;]You've still said nothing to support this view except "because I said so". I don't think you need it. Here's why:
    Assume there are 2^63 = 9 billion billion keys available to you. If your application consumes them at the rate of 1 key per millisecond, it'll take you ~36 billion years to exhaust all those keys. Since science estimates the age of the universe as 13-14 billion years, and creationists say it's 6000 years, I'd say you're safe if you throw away a key or two.
    You know your app. Adjust accordingly. Calculate how fast you'd have to consume keys to exhaust them all in 100 years for fun and compare it to your real requirements.
    Well there can be involved more than one db... In general how does a rdbms scale horizontally ? Can N-count physical nodes serve one logical DB ?Depends on the product. Consult the database you're using. Which product will you use?
    What kind of them ?See the calculation above.
    >
    I got what those IDENTITY etc. things mean, but.... anyway how do those differ not in the perspective of the database, rather of that of the developer <-- that is my question :PAs a developer, it means that I'd have to use a different id generator scheme in my configuration.
    In general, I like your posts :) Discussion is the mother of progressThank you, I'm glad you find them to be helpful.
    %

  • Pleas Help me about Crystal report problem

    How to solve this problem. The problem is some time my web application can not connect to crystal report server. And App. log was receord as below.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: crp.RAS.rptappserver.---- Error code:-2147217387 Error code name:connectServer
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.request(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.else(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.close(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.close(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.dispose(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.finalize(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java(Compiled Code))
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at java.lang.ref.Finalizer.access$100(Finalizer.java(Inlined Compiled Code))
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java(Compiled Code))
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R Caused by:
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R java.lang.NullPointerException
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.request(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.else(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.close(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.close(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.dispose(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.finalize(Unknown Source)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at java.lang.ref.Finalizer.runFinalizer(Finalizer.java(Compiled Code))
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at java.lang.ref.Finalizer.access$100(Finalizer.java(Inlined Compiled Code))
    [23/9/2005, 15:02:44:359 ICT] 4c383aad SystemErr R      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java(Compiled Code))
    For more information
    Web sphere Application server 5.0.2
    JVE 1.3.x
    Crystal Report Enterpire V.10
    All component deployed on Windows 2000 OS.
    Pls. anyone advice me . thank you
    PJ

    How to solve this problem. The problem is some time
    my web application can not connect to crystal report
    server. And App. log was receord as below.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServ
    erException: Unable to connect to the server:
    crp.RAS.rptappserver.---- Error code:-2147217387Does this give a hint of what to check? Maybe you need to check if the server is running and the server configuration is correct.
    I haven't ever used Crystal Reports, so I can't be very specific. A Google search might help.

  • Pleas help me with this printing problem

    Hey
    I have an application that add pages to a serten class, that holds up to 4 pages per obj.
    this class is printable and it is the obj of this class that i add to a book.
    this book i then print out to the printer.
    All things is working fine, the positioning, printing 1-4 pages on one paper and so on.
    but the problem is when a page is bigger then the are, then it will only print that area that fitts on a paper.
    Say we whant to print 4 pages on one paper, one of the pages that we add is containing so much information that it need not only one page but several. The problem is that the program will only print out the first area that fits into the page are, after this page have been printed, it goes on to the 3 other pages on the sam paper.
    am i doing any wrong? do i have to keep track of this thing my self, i mean do i have to theck the size of the page and then add it to so many pages in the book that it requaries, or shold the printer self manage this?
    I am not using any standard printing option where you chose page nrs and so on. Maby this is the problem?
    //Jimmy

    Read the API documentation section java.print.Printable
    int the printing method you can get the maximum prontable area if you draw something outsite the area it will not be printed.

  • RSA key and block size

    Let's say that I have an RSA key pair that has been generated in a keystore using the keytool utility.
    I am now accessing this key pair through some java code (using the Keystore class) and I want to encrypt/decrypt data using this public/private key.
    In order to encrypt/decrypt arbitray length data, I need to know the maximum block size that I can encrypt/decrypt.
    Based upon my experiment, this block size seems to be the size of the key divided by 8 and minus 11.
    But how can I determine all that programatically when the only thing that I have is the keystore?
    I did not find a way to figure out the size of the key from the keystore (unless it can be computed from the RSA exponent or modulus, but this is where my knowledged of RSA keys stops) and I did not find a way to figure out where this "magic" number 11 is coming from.
    I can always encrypt 1 byte of data and look at the size of the result. This will give me the blocksize and the key size by multiplying it by 8. But it means that I always need the public key around to compute this size (I cannot do it if I have only the private key).
    And this is not helping much on the number 11 side.
    Am I missing something obvious?
    Thanks.

    It is probably a bug. A naive implementation of RSA key generation that would exhibit this bug would work as follows (I'm ignoring the encrypt and decrypt exponents intentionally):
    input: an rsa modulus bit size k, k is even:
    output: the rsa modulus n.
    k is even, so let k=2*l
    step1: generate an l bit prime p, 2^l(-1) < p < 2^l
    step2: generate another l bit prime q, 2^l(-1) < q < 2^l
    step3: output n = p*q
    Now the above might seem reasonable, but when you multiply the inequalities you get
    2^(2*l -2) < n < 2^(2l)
    That lower bound means that n can be 1 bit smaller than you expect.. The correct smallest lower bound for generating the primes p and q is (2^l) / sqrt(2), rounded up to the nearest integer.
    I'll bet the IBM code implements something like the first algorithm.

  • I have an ipad mini 1st gen 64 gb (wifi only) and i have problem with some of my apps. These apps have lags when you play with them for a few seconds the apps are having lags are call of duty strike team, gta San Andreas and nfs most wanted.pleas help me

    I have an ipad mini 1st gen 64 gb (wifi only) and i have problem with some of my apps. These apps have lags when you play with them for a few seconds the apps are having lags are call of duty strike team, gta San Andreas and nfs most wanted.pleas help me

    I'm going to guess videos buffer for a while also...
    Two possibilities, one is you should close apps on the iPad, the other is your internet speed is not able to handle the demands of a high speed device.
    To close apps:   Double click home button, swipe up to close the apps.
    To solve internet problem, contact your provider.   Basic internet is not enough for video games and movies.   Your router may be old and slow.

  • Problem with automatic key generation

    Hi,
    I'm getting an exception when creating entity EJB's that use automatic primary key
    generation (I'm using MS SQL Server as the db). The data is being inserted correctly
    onto the database (including the auto generated key), but the auto generated primary
    key field in the EJB is being set to zero rather than the correct value. This causes
    a NoSuchEntityException.
    The db table has an identity set on the auto generated field, but this field is not
    the primary key.
    Does anyone have an idea as to what the problem is?
    thanks,
    Andy

    Make sure you are using a TX DataSource
    "Andy Pearson" <[email protected]> wrote in message
    news:3ccead40$[email protected]..
    >
    Hi,
    I'm getting an exception when creating entity EJB's that use automaticprimary key
    generation (I'm using MS SQL Server as the db). The data is being insertedcorrectly
    onto the database (including the auto generated key), but the autogenerated primary
    key field in the EJB is being set to zero rather than the correct value.This causes
    a NoSuchEntityException.
    The db table has an identity set on the auto generated field, but thisfield is not
    the primary key.
    Does anyone have an idea as to what the problem is?
    thanks,
    Andy

  • Help Primary Key generation

    According to article "Generating Primary Key Values in CMP Beans" (http://www.netbeans.org/kb/41/generated-primary-keys.html) you can specifiy automatic primary key generation.
    The following fragment describes a key issue when you have a existing database schema.
    If the database schema is not created during deployment, the primary key column in the mapped table must be of type NUMERIC with a precision of 19 or more, and must not be mapped to any CMP field. The Sun Java System Application Server generates unique values for the primary key column at runtime.
    In the used sample for how to set up a MySql database the creation of the customer table must be as follows:
    CREATE TABLE customer (
    id BIGINT(19) NOT NULL auto_increment, -- this column will be automat. generated
    lastName varchar(25) NOT NULL,
    firstName varchar(30) default NULL,
    PRIMARY KEY (id));
    My question is:
    Is it nescesary to have the field id to be decleared auto incremented?
    The first fragment says that the AS will create new values for the primary key. Or does the generation of primary keys only work if the pk field in the database table is auto incremented by the database?
    Please help. Thanks!
    Johan.

    Hello Johan,
    no, as i remember it does not work if you specify the id column as auto_increment. The J2EE bean container does manage the generation of the primary key, so the database must have a column type int(19) or bigint and primary key, not more.
    Hope this helps, more information is in the J2EE documentation from Sun, page 1012.
    Kind regards,
    marc.

  • EToken + RSA Key Secondary Authentication problem

    Hello. I need to access to an eToken using Java Security API (PKCS11) and I can't use the "RSA Key Secondary Authentication" mode because when I try to sign I've got an error (CKR_USER_NOT_LOGGED_IN).
    Do you know why it happens?
    This is my code:
    String pkcs11config;
    pkcs11config = "name = my-eToken";
    pkcs11config += "\nlibrary = c:\\WINDOWS\\system32\\eTpkcs11.dll";
    InputStream confStream = new ByteArrayInputStream(pkcs11config.getBytes());
    sunpkcs11 = new SunPKCS11(confStream);
    Security.addProvider(sunpkcs11);
    alias = "myAlias";
    KeyStore.Builder builder = KeyStore.Builder.newInstance("PKCS11", sunpkcs11,
      new KeyStore.CallbackHandlerProtection(new MyCallbackHandler()));
    KeyStore keyStore = builder.getKeyStore();
    // get my private key
    KeyStore.PrivateKeyEntry pkEntry = (KeyStore.PrivateKeyEntry) keyStore.getEntry(alias,
            new KeyStore.PasswordProtection("aliasPwd".toCharArray()));
    privateKey = pkEntry.getPrivateKey();
    Serializable o = new SignedBean("bla bla");  //dummy object which wraps a String, just for testing
    sig = Signature.getInstance("SHA1withRSA");
    signedObject = new SignedObject(o, privateKey, sig);And when attempts to create an instance of SignedObject throws the exception:
    java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_USER_NOT_LOGGED_IN
         at sun.security.pkcs11.P11Signature.engineSign(P11Signature.java:420)
         at java.security.Signature$Delegate.engineSign(Signature.java:1131)
         at java.security.Signature.sign(Signature.java:527)
         at java.security.SignedObject.sign(SignedObject.java:227)
         at java.security.SignedObject.<init>(SignedObject.java:144)
         at ar.gov.mecon.esidif.firmaDigital.test.ETokenTest2.testLogin(ETokenTest2.java:99)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_USER_NOT_LOGGED_IN
         at sun.security.pkcs11.wrapper.PKCS11.C_SignFinal(Native Method)
         at sun.security.pkcs11.P11Signature.engineSign(P11Signature.java:391)
         ... 23 moreThanks in advance

    Hello. Try redefining your callback:
    KeyStore.Builder builder = KeyStore.Builder.newInstance("PKCS11", sunpkcs11,
      new KeyStore.CallbackHandlerProtection(new CallbackHandler() {
        public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
          //makes nothing... so the native driver login implemantation is called
    KeyStore keyStore = builder.getKeyStore();
    // get my private key
    privateKey = (PrivateKey) this.getKeyStore().getKey(alias, null); //send null cause the secondary pwd is gotten by the driver In my case, it works fine (JDK 1.5), but it open twice the dialog for the secondary key :( I don't know why!!
    If you know, please answer me!!
    Hope this help you

  • My iPhone5 is under warranty but during incoming call handset is hang. this problem 2-3 time a day. pleas help.

    My iPhone5 is under warranty but during incoming call handset is hang. this problem 2-3 time a day. pleas help.

    I'm experiencing what is I believe to be the same issue with my iPhone 4, and have been suffering in silence for about a week.
    iPhone 4 model MC603X with Modem Firmware 04.10.01, 16Gb, cheap silicone cover, Vodafone NZ as my carrier.
    My screen locks after 1 minute of inactivity as it should with my settings. Perhaps 1 call in 5, or 1 call in 10, the screen wakes up and displays called ID information etc correctly, but I cannot swipe to answer the call. The touch screen simply fails to respond.
    If I push the power button briefly to silence the ringtone, this does not make a difference. The iPhone has to be locked (and screen turned off), then push a hardware button to wake up the display, and then I can swipe to unlock the device.
    This is only since iOS 4.3 and unfortunately iOS 4.3.1 has not changed this behaviour.
    Any advice appreciated.
    Cheers, Mike

  • Can someone help me? Why i can not build RSA key pair

    i download the java_card_kit-2_2_01-win-gl.zip from sun's web site
    and i use the keypair class to build a RSA key pair
    but it always throws NO_SUCH_ALGORITHM excption.
    how can i build a key pair

    This has been covered a million times. There isn't any crypto implementation with Sun's kit. This is mentioned in the documentation.

  • Mac Pro (First Generation) problem with 1TB Seagate Barracuda

    Hi Macianer,
    I have a first generation Mac Pro which was sold with max. 750GB Hard drives for each bay. At this time I am grabbing for straws and maybe someone has any info on this problem.
    I purchased 4 x 1TB Seagate Barracuda hard drives ( Model: ST31000340AS / Firmware: SD15 ), did a regular format after I purchased them ( GUID Partition Table, Journaled HFS+ File System). I am using 2 of them internally (they get quite hot and i didn't want to put all 4 of them in there) and two of them externally (backup purposes). The other two internal bays are covered by 2x 500GB Barracuda drives.
    I put all four 1 TB hard drived through a 1 week stress test to make sure I am not dealing with bad apples. So far this practice served me well.
    Now 2 weeks later one completely crashed (internal boot drive). It sounded to spin up alright but was not accessible at all. I went to BestBuy and GeekSquad said this drive is crashed and I returned it.
    Since I had a backup I didn't worry too much. I put the back up hard drive in as the new boot drive (since it was a SuperDuper duplicat) it worked like a charm. Now the second hard drive starts temporarily freezing the system for 2-4 minutes and seems to get stuck showing the great colored ball of doom. After the freeze it continues to operate normal again and I am able to continue my work.
    I ran the Disk Utility and I got the following message:
    INVALID KEY LENGTH
    VOLUME CHECK FAILED.
    ERROR: FILESYSTEM VERIFY OR REPAIR FAILED.
    It just seems weird, I never had problems with hard drives and now I get these problems with 3-4 week old hard drives.
    I was in a chat with seagate support. First question to trouble shoot: Do you have access to a PC. My answer was no since Microsoft Vista I donated all of them to the Salvation Army. He asked if I formatted the hard drives low level and MBR with HFS+. I said since I do not have access to PC nor do I plan on using my hard drives for PC I formatted it regular with GUID and HFS+. I asked if there is any history of these drives that would help explain my experience. I was hoping for a recall or something of that sort or something that a firmware upgrade would remedy.
    I guess my question is, is the first generation Mac Pro, even though it seems to format and run them fine, not able to handle 1TB hard drives on a daily basis. Or am I dealing with hard drive problems? The Seagate guy didn't seem to be of any help.
    Any help is appreciated or even pointers that would help me in finding the problem.
    Cheers,
    PixelGrinch
    Message was edited by: PixelGrinch

    Excellent questions, I too am looking at SSD.
    Some things I know about SSD:
    1. Intel recently released new firmware for their SSD drives to improve long term performance including Trim/Garbage collection.
    2. SSD drives can be setup as SLC or MLC - SLC is faster read 2X, write 4X over MLC, however SLC is smaller capacity. SLC also has a longer life span.
    3. Intel plans to have an 320GB X25-M (MLC) and a 128GB X25-E (SLC) out soon.
    OSX does not fully support Trim and I'm not aware of any 3rd party software for OSX that helps in the garbage collection area. Diskeeper 2010 for Windows 7 provides full support for all variants of SSD, but nothing on the Mac side.
    I'm probably going to wait for 2010 to see what comes out, SSD appears to be good news, but it still also seems to have issues. Given the cost of these drivers and the frequent firmware updates, a wait and see is my choice.
    I've thought about going with a SAS RAID controller and 15K RAID drivers, but the cost/performance ratio comes out about the same and the 15K drives are noisey and power hungry but they're a "known" entity.
    Rob

  • Generating RSA keys based on p, q, and public exponent

    Hi,
    The problem is the following. I need to generate an RSA key pair on the card based on pre-defined P, Q and public exponent. The KeyPair specs syas that if the public exponent is pre-initialized it will be retained. All other values are overwritten though (I checked with a test applet on jcop41). So two questions:
    1. Do you know of any card that can also retain p and q and generate (calculate) dp, dq, pq, and public modulus. This is contrary to the specification so I doubt there would be any, but it is always good to ask.
    2. Do any of you have a Java code that would do this (ie. calculate the missing key components) that can be run on Java Card, ie. does not use BigInteger or similar classes.
    Cheers,
    Woj

    That is exactly the point I was trying to make, I actually forgot about this thread, because the problem at hand went on the shelf for the moment. To reformulate:
    1. I have only certain parts of the RSA key, but enough parts to determine a valid private/public key pair.
    2. Now I want to generate the missing parts on the card. The JC API requires all the parts to be supplied, it is not possible to provide only partial (but determining the whole key) key information. The KeyPair class can only retain the public exponent during key generation, but not the other parts (according to the specs and my own tests).
    3. My wild guess is that it would probably be doable without too much hassle with host JCE, but it's not an option for me, it has to be done on the card.
    4. I could try to write my own Java Card code that would do this based on, say, openssl implementation, but now I am too lazy, so that's why I asked if somebody possibly has the code that does this.
    Cheers,
    Woj

Maybe you are looking for

  • MS Access 2003 and Data Services 3.0

    I want to access MS Access 2003 from Aqualogic Data Services 3.0. The documentation tells me that Aqualogic Data Services 3.0 supports MS Access 2003 I read the "Extending Database Support" from the Administration Guide to deploy the xml file ... I d

  • Convert audio from mono to stereo

    I have imported video and audio from a camera with microphone, and the audio is only playing out of the left speaker. This is despite the fact that both A1 and A2 channels in the timeline appear to have audio. I'm new to this, and any help to get the

  • Weird ? Mark in Finder Window

    When I open a folder in the Finder I have a ? mark at the top between the 'perform tasks with the selected item' icon and the 'search' box. How did this happen?

  • Total iCloud back up size does not match

    Hello, I just noticed that my "next icloud backup size" is only 8.6 gb, however, I have a 120GB iphone 6, 114gb which is being used. How is my icloud backup only 8.5 gb?  I have the 200gb icloud storage plan.

  • Data target technical name for a query

    Hi Can some one tell me how to find the respective data target technical name for a report (query)? Thanks Abhi