diff options
author | xuri <xuri.me@gmail.com> | 2022-06-27 21:00:59 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-06-27 21:00:59 +0800 |
commit | 301f7bc21755cdf7c91c9acd50ddcdcf0285f779 (patch) | |
tree | 9c549c73aae6ffd01c152bc6b87643c9be24c81d /crypt.go | |
parent | 2e1b0efadc0519fa4572b2437401bf2993366a07 (diff) |
This closes #1260, fixes compiling issue under 32-bit, and new formula functions
- ref #65, new formula functions: DCOUNT and DCOUNTA
- support percentile symbol in condition criteria expression
- this update dependencies module
Diffstat (limited to 'crypt.go')
-rw-r--r-- | crypt.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1226,10 +1226,10 @@ func (c *cfb) Writer(encryptionInfoBuffer, encryptedPackage []byte) []byte { } MSAT = c.writeMSAT(MSATBlocks, SATBlocks, MSAT) blocks, SAT := c.writeSAT(MSATBlocks, SATBlocks, SSATBlocks, directoryBlocks, fileBlocks, streamBlocks, SAT) - storage.writeUint32(0xE011CFD0) - storage.writeUint32(0xE11AB1A1) - storage.writeUint64(0x00) - storage.writeUint64(0x00) + for i := 0; i < 8; i++ { + storage.writeBytes([]byte{oleIdentifier[i]}) + } + storage.writeBytes(make([]byte, 16)) storage.writeUint16(0x003E) storage.writeUint16(0x0003) storage.writeUint16(-2) |