diff options
author | Alex Auvolat <alex@adnab.me> | 2024-02-23 16:49:50 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-03-07 15:43:47 +0100 |
commit | 57acc60082089e1a24fd47588f6ff3cb20ed4eef (patch) | |
tree | d616a16a2225d81da6996386d19417bc04d785ac /src/block/block.rs | |
parent | fe2dc5d51c206c21ab15d9cc93fa1d1c52d95c46 (diff) | |
download | garage-57acc60082089e1a24fd47588f6ff3cb20ed4eef.tar.gz garage-57acc60082089e1a24fd47588f6ff3cb20ed4eef.zip |
[sse-c] Implement SSE-C encryption
Diffstat (limited to 'src/block/block.rs')
-rw-r--r-- | src/block/block.rs | 2 |
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)?; |