Re: [iText-questions] [SPAM] Error on PDF decryption
Hi, I debugged it down to EnvelopedDataHelper.createCipher(ASN1ObjectIdentifier algorithm); In my case the algorithm is 1.2.840.113549.3.2. This value comes from the very beginning (I guess at the time of encryption), from the encrypted document as messageAlgorithm, as well as keyEncAlg which in my case is 1.2.840.113549.1.1.1. On line 179 it tries to find this algorithm from HashMap, but there is no such algorithm. So it tries directly Cipher.getInstance(1.2.840.113549.3.2, pkcs11prov); but it fails. Yes, I know this is in BC code, but the algorithm strings come from iText code. What should I do? Best Regards, Valentin -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] [SPAM] Error on PDF decryption
Hi, decryption/encryption using BC 1.46 an iText 5.2.1 is working fine. Encryption using BC 1.49 and iText 5.4.2 is working fine, but decrypting throws : The code where the exception is thrown is : The provider is SunPKCS11! Regards, Valentin -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-on-PDF-decryption-tp4658603.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] [SPAM] Error on PDF decryption
You'll have to provide more information, like a complete stack strace. Paulo On Wed, Jun 26, 2013 at 3:14 PM, Valentin Ivanov vliva...@bobs.bg wrote: Hi, decryption/encryption using BC 1.46 an iText 5.2.1 is working fine. Encryption using BC 1.49 and iText 5.4.2 is working fine, but decrypting throws : The code where the exception is thrown is : The provider is SunPKCS11! Regards, Valentin -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-on-PDF-decryption-tp4658603.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php