diff --git a/BeefLibs/corlib/src/Security/Cryptography/MD5.bf b/BeefLibs/corlib/src/Security/Cryptography/MD5.bf index 9a09adc8..fc1484c3 100644 --- a/BeefLibs/corlib/src/Security/Cryptography/MD5.bf +++ b/BeefLibs/corlib/src/Security/Cryptography/MD5.bf @@ -32,7 +32,7 @@ namespace System.Security.Cryptography } } - struct MD5Hash : IParseable + struct MD5Hash : IParseable, 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