Component DCPHashes, which are part of DCPCrypt do not calculate Hashes correctly for files greatre than 4 GB
Original Reporter info from Mantis: cringer0
-
Reporter name: Scott
Original Reporter info from Mantis: cringer0
- Reporter name: Scott
Description:
When calculating the MD5, SHA1, SHA256 hashes for a file that is greater than 4 GB, the resulting hash is incorrect.
Steps to reproduce:
To give you a test file, go here: https://www.microsoft.com/en-us/software-download/windows8ISO
Download the Windows 8.1 64-bit ISO (Win8.1_English_x64.iso)
Calculate one of these sums: MD5, SHA1, SHA256
The generated sums will be incorrect.
The incorrect hash sums that DCPHashes calculates for this file are as follows:
FILE: Win8.1_English_x64.iso
MD5: 1e356350e3719878493eb7270cf19251
SHA1: 9954c50d6452095a2bb8fb3f1e2de75ed19a606d
SHA256: a056230d2f74a9a912a0e0d1e68259fda40ef51969cb4eee8c21160f60373ef4
The hash time is also very short, a matter of a few seconds, compared to a file that is just under 4 GB, which takes several minutes to compute.
The correct hash sums for the same file:
FILE: Win8.1_English_x64.iso
MD5: e0d4594e56c0545d379340e0db9519a5
SHA1: a8b5df0b0816280ae18017bc4b119c77b6c6eb79
SHA256: d8333cf427eb3318ff6ab755eb1dd9d433f0e2ae43745312c1cd23e83ca1ce51
Mantis conversion info:
- Mantis ID: 31934
- OS: Windows Vista Home Premium
- OS Build: Service Pack 2
- Build: SVN 54278
- Platform: x64
- Version: 1.6.4
- Monitored by: » cringer0 (Scott), » AntonK (Anton Kavalenka)