Hy !

At this time, i´m "deep" in PDF - Reference (15_v6, 16).
So I need some orientation.
There are different signature - types to PFD - ByteRange, Object Digest.

If SubFilter says so, there´s a PKCS#7 in the Contents - Field of Signature
Dictionary.
(...)
1. topic: verify PDF Signature
Story: There is Reference - Dictionary specified and there´s a CMSSignedData in
"Contents" - field of Signature Dictionary.

Questions:

1. 
It´s FieldMDP - Signature in my case. 
Reference says, digest will be calculated over "Data" - Field of Signature
Dictionary. But theres also ByteRange specified,
as Reference mentions i think i have to get the bytes specified from my raw-PDF
- data and recalculate the digest. 
DigestMethod says "MD5". How do i verify MD5 digest, along with PDF - logic,
(I get along with the implementation-part, till now).
More detail, in Reference - Dictionary there is "DigestValue".  Against what do
I verify this ? Data or ByteRange ?

2. 
Is there some visual (i.e. diagrams,...) help to understand complexity of PDF
Signature ? Where ?

3. 
Implementation detail:
In case the PDF is password - secure, till know i stick with a work-around
with "PDFBox", i dont want this.
try{//this is the "Contents" - Entry of Signature Dictionary
 CMSSignedData oSC= new CMSSignedData(pBytes);
...
throws some io exception.//but only if PDF is password secure !!!
                          //again, in case i use the "decrypt" - Method from    
                          //PDFBox before, I need a "copy" of raw data in memory
                          //but i badly get the cms - data parsed.
What do i have do consider in case i want to parse PKCS7 Contents - Field of
Signature Dictionary out from a password - secure PDF (i initiate PdfReader with
the password and raw data, that´s not my problem) ?

ANY of these question ANSWERED would be GREAT help to me !
Any hint I would appreciate !

Florian







-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to