Hasan,

subasi wrote
> I enclosed the out.pdf also..
> 
>     MobileSignAPI msa= new MobileSignAPI();
>     msa.Sign("053xxxxxxxx", "sign", encodeTo64(hash), "pdf signing", 120);
>     pk = base64DecodeToByteArr(msa.getSignatureValue));

I just counted the bytes from this return as copied into the content. The
output is 128 bytes long, i.e. 1024 bits. This might be the output of the
RSA/1024 algorithm, i.e. possibly the very raw signature bytes. The contents
to set, though, are a PKCS#7 / CMS signature container.

If that assumption on the output is correct, you can try and use the
PdfPKCS7 class to wrap those raw signature bytes in a signature container
and set the PDF contents to the bytes of that container.

Regards,   Michael

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/external-signing-with-using-mobile-signing-api-itextsharp-tp4213470p4213567.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to