mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Bug fix
This commit is contained in:
parent
bcded40476
commit
db17babe58
6 changed files with 23 additions and 26 deletions
|
|
@ -88,9 +88,12 @@ namespace MinecraftClient.Protocol.Keys
|
|||
/// <param name="bodyDigest">Message body hash</param>
|
||||
/// <param name="signature">Message signature</param>
|
||||
/// <returns>Is this message header vaild</returns>
|
||||
public bool VerifyHeader(ref byte[] bodyDigest, ref byte[] signature)
|
||||
public bool VerifyHeader(Guid uuid, ref byte[] bodyDigest, ref byte[] signature, ref byte[]? precedingSignature)
|
||||
{
|
||||
return VerifyData(bodyDigest, signature);
|
||||
|
||||
byte[] msgSignData = KeyUtils.GetSignatureData(precedingSignature, uuid, bodyDigest);
|
||||
|
||||
return VerifyData(msgSignData, signature);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue