Hi,

that's weird.
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.
Thanks.

Bye

Andreas

Am 01.04.2014 21:07, schrieb zyx:
On Mon, 2014-03-31 at 14:05 +0200, Andreas Brzesowsky wrote:
okay now I have the patch for AESv3 decryption finished:
	Hi,
thanks a lot for the follow-up. I applied your patch to trunk and run
the test program I sent earlier [1], which creates some encrypted PDF
files in PoDoFo and then tries to read them, and the AESv3 still fails,
this time with a different error:

        
        Testing aesv3.pdf:
        Failed with error:
        
        PoDoFo encounter an error. Error: 8 ePdfError_InternalLogic
        	Error Description: An internal error occurred.
        	Callstack:
        	#0 Error Source: .../src/base/PdfParser.cpp:1028
        		Information: Error while loading object 2 0 Offset = 59 Index = 2
        
        	#1 Error Source: .../src/base/PdfEncrypt.cpp:1286
        		Information: Error AES-decryption data length not a multiple of the key length

I hope it helps with a diagnose.
	Bye,
	zyx

[1] http://sourceforge.net/p/podofo/mailman/message/32079121/


--

dots

Andreas Brzesowsky

dots Software GmbH
Schlesische Str. 27, 10997 Berlin, Germany
Phone: +49 (0)30 695 799-34, Fax: +49 (0)30 695 799-55

andreas.brzesow...@dots.de
http://www.dots.de

Amtsgericht (District Court): Berlin Charlottenburg HRB 65201
Geschäftsführer (Managing Directors): Olaf Lorenz, Ken Osuga

Follow us on: Twitter Youtube Xing
------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to