Comment causes signature validation failure
Hi all,
I am writing a C++ signature library which works fine so far, what means that Adobe Reader 2015.017.20053 shows the signature toolbar, including the green sign and "Signed and all signatures are valid".
Now, I add a comment line to the document before signing it with my library.
The signing algorithm and calculation of input data for the signature calculation stays as-is (so the comment is included in that data).
The comment breaks the signature verification, because now Adobe reader says "At least one signature is invalid", and in the signature panel it says "There are errors in the formatting or information contained in this signature (The signature byte range is invalid)".
Is there a special rule how to handle comments in signature calculation?
Or does Adobe reader verify those documents differently? Is there maybe a bug?
