Module: RepoInternal

Included in:
LEnc::Repo
Defined in:
lib/lenc/aes.rb,
lib/lenc/repo.rb

Defined Under Namespace

Classes: IgnoreEntry, MyAES

Constant Summary collapse

AES_BLOCK_SIZE =

16
PAD_BYTE =
254
PAD_CHAR =
PAD_BYTE.chr
CHUNK_HEADER_SIZE =
8
CHUNK_VERIFY_SIZE =
CHUNK_HEADER_SIZE - 1
CHUNK_VERIFY_STR =
0.chr * CHUNK_VERIFY_SIZE
CHUNK_SIZE_DECR =

Size of input chunks during decryption (they include space for a header); must be a multiple of AES_BLOCK_SIZE

1 << 16
CHUNK_SIZE_ENCR =

Size of input chunks during encryption

CHUNK_SIZE_DECR - CHUNK_HEADER_SIZE
NONCE_SIZE_LARGE =

The size of nonce the underlying API expects

16
NONCE_SIZE_SMALL =

The size of nonce we’ll be using (we’ll pad it out with zeros when a full size one is required)

8