From ea5533265cb87c3dff2d8e8858e9d131a79e1328 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 26 Feb 2024 14:12:20 +0100 Subject: [sse-c] fix encryption.rs and add block encryption --- src/block/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/block/block.rs') diff --git a/src/block/block.rs b/src/block/block.rs index 504d11f8..bd95680e 100644 --- a/src/block/block.rs +++ b/src/block/block.rs @@ -96,7 +96,7 @@ impl DataBlock { } } -fn zstd_encode(mut source: R, level: i32) -> std::io::Result> { +pub fn zstd_encode(mut source: R, level: i32) -> std::io::Result> { let mut result = Vec::::new(); let mut encoder = Encoder::new(&mut result, level)?; encoder.include_checksum(true)?; -- cgit v1.2.3