mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add submodule MinecraftProtocolLibrary
This commit is contained in:
parent
87026e1bfb
commit
3f1de66af3
62 changed files with 1093 additions and 450 deletions
|
|
@ -15,6 +15,7 @@ namespace MinecraftClient.Protocol.PacketPipeline
|
|||
private const int BufferSize = 1024;
|
||||
|
||||
public Socket Client;
|
||||
public bool HwAccelerateEnable { init; get; }
|
||||
private bool inStreamEnded = false;
|
||||
|
||||
private readonly IAesHandler Aes;
|
||||
|
|
@ -44,11 +45,20 @@ namespace MinecraftClient.Protocol.PacketPipeline
|
|||
AesBufSend = new byte[BlockSize];
|
||||
|
||||
if (FasterAesX86.IsSupported())
|
||||
{
|
||||
HwAccelerateEnable = true;
|
||||
Aes = new FasterAesX86(key);
|
||||
else if (FasterAesArm.IsSupported())
|
||||
}
|
||||
else if (false && FasterAesArm.IsSupported()) // Further testing required
|
||||
{
|
||||
HwAccelerateEnable = true;
|
||||
Aes = new FasterAesArm(key);
|
||||
}
|
||||
else
|
||||
{
|
||||
HwAccelerateEnable = false;
|
||||
Aes = new BasicAes(key);
|
||||
}
|
||||
|
||||
key.CopyTo(InputBuf.Slice(0, BlockSize));
|
||||
key.CopyTo(OutputBuf.Slice(0, BlockSize));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue