Constant lair_keystore_api::internal::crypto_box::BLOCK_PADDING_SIZE[][src]

pub const BLOCK_PADDING_SIZE: usize = 32;
Expand description

The size of blocks to pad encrypted data to. We have no idea how big incoming data is, but probably it is generally smallish. Devs can always do their own padding on top of this, but we want some safety for unpadded data. Libsodium optionally supports ISO 7816-4 padding algorithm. @see https://doc.libsodium.org/padding#algorithm