Split signature handler for signing and verification
requested to merge svuorela/poppler:svuorela/split-signature-handling-in-verification-and-sign into master
Only a little bit of the class state was shared between the signing and verification functions, so split it in the shared hashing bits and a class for signing and one for verification
Also clean up a little bit of the memory handling