Expand description
Constants used in the PostGuard protocol.
Constants§
- HEADER_
SIZE_ SIZE - The size of the header size.
- IV_SIZE
- Size of the initialization vector.
- KEY_
SIZE - Size of the symmetric key.
- MAX_
HEADER_ SIZE - The maximum size of the header (1 MiB).
- MAX_
SYMMETRIC_ CHUNK_ SIZE - The maximum size of symmetric segments (4 MiB).
- POL_
SIZE_ SIZE - The size of the policy size.
- PREAMBLE_
SIZE - The preamble contains the following bytes:
- PRELUDE
- The tag bytes with which all PostGuard bytestreams begin.
- PRELUDE_
SIZE - The size of the tag with which all PostGuard bytestreams begin.
- SIG_
SIZE_ SIZE - The size of the signature size.
- STREAM_
NONCE_ SIZE - Size of the nonce in the “STREAM” encryption construction.
- SYMMETRIC_
CRYPTO_ DEFAULT_ CHUNK - Default size of symmetric encryption segments, if in streaming mode.
- TAG_
SIZE - Size of the authentication tag. The authentication tag is appended to each segment.
- VERSION_
SIZE - The size of the version identifier.
- VERSION_
V1 - Version 0 (legacy).
- VERSION_
V2 - Version 1 (legacy).
- VERSION_
V3 - Version 2.