cannot create cipher: No such algorithm: 2.16.840.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

  • via Unknown by Unknown author,
  • via Unknown by 966575,
  • Stack trace

    • org.bouncycastle.cms.CMSException: cannot create cipher: No such algorithm: 2.16.840. at org.bouncycastle.cms.jcajce.EnvelopedDataHelper.createCipher(Unknown Source) at org.bouncycastle.cms.jcajce.EnvelopedDataHelper$1.doInJCE(Unknown Source) at org.bouncycastle.cms.jcajce.EnvelopedDataHelper.execute(Unknown Source) at org.bouncycastle.cms.jcajce.EnvelopedDataHelper.createContentCipher(Unknown Source) at org.bouncycastle.cms.jcajce.JceKeyTransEnvelopedRecipient.getRecipientOperator(Unknown Source) at org.bouncycastle.cms.KeyTransRecipientInformation.getRecipientOperator(Unknown Source) at org.bouncycastle.cms.RecipientInformation.getContentStream(Unknown Source) at org.bouncycastle.cms.RecipientInformation.getContent(Unknown Source) at pktb.PKTB.CmsDecrypt( at pktb.PKTB.main( Caused by: No such algorithm: 2.16.840. at javax.crypto.Cipher.getInstance(DashoA13*..) at javax.crypto.Cipher.getInstance(DashoA13*..) at org.bouncycastle.jcajce.NamedJcaJceHelper.createCipher(Unknown Source) ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.