Skip to content

constants

VariableDescription
ALG_A256KWAES key wrap, RFC 9053 §6.2.1. The only wrap this version supports.
DEFAULT_CHUNK_SIZECaller-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_TYPEtyp header value identifying this envelope format.
KEY_SIZEContent encryption key size (AES-256).
MAX_AES_GCM_PLAINTEXT_SIZELargest plaintext the one-shot AES-256-GCM scheme accepts.
MAX_CHUNK_SIZECaller-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_SIZELargest complete encoded chunked object: envelope plus detached ciphertext, every 16-byte chunk tag included.
MIN_CHUNK_SIZECaller-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.