|
Hi all,
For a client project we need support for SHA512 and SHA384 hashing and digital signatures with HMAC). Can anyone tell me if there is work (being) done on SHA512? We're on Pharo 7.0.3.
At first, it didn't look too hard to refactor the SHA256 class in the System-Hashing package. That is... until I saw the use of ThirtyTwoBitRegister and the SHA256NonPrimitive and SHA256WithPrimitive classes in the Cryptography-SHA256 package.
It seems to me that SHA512 will need a SixtyFourBitRegister class.
Also, when I try to generate the constants on the fly with 64 bit values, the last 3 hexadecimal digits are zero (0). To me, this suggests that Pharo/Smalltalk might have issues working with 64 bit (float?) values.
"(Integer primesUpTo: 312) collect: [:x | (((x raisedTo: 1/3) fractionPart) * (2.0 raisedTo: 64)) truncated hex]"
Kind regards,
Jonathan van Alteren
Founding Member
+31622500930
|