From 39e8184b5d31a29f108ae7ecafafb4b948324471 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 4 Apr 2024 18:45:02 +0800 Subject: [PATCH] chore: add a comment --- tools/src/swap_writer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/src/swap_writer.rs b/tools/src/swap_writer.rs index 91b448a6d..caa4cf45a 100644 --- a/tools/src/swap_writer.rs +++ b/tools/src/swap_writer.rs @@ -54,6 +54,8 @@ impl SwapHeader { impl SwapWriter { pub fn new() -> Self { SwapWriter { buffer: Cursor::new(Vec::new()) } } + /// Take the swap file and wrap it data structures that facilitate per-device encryption + /// after deployment to a user device. pub fn encrypt_to(&mut self, mut f: T) -> Result where T: Write + Seek,