Constant MIN_INPUT_LENGTH

pub const MIN_INPUT_LENGTH: usize = 44; // 44usize
Expand description

Minimal input size:

  • 32 bytes for the AES key,
  • 12 bytes for the nonce,
  • 0+ bytes for plaintext (we allow empty plaintext).

= at least 40 if you want to allow zero-length plaintext.