Expand description
Encrypted, authenticated local-runtime frames; admission/replay are host-owned. Owners provision a fresh scoped 32-byte key and a fresh random 24-byte nonce for EVERY frame. Never reuse a nonce with the same key, including on retries.
Enums§
- Runtime
Frame Direction - Authenticated associated data separates request and response domains.
- Runtime
Frame Error
Constants§
- MAX_
RUNTIME_ FRAME_ PAYLOAD_ BYTES - Maximum plaintext bytes, excluding header, nonce and authentication tag.
- RUNTIME_
FRAME_ HEADER_ BYTES - Magic/version and big-endian plaintext length, read before any allocation.
- RUNTIME_
FRAME_ NONCE_ BYTES - Extended nonce; generated with a cryptographic random source by the sender.
- RUNTIME_
FRAME_ TAG_ BYTES - Full Poly1305 tag, appended to the ciphertext. Truncation is not accepted.
Functions§
- decode_
runtime_ frame - Authenticate and decrypt before JSON decoding or dispatch. A wrong peer or active relay sees ciphertext, not the projection. This does not admit a capability or prevent replay; those require trusted policy and session state.
- encode_
runtime_ frame - Encode version/length, random nonce, ciphertext and its complete tag. Nonce MUST be fresh cryptographic randomness for every call under this key.
- runtime_
payload_ length - Check the fixed header BEFORE allocating/reading the declared ciphertext.