Skip to content

Commit

Permalink
Merge pull request #738 from ReFirmLabs/fix_openssl_sig
Browse files Browse the repository at this point in the history
Fixed openssl signature bug
  • Loading branch information
devttys0 authored Nov 5, 2024
2 parents fc4308a + a9e0189 commit 1d4d3b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/magic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ pub fn patterns() -> Vec<signatures::common::Signature> {
name: "openssl".to_string(),
short: false,
magic_offset: 0,
always_display: false,
always_display: true,
magic: signatures::openssl::openssl_crypt_magic(),
parser: signatures::openssl::openssl_crypt_parser,
description: signatures::openssl::DESCRIPTION.to_string(),
Expand Down
2 changes: 1 addition & 1 deletion src/structures/openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub struct OpenSSLCryptHeader {

/// Parse an OpenSSl crypto header
pub fn parse_openssl_crypt_header(ssl_data: &[u8]) -> Result<OpenSSLCryptHeader, StructureError> {
let ssl_structure = vec![("magic", "u32"), ("salt", "u64")];
let ssl_structure = vec![("magic", "u64"), ("salt", "u64")];

if let Ok(ssl_header) = common::parse(ssl_data, &ssl_structure, "big") {
return Ok(OpenSSLCryptHeader {
Expand Down

0 comments on commit 1d4d3b4

Please sign in to comment.