1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 12:02:21 +02:00

Add GetHashCode to SHA256

This commit is contained in:
Brian Fiete 2024-08-14 16:46:34 -04:00
parent 9f94d4588f
commit fa1ce4dc86

View file

@ -2,7 +2,7 @@ using System.IO;
namespace System.Security.Cryptography
{
struct SHA256Hash : IParseable<SHA256Hash>
struct SHA256Hash : IParseable<SHA256Hash>, IHashable
{
public uint8[32] mHash;
@ -64,6 +64,12 @@ namespace System.Security.Cryptography
#unwarn
HashEncode.HashEncode64(((uint64*)&mHash)[3], outStr);
}
public int GetHashCode()
{
#unwarn
return *(int*)&mHash;
}
}
class SHA256