diff --git a/BeefLibs/corlib/src/Security/Cryptography/SHA256.bf b/BeefLibs/corlib/src/Security/Cryptography/SHA256.bf index 8a99fa5b..609a0a75 100644 --- a/BeefLibs/corlib/src/Security/Cryptography/SHA256.bf +++ b/BeefLibs/corlib/src/Security/Cryptography/SHA256.bf @@ -2,7 +2,7 @@ using System.IO; namespace System.Security.Cryptography { - struct SHA256Hash : IParseable + struct SHA256Hash : IParseable, 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