[sse-c] Implement SSE-C encryption

This commit is contained in:
Alex Auvolat
2024-02-23 16:49:50 +01:00
parent fe2dc5d51c
commit 57acc60082
18 changed files with 1530 additions and 235 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ impl DataBlock {
}
}
fn zstd_encode<R: std::io::Read>(mut source: R, level: i32) -> std::io::Result<Vec<u8>> {
pub fn zstd_encode<R: std::io::Read>(mut source: R, level: i32) -> std::io::Result<Vec<u8>> {
let mut result = Vec::<u8>::new();
let mut encoder = Encoder::new(&mut result, level)?;
encoder.include_checksum(true)?;