Expand description
OXSG sealed segment: the outer header and the chunk structure of the body.
Structs§
- Sealed
Segment - A sealed segment: header and body. The body is chunks of ciphertext and tags, opaque here.
- Segment
Header - The unsealed header of a segment. Its bytes are the AEAD associated data’s input.
Constants§
- CHUNK_
PLAINTEXT_ LEN - Plaintext bytes in a full chunk.
- CHUNK_
TAG_ LEN - Length of the authentication tag that ends every chunk.
- MIN_
SEGMENT_ LEN - Smallest segment: a header and one chunk holding the 14-byte plaintext header.
- SEGMENT_
HEADER_ LEN - Length of the segment header.
Functions§
- plaintext_
len - Plaintext length of a body of
body_lenbytes: every chunk but the last is full and the last holds at least one plaintext byte.