org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator$WrappingIOException: org.bouncycastle.cms.CMSException: key inappropriate for algorithm.

nabble.com | 6 months ago
  1. 0

    Bouncy Castle - Dev - Key Inappropriate for algorithm

    nabble.com | 6 months ago
    org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator$WrappingIOException: org.bouncycastle.cms.CMSException: key inappropriate for algorithm.
  2. 0
    samebug tip
    Install Java Cryptopraphic Extention for your JDK version
  3. 0

    Bouncy Castle - Dev - Illegal key size or default parameters exception

    nabble.com | 1 year ago
    java.security.InvalidKeyException: Illegal key size or default parameters
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    unable to decrypt PKCS7-encrypted data

    GitHub | 2 years ago | KevinCorcoran
    java.security.InvalidKeyException: Illegal key size or default parameters
  6. 0

    AES password chiper algoritm Exception

    GitHub | 2 years ago | GoogleCodeExporter
    java.security.InvalidKeyException: Illegal key size or default parameters
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

    Illegal key size or default parameters

    at javax.crypto.Cipher.a()
  2. Android Platform
    Cipher.init
    1. javax.crypto.Cipher.a(DashoA12275)
    2. javax.crypto.Cipher.init(DashoA12275)
    2 frames
  3. BouncyCastle
    PKCS7ContentHandler.writeTo
    1. org.bouncycastle.cms.CMSEnvelopedGenerator$RecipientInf.toRecipientInfo(Unknown Source)
    2. org.bouncycastle.cms.CMSEnvelopedDataStreamGenerator.open(Unknown Source)
    3. org.bouncycastle.cms.CMSEnvelopedDataStreamGenerator.open(Unknown Source)
    4. org.bouncycastle.mail.smime.SMIMEEnvelopedGenerator$ContentEncryptor.write(Unknown Source)
    5. org.bouncycastle.mail.smime.handlers.PKCS7ContentHandler.writeTo(Unknown Source)
    5 frames
  4. Java RT
    DataHandler.writeTo
    1. javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)
    2. javax.activation.DataHandler.writeTo(DataHandler.java:295)
    2 frames
  5. JavaMail API
    MimeMessage.writeTo
    1. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
    2. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
    3. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1659)
    3 frames
  6. Unknown
    SigningTeste3.main
    1. SigningTeste3.EncryptMail(SigningTeste3.java:314)
    2. SigningTeste3.main(SigningTeste3.java:328)
    2 frames