From c13fb5fb610ac40b428c90fe81d84b598fa93792 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Tue, 29 Jan 2019 13:39:30 -0500 Subject: [PATCH] method to clear signature field --- libcitadel/src/header.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libcitadel/src/header.rs b/libcitadel/src/header.rs index 3e5aaac..0c2fd69 100644 --- a/libcitadel/src/header.rs +++ b/libcitadel/src/header.rs @@ -226,6 +226,11 @@ impl ImageHeader { Ok(()) } + pub fn clear_signature(&self) -> Result<()> { + let zeros = vec![0u8; SIGNATURE_LENGTH]; + self.set_signature(&zeros) + } + pub fn public_key(&self) -> Result> { let metainfo = self.metainfo()?; public_key_for_channel(metainfo.channel())