Skip to main content

Crate hide_object

Crate hide_object 

Source

Structs§

Extension
An ignorable map entry: key 64..=65535, value an opaque byte string. A reader that does not know the key skips it; it is still authenticated and signed.
Metadata
Preamble
ProtectedHeader
UnknownStanza
A recipient stanza of a type this implementation does not know. It is kept so the header re-encodes canonically and a signature can cover it, and it is skipped when looking for a key: a future recipient type must not make the file unreadable to the recipients it already had.
VerifiedObject

Enums§

ObjectError
SignaturePlacement
Where a signature is written. Public signatures are readable by anyone holding the file; confidential ones only by those who can already decrypt.
Stanza

Constants§

MAX_SIGNED_INPUT
A signed encrypt must hold the whole plaintext to hash it, so it is the one path that cannot stream. Unsigned encryption has no such limit.

Functions§

decrypt_to_staging
Writes provisional plaintext. The writer must be private staging storage, not a published file or stdout. Commit it only after this function returns Ok. Integrity does not authenticate the sender or verify a human identity.
encrypt
encrypt_signed
Encrypts and signs. Unlike encrypt, this buffers the payload, because the signature commits to the plaintext and so cannot be produced while streaming.