From a78ca4f39325e4dfe5a201207a1008a8a063ba49 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 27 Feb 2024 11:00:18 -0500 Subject: [PATCH] MD5 GetHashCode --- BeefLibs/corlib/src/Security/Cryptography/MD5.bf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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