The AES-256 /R 6 encrypting encoder (Pass 5.4) — the seam’s first
non-identity implementation, and the reason it exists (decision 007 W8).
Encrypts every string and stream through Algorithm 1.A (§7.6.3.3): a
fresh random 16-byte IV prefixed to AES-256-CBC ciphertext, PKCS#7 always
padded. At /V 5 the object key IS the file key (T24), so no per-object
derivation happens here.
§What it does NOT encrypt, and why the writer decides by OWNER id
The ObjectEncoder trait hands this only the bytes and the containing
object’s id — not the dictionary — so the exemptions that depend on an
object’s ROLE (the /Encrypt dict itself, cross-reference streams,
/Metadata when /EncryptMetadata is false, external streams, an
/Identity crypt filter) are resolved by the caller into two id sets and
consulted here. A signed document is refused UPSTREAM (EditError), so the
per-string /Contents exemption (N13) never has to be expressed at this
granularity in this cut.