Class Lidgren::Network::NetBlockEncryptionBase
ClassList > Lidgren > Network > NetBlockEncryptionBase
Base for a non-threadsafe encryption class.
Inherits the following classes: Lidgren::Network::NetEncryption
Inherited by the following classes: Lidgren::Network::NetXtea
Public Properties
Type | Name |
---|---|
property int | BlockSize Block size in bytes for this cipher. |
Public Functions
Type | Name |
---|---|
override bool | Decrypt (NetIncomingMessage msg) Decrypt an incoming message encrypted with corresponding Encrypt. |
override bool | Encrypt (NetOutgoingMessage msg) Encrypt am outgoing message with this algorithm; no writing can be done to the message after encryption, or message will be corrupted. |
NetBlockEncryptionBase (NetPeer peer) NetBlockEncryptionBase constructor. |
Public Functions inherited from Lidgren::Network::NetEncryption
See Lidgren::Network::NetEncryption
Type | Name |
---|---|
bool | Decrypt (NetIncomingMessage msg) Decrypt an incoming message in place. |
bool | Encrypt (NetOutgoingMessage msg) Encrypt an outgoing message in place. |
NetEncryption (NetPeer peer) Constructor. |
|
void | SetKey (string str) |
void | SetKey (byte[] data, int offset, int count) |
Protected Attributes inherited from Lidgren::Network::NetEncryption
See Lidgren::Network::NetEncryption
Type | Name |
---|---|
NetPeer | m_peer NetPeer. |
Protected Functions
Type | Name |
---|---|
void | DecryptBlock (byte[] source, int sourceOffset, byte[] destination) Decrypt a block of bytes. |
void | EncryptBlock (byte[] source, int sourceOffset, byte[] destination) Encrypt a block of bytes. |
Public Properties Documentation
property BlockSize
Public Functions Documentation
function Decrypt
Decrypt an incoming message encrypted with corresponding Encrypt.
Parameters:
msg
message to decrypt
Returns:
true if successful; false if failed
function Encrypt
function NetBlockEncryptionBase
Protected Functions Documentation
function DecryptBlock
void Lidgren::Network::NetBlockEncryptionBase::DecryptBlock (
byte[] source,
int sourceOffset,
byte[] destination
)
function EncryptBlock
void Lidgren::Network::NetBlockEncryptionBase::EncryptBlock (
byte[] source,
int sourceOffset,
byte[] destination
)
The documentation for this class was generated from the following file api/unity-plugin/Scripts/Networking/Lidgren.Network/Encryption/NetBlockEncryptionBase.cs