diff --git a/src/lib.rs b/src/lib.rs index 5e566d589..0115aaa0a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,8 +126,8 @@ pub use xor_name; /// The minimum size (before compression) of data to be self-encrypted, defined as 3B. pub const MIN_ENCRYPTABLE_BYTES: usize = 3 * MIN_CHUNK_SIZE; -/// The maximum size (before compression) of an individual chunk of a file, defined as 500kiB. -pub const MAX_CHUNK_SIZE: usize = 512 * 1024; +/// The maximum size (before compression) of an individual chunk of a file, defined as 1024kiB. +pub const MAX_CHUNK_SIZE: usize = 1024 * 1024; /// The minimum size (before compression) of an individual chunk of a file, defined as 1B. pub const MIN_CHUNK_SIZE: usize = 1; /// Controls the compression-speed vs compression-density tradeoffs. The higher the quality, the