SHA and HMAC functions ported to Hollywood

Show off your project created with Hollywood
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: SHA and HMAC functions ported to Hollywood

Post by Allanon »

Hi @lazi!
Happy that it is working now!
If you have updated to the latest version of Hollywood please try the update libSHA I've uploaded just a few minutes ago on GitHub, it should be faster now, no more emulation of bitwise operators since Andreas has fixed this problem on ARM devices :)
Let me know if it works, if not working just change the handle_hw_bug to True:

Code: Select all

; HANDLER FOR BUG IN ARM DEVICES FOR BITWISE OPERATIONS
Local handle_hw_bug = True
I've not removed the old implementation completely because I only tested it on Pi4, Windows & Linux

P.S.: at the end of the script I wrote some time counters to check the performances and to verify if my changes produced speed ups or not :)
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
User avatar
airsoftsoftwair
Posts: 5848
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SHA and HMAC functions ported to Hollywood

Post by airsoftsoftwair »

Code: Select all

- New: Added SHA1() function to DOS library and SHA1Str() function to string library; these functions can
  be used to compute SHA1 checksums of files and strings; even though SHA1 is somewhat obsolete now, it's
  still widely used and can be useful in lots of cases; since SHA1 implementations have quite a very low
  footprint it makes sense to add SHA1 support along CRC32 and MD5 which are already supported
Post Reply