aboutsummaryrefslogtreecommitdiff
path: root/src/block/block.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-26 14:12:20 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-27 10:15:17 +0100
commitea5533265cb87c3dff2d8e8858e9d131a79e1328 (patch)
treee9f8131b9de1988346106eee853dfe8599ac57b2 /src/block/block.rs
parent439e7cb39f76852494ff9eb8ead499e29685af3f (diff)
downloadgarage-ea5533265cb87c3dff2d8e8858e9d131a79e1328.tar.gz
garage-ea5533265cb87c3dff2d8e8858e9d131a79e1328.zip
[sse-c] fix encryption.rs and add block encryption
Diffstat (limited to 'src/block/block.rs')
-rw-r--r--src/block/block.rs2
1 files changed, 1 insertions, 1 deletions
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<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)?;