java.security.InvalidKeyException: In nCImportedKey with key class - javax.crypto.spec.SecretKeySpec, algorithm RC4 A portion of the stack trace reveals something puzzling (to me at least):

Oracle Community | 666705 | 1 decade ago
  1. 0

    Exception on calling web service over SSL since upgrading to WebLogic SP4

    Oracle Community | 1 decade ago | 843811
    java.security.InvalidKeyException: In nCImportedKey with key class - javax.crypto.spec.SecretKeySpec, algorithm RC4 A portion of the stack trace reveals something puzzling (to me at least):
  2. 0

    Exception calling external web service of SSL since upgrade to SP4

    Oracle Community | 1 decade ago | 666705
    java.security.InvalidKeyException: In nCImportedKey with key class - javax.crypto.spec.SecretKeySpec, algorithm RC4 A portion of the stack trace reveals something puzzling (to me at least):
  3. 0

    Exception calling web service over SSL since upgrade to SP4

    Coderanch | 1 decade ago | Ted Bell
    java.security.InvalidKeyException: In nCImportedKey with key class - javax.crypto.spec.SecretKeySpec, algorithm RC4 A portion of the stack trace reveals something puzzling (to me at least):
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cipher.wrap and unwrap problem

    Oracle Community | 10 years ago | 843811
    java.security.InvalidKeyException: The wrapped key is not padded correctly. KeyGenerator and Cipher is created with algorithm as "DES". Parameters are not given. I encrypt a file and wrap the key and store in a file. In a sperate call, i try to decrypt the encrypted file, after unwrapping the encrypted key. Here I get the exception, while unwrapping. To eliminate error in reading the key from file for unwrapping, I tried calling decrypt immediately after encrypt and all works fine (encrypting, wrapping, unwrap key from file and decrypting). The problem happens when i try to use it with another instance of the class or with a new JVM. I have no clue on how to debug this problem. Can someone help me and enlighten on what I might possibly be doing wrong. Stack trace.
  6. 0

    Using RSA encryption in Java without BouncyCastle

    Stack Overflow | 5 years ago | user1394672
    java.security.InvalidKeyException: No installed provider supports this key: javax.crypto.spec.SecretKeySpec

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.InvalidKeyException

      In nCImportedKey with key class - javax.crypto.spec.SecretKeySpec, algorithm RC4 A portion of the stack trace reveals something puzzling (to me at least):

      at com.ncipher.provider.nCImportedKey.<init>()
    2. com.ncipher.provider
      nCBlockCipher.engineGetKeySize
      1. com.ncipher.provider.nCImportedKey.<init>(nCImportedKey.java:74)
      2. com.ncipher.provider.Utils.getKeySize(Utils.java:500)
      3. com.ncipher.provider.nCBlockCipher.engineGetKeySize(nCBlockCipher.java:485)
      3 frames
    3. Android Platform
      Cipher.init
      1. javax.crypto.Cipher.init(DashoA6275)
      1 frame
    4. com.certicom.tls
      SecurityParameters.createWriteCipher
      1. com.certicom.tls.provider.Cipher.init(Unknown Source)
      2. com.certicom.tls.ciphersuite.SecurityParameters.createWriteCipher(Unknown Source)
      2 frames