mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-07-30 17:30:40 +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)
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace Esiur.Net.Packets
|
||||
Identity,
|
||||
AuthenticationProtocol,
|
||||
AuthenticationData,
|
||||
ErrorMessage
|
||||
ErrorMessage,
|
||||
CipherNonce
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user