1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-25 11:08:02 +02:00

MD5 GetHashCode

This commit is contained in:
Brian Fiete 2024-02-27 11:00:18 -05:00
parent df957137ea
commit a78ca4f393

View file

@ -32,7 +32,7 @@ namespace System.Security.Cryptography
}
}
struct MD5Hash : IParseable<MD5Hash>
struct MD5Hash : IParseable<MD5Hash>, IHashable
{
public uint8[16] mHash;
@ -90,6 +90,12 @@ namespace System.Security.Cryptography
#unwarn
HashEncode.HashEncode64(((uint64*)&mHash)[1], outStr);
}
public int GetHashCode()
{
#unwarn
return *(int*)&mHash;
}
}
class MD5