Skip to content

Class Lidgren::Network::NetEncryption

ClassList > Lidgren > Network > NetEncryption

Interface for an encryption algorithm.

Inherited by the following classes: Lidgren::Network::NetBlockEncryptionBase, Lidgren::Network::NetCryptoProviderBase, Lidgren::Network::NetCryptoProviderEncryption, Lidgren::Network::NetXorEncryption

Public Functions

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

Type Name
NetPeer m_peer
NetPeer.

Public Functions Documentation

function Decrypt

bool Lidgren::Network::NetEncryption::Decrypt (
    NetIncomingMessage msg
) 

function Encrypt

bool Lidgren::Network::NetEncryption::Encrypt (
    NetOutgoingMessage msg
) 

function NetEncryption

inline Lidgren::Network::NetEncryption::NetEncryption (
    NetPeer peer
) 

function SetKey [1/2]

inline void Lidgren::Network::NetEncryption::SetKey (
    string str
) 

function SetKey [2/2]

void Lidgren::Network::NetEncryption::SetKey (
    byte[] data,
    int offset,
    int count
) 

Protected Attributes Documentation

variable m_peer

NetPeer Lidgren.Network.NetEncryption.m_peer;

The documentation for this class was generated from the following file api/unity-plugin/Scripts/Networking/Lidgren.Network/Encryption/NetEncryption.cs