Module consts

Module consts 

Source
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.