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
3 changes: 1 addition & 2 deletions src/openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ fn sha256_digest(data: &[u8]) -> Vec<u8> {

/// Returns the MD5 hash of the provided data
fn md5_digest(data: &[u8]) -> Vec<u8> {
// There has to be a cleaner way to do this, but it works...
hex::decode(format!("{:x}", md5::compute(data))).expect("Failed to decode MD5 hash")
md5::compute(data).to_vec()
}

/// Returns the request hash of the provided data
Expand Down