Devilution: sha.cpp

Created on 18 Sep 2018  路  4Comments  路  Source: diasurgical/devilution

  • [x] 456A16 (SHA1Clear)
  • [x] 456A2B (SHA1Result)
  • [x] 456A4D (SHA1Calculate)
  • [x] 456A73 (SHA1Input)
  • [x] 456AC4 (SHA1ProcessMessageBlock)
  • [x] 456C82 (SHA1Reset)
  • [x] 456C90 (SHA1Init)
Binary exact

All 4 comments

The version of SHA1 here is the standard version which you can find everywhere so it shouldent be to hard to update it, there is also a non standard version of it (the location of that IIRC) is in battle.snp that was named by many as BrokenSHA1 or X-SHA1.
Edit: Actually I'll retract that, the math in here looks like it may be the broken SHA-1, either way version here shouldent mater to much if its doing the job, if you want the fleshed out version of that you can find it within the pvpgn code. (and on another note you could unloop all of that to make it run faster).

You may also take a look at the commented version at https://github.com/sanctuary/djavul/blob/master/d1/sha1/sha1.go

It reimplements the broken-SHA1 correctly, and has been used to extract the contents of the encrypted save files.

@mewmew added SHA1Init

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AJenbo picture AJenbo  路  7Comments

utilForever picture utilForever  路  4Comments

ghost picture ghost  路  6Comments

ghost picture ghost  路  3Comments

ghost picture ghost  路  7Comments