mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Bug 58133 - Agile encryption - wrong checksum calculation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
57fb8da868
commit
07f40b539d
@ -134,7 +134,7 @@ public abstract class ChunkedCipherOutputStream extends FilterOutputStream {
|
||||
super.close();
|
||||
|
||||
int oleStreamSize = (int)(fileOut.length()+LittleEndianConsts.LONG_SIZE);
|
||||
calculateChecksum(fileOut, oleStreamSize);
|
||||
calculateChecksum(fileOut, (int)_pos);
|
||||
dir.createDocument(DEFAULT_POIFS_ENTRY, oleStreamSize, new EncryptedPackageWriter());
|
||||
createEncryptionInfoEntry(dir, fileOut);
|
||||
} catch (GeneralSecurityException e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user