Module: Omnizip::Crypto::Aes256::Constants

Included in:
Omnizip::Crypto::Aes256, Cipher, KeyDerivation
Defined in:
lib/omnizip/crypto/aes256/constants.rb

Overview

Constants for AES-256 encryption in 7-Zip format

Constant Summary collapse

KEY_SIZE =

Key size for AES-256 (32 bytes = 256 bits)

32
SALT_SIZE_MAX =

Maximum salt size (16 bytes)

16
SALT_SIZE =
16
IV_SIZE =

IV size (16 bytes = AES block size)

16
BLOCK_SIZE =
16
DEFAULT_CYCLES_POWER =

Default number of SHA-256 cycles (2^19 = 524288)

19
MIN_CYCLES_POWER =
0
MAX_CYCLES_POWER =
24