Core: Updated to 11.0.7

Port From (https://github.com/TrinityCore/TrinityCore/commit/4f7079f471401d5cf7885351baabc027813f60f5)
This commit is contained in:
Hondacrx
2025-05-18 19:05:48 -04:00
parent 2448c07600
commit 5b992859d0
32 changed files with 1669 additions and 1429 deletions
@@ -5,16 +5,16 @@ using System.Security.Cryptography;
namespace Framework.Cryptography
{
public class SessionKeyGenerator256
public class SessionKeyGenerator512
{
public SessionKeyGenerator256(byte[] buff, int size = 0)
public SessionKeyGenerator512(byte[] buff, int size = 0)
{
if (size == 0)
size = buff.Length;
int halfSize = size / 2;
sh = SHA256.Create();
sh = SHA512.Create();
sh.TransformFinalBlock(buff, 0, halfSize);
o1 = sh.Hash;
@@ -48,7 +48,7 @@ namespace Framework.Cryptography
taken = 0;
}
SHA256 sh;
SHA512 sh;
uint taken;
byte[] o0 = new byte[32];
byte[] o1 = new byte[32];