On 20.12.2017 4:24, Cory Mickelson wrote:
Do you have any recommendations for improving the performance when signing
a larger document?

        Hi,
podofosign passes almost whole file content (as stored on the disk) to the OpenSSL, which computes the hash of the data and that is later signed with the certificate.

Looking into the code, into podofosign.cpp, the sign_with_signer() uses 65535 bytes large buffer as its starting size (it makes it smaller when it fails to allocated that memory). That makes approximately 480 read and write operations for a 30MB file. Try to set the uBufferLen default value to some larger number, maybe it'll help.

Otherwise I have nothing better; it's kind of expected that compute a hash for 30MB of data takes some time, from my point of view. You can compare with a raw openssl call (parameters to sign a file using a certificate can be found on the Internet, it's like signing a message), whether it'll make any difference in case the buffer size change won't help.
        Bye,
        zyx

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to