Skip to content

Commit c6056e5

Browse files
committed
Fix hashes padding
1 parent 9ceb57b commit c6056e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redump_psp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def read_in_chunks(file_object, chunk_size=1024):
4141
sha1.update(piece)
4242
md5.update(piece)
4343

44-
return (format(prev_crc32 & 0xFFFFFFFF, 'x'),
45-
sha1.hexdigest(),
46-
md5.hexdigest())
44+
return (format(prev_crc32 & 0xFFFFFFFF, 'x').zfill(8),
45+
sha1.hexdigest().zfill(40),
46+
md5.hexdigest().zfill(32))
4747

4848

4949
def gen_psp_redump(iso, out):

0 commit comments

Comments
 (0)