Skip to content

constants

Variable Description
ALG_A256KW AES key wrap, RFC 9053 §6.2.1. The only wrap this version supports.
DEFAULT_CHUNK_SIZE Caller-facing constants only: a curated re-export list. Values stay owned where they are defined; this file defines nothing. Implementation constants stay internal — add a value here only when callers need it.
ENVELOPE_TYPE typ header value identifying this envelope format.
KEY_SIZE Content encryption key size (AES-256).
MAX_AES_GCM_PLAINTEXT_SIZE Largest plaintext the one-shot AES-256-GCM scheme accepts.
MAX_CHUNK_SIZE Caller-facing constants only: a curated re-export list. Values stay owned where they are defined; this file defines nothing. Implementation constants stay internal — add a value here only when callers need it.
MAX_ENCODED_OBJECT_SIZE Largest complete encoded chunked object: envelope plus detached ciphertext, every 16-byte chunk tag included.
MIN_CHUNK_SIZE Caller-facing constants only: a curated re-export list. Values stay owned where they are defined; this file defines nothing. Implementation constants stay internal — add a value here only when callers need it.