mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-07-31 01:40:42 +00:00
AES
This commit is contained in:
@@ -158,7 +158,8 @@ public class EpAuthPacket : Packet
|
||||
if (Command == EpAuthPacketCommand.Initialize)
|
||||
{
|
||||
AuthMode = (AuthenticationMode)(data[offset] >> 2 & 0x3);
|
||||
EncryptionMode = (EncryptionMode)(data[offset++] & 0x7);
|
||||
// Authentication occupies bits 2-3; encryption is confined to bits 0-1.
|
||||
EncryptionMode = (EncryptionMode)(data[offset++] & 0x3);
|
||||
}
|
||||
else if (Command == EpAuthPacketCommand.Acknowledge)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user