Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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(())
Expand Down