张健, jian zhang wrote: > Could you please give me a sample code for using DigestInfo then RSA to > generate a signature? > Use Bouncy Castle library? > I'm a newer in this security field.
As mentioned before I merely have to cope with externally generated /adbe.pkcs7.detached signatures; therefore, I don't have any ready-to-use sample code for /adbe.x509.rsa_sha1 signatures other than http://itextpdf.sourceforge.net/howtosign.html or http://itextpdf.com/book/chapter.php?id=12 (Chapter 12 of the Book will definitively help you understand what what you are doing.) All code I have here expects you to already have some code externally generating a PKCS#7 container for a given hash value. Regards, Michael. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Another-invalid-signature-thread-tp3003710p3015069.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