Skip to content

Commit

Permalink
Fix decryption
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpl0itU committed Apr 20, 2024
1 parent ea5f7ac commit f357147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func decryptContentToBuffer(encryptedFile *os.File, decryptedBuffer *bytes.Buffe
break
}
}
if !reflect.DeepEqual(content.Hash, contentHash.Sum(nil)) {
if !reflect.DeepEqual(content.Hash[:sha1.Size], contentHash.Sum(nil)) {
return errors.New("content hash mismatch")
}
}
Expand Down

0 comments on commit f357147

Please sign in to comment.