mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-13 13:52:23 +00:00
Decrypting password-protected workbooks ([MS-OFFCRYPTO], Agile and Standard) moved to storytold/craft-libs as craft-offcrypto (#931), on craft-cfb. GridCraft keeps its DecryptError and the engine's messages; crypto.rs maps the crate's errors onto it. The private compound-file reader and its tests are gone: sniffing looks for the encryption streams with craft_cfb::has_entry_named (with the same fallback for a damaged directory), and the test builders encrypt with craft-offcrypto and write compound files with craft-cfb. One difference, as craft-offcrypto has it: the dataIntegrity HMAC key is used at the length it decrypts to (up to the hash size); GridCraft accepted only a salt-size or hash-size key. Both verify what Office writes.