C# Class coc_proxy_csharp.ServerCrypto

Inheritance: Protocol
Mostrar archivo Open project: clugh/coc-proxy-csharp Class Usage Examples

Protected Properties

Property Type Description
serverKey Sodium.KeyPair

Public Methods

Method Description
DecryptPacket ( Socket socket, ServerState state, byte packet ) : void
EncryptPacket ( Socket socket, ServerState state, int messageId, int unknown, byte plainText ) : void

Method Details

DecryptPacket() public static method

public static DecryptPacket ( Socket socket, ServerState state, byte packet ) : void
socket System.Net.Sockets.Socket
state ServerState
packet byte
return void

EncryptPacket() public static method

public static EncryptPacket ( Socket socket, ServerState state, int messageId, int unknown, byte plainText ) : void
socket System.Net.Sockets.Socket
state ServerState
messageId int
unknown int
plainText byte
return void

Property Details

serverKey protected_oe static_oe property

protected static KeyPair,Sodium serverKey
return Sodium.KeyPair