Crate ms_offcrypto_writer

Crate ms_offcrypto_writer 

Source
Expand description

This crate allows encrypting ECMA376/OOXML (so newer MS-Office files such as XLSX) using the agile encryption method as described in MS-OFFCRYPTO.

See the Ecma376AgileWriter type for the actual API of this crate.

§Implementation details

All functions writing structures expect the buffer to be logically aligned to (= the length of the buffer is a multiple of) four bytes, and leave the buffer aligned to four bytes upon returning.

A such, they may panic if and only if

  1. They are passed an improperly aligned buffer, or
  2. Reallocation of the buffer upon growing fails.

Structs§

Ecma376AgileWriter
A wrapper for a given buffer or file type that implements the ECMA376 Agile encryption as described in MS-OFFCRYPTO.

Traits§

Password
A type that can be used as a password. Passwords are encoded as UTF16LE, so types that can directly return those codepoints without reencoding are preferable.