pub fn split(
full_ciphertext: &[u8],
file_uuid: &[u8; 16],
shard_size: usize,
redundant_header: Option<&[u8]>,
) -> Result<Vec<Vec<u8>>>Expand description
把完整密文切分为多个分片。
redundant_header 若提供,会附加到 shard_index > 0 的每一片中
(第 0 片本身就含主 header,无需冗余)。
§Errors
Error::MalformedHeader:shard_size 为 0,或片数超过 u32 上限。