Dne 28.7.2013 19:54, Dominik Seichter napsal(a):
> Thanks for your patch. I committed it to SVN. At least we do not crash
> now anymore.
Hi,
I did some testing and the problem is that PdfEncryptAESV3::Decrypt uses
m_encryptionKey which contains all zeros, but calling
if (ok)
GenerateEncryptionKey("");
in PdfEncryptAESV3::Authenticate() is not enough (even it generates the
same key on a document load), because the decrypt as such fails.
I guess it's due to initialization vectors ('iv' in
PdfEncryptAESBase::AES()), though I'm not able to properly decrypt the
data directly in PdfEncryptAESV3::Encrypt().
I admit I have no idea how AES should work in PDF (and in general too).
pzent, could you follow-up on your commit [1], please? Or maybe Dominik?
Thanks and bye,
zyx
[1] http://sourceforge.net/p/podofo/code/1512/
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users