Hi Pedro, thanks for supplying the PDF, that helps alot when tracking down the problem. As far as can analyse your signature you supplied the readymade signed bytes to the signature object. Reading these bytes back it has a length of 131 bytes, what's a bit unusual as the result of a 1024 bit encryption. So I would guess that the method
byte[] signedHash = CcMethods.sign(hash); is not returning what you are expecting. Maybe its a DigestInfo structure ... Please take a look at the CcMethods documentation. Greetings Andreas ----- original Nachricht -------- Betreff: Re: [iText-questions] Another invalid signature thread Gesendet: Do, 21. Okt 2010 Von: P3d3r0s0<zas...@gmail.com> > > Hey, i have a sample here: > http://www.filefactory.com/file/b3gd1ce/n/signed.pdf > > Im really out of ideas. > Regards > -- > View this message in context: > http://itext-general.2136553.n4.nabble.com/Another-invalid-signature-thread- > tp3003710p3005238.html > Sent from the iText - General mailing list archive at Nabble.com. > > ---------------------------------------------------------------------------- > -- > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > 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 > --- original Nachricht Ende ---- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions 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