https://issues.apache.org/bugzilla/show_bug.cgi?id=52690
--- Comment #1 from [email protected] 2012-02-16 23:15:36 UTC --- It is extremely important that the size of the decrypted data stream exactly matches that specified in the input stream. Failure to ensure this means that windows System.IO.Packaging.Package.Open() method will return an error when trying to open the decrypted document. In practice this means that MS Office will report that the file is corrupt Just reading to the end of the input stream is not sufficient because there are normally padding bytes that must be discarded Currently Decryptor and/or its subclasses read and *discard* the required length In order to be able to create valid documents from encrypted ones, this length must be made available so the output stream can be truncated I wlll submit my proposed patch when I have sown time to create it in the required format -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
