From 68e1b011712071f30d6207326e7f1ab7cb131d02 Mon Sep 17 00:00:00 2001 From: Moritz Baron Date: Thu, 10 Oct 2024 09:09:48 +0200 Subject: [PATCH] expose sha1 --- src/archive/file_entry.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/archive/file_entry.rs b/src/archive/file_entry.rs index 3b283f0..222ef14 100644 --- a/src/archive/file_entry.rs +++ b/src/archive/file_entry.rs @@ -56,6 +56,10 @@ impl FileEntry { self.name_hash_64 } + pub fn sha1_hash(&self) -> [u8; 20] { + self.sha1_hash + } + pub(crate) fn segments_start(&self) -> u32 { self.segments_start }