Skip to content

Commit

Permalink
Fixed openssl signature bug
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Nov 5, 2024
1 parent fc4308a commit a9e0189
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 a9e0189

Please sign in to comment.