From 3734a903d836a59dd21f9e4fe2814530c4416e2c Mon Sep 17 00:00:00 2001 From: Zachary Dremann Date: Fri, 28 Nov 2025 00:55:56 -0500 Subject: [PATCH] use the library from the binary using `mod` statements in the `main.rs` meant all the modules were being compiled once for the library, then again for the binary. Instead, use the library version from the binary --- src/main.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/main.rs b/src/main.rs index 02e33c3..a49f96a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,17 +1,5 @@ use log::{error, info, trace}; use thiserror::Error; -mod aes; -mod common; -mod dap1610; -mod decryptor; -mod dlk; -mod encimg; -mod encrpted; -mod mh01; -mod openssl; -mod sha1_hmac; -mod shrs; -mod tlv; #[derive(Error, Debug)] pub enum ApplicationError { @@ -52,7 +40,7 @@ fn main() -> Result<(), ApplicationError> { trace!("Attempting to decrypt data from: {}", input_file_name); // Try all decryption methods - if let Ok(decrypted_data) = decryptor::decrypt(&file_data) { + if let Ok(decrypted_data) = delink::decrypt(&file_data) { info!("Decryption successful!"); if write_decrypted_data(&output_file_name, &decrypted_data) { Ok(())