Re: [Podofo-users] what is the status of AES Decrypt/Encrypt
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: zyx <zy...@li...> - 2014-04-06 17:24:29
|
On Thu, 2014-04-03 at 11:43 +0200, Andreas Brzesowsky wrote: > Because if the patch is applied correctly the error message "Error > AES-decryption data length not a multiple of the key length" does not > exists anymore > In the patch are these lines: > - if( lLen % keyLen != 0 ) > - PODOFO_RAISE_ERROR_INFO( ePdfError_InternalLogic, "Error > AES-decryption data length not a multiple of the key length" ); > + if( lLen % 16 != 0 ) > + PODOFO_RAISE_ERROR_INFO( ePdfError_InternalLogic, "Error > AES-decryption data length not a multiple of 16" ); > > So can you please make sure that the patch is correctly applied. Hi, the message you changed was at PdfAESStream::Decrypt(), but that message I get is from PdfEncryptAESBase::BaseDecrypt(). I changed it the same as you did above and it works as expected, thus I committed it to trunk as r1595: http://sourceforge.net/p/podofo/code/1595 Thanks a lot for the help on this. Bye, zyx -- http://www.litePDF.cz in...@li... |