ReplicaNet and RNLobby  1
Classes | Static Public Member Functions | List of all members
Encryption Class Reference

#include <Encryption.h>

Classes

struct  Key
 

Static Public Member Functions

static void Encrypt (void *data, int length, Key *key)
 
static void Decrypt (void *data, int length, Key *key)
 
static void CommutativeEncrypt (void *data, int length, Key *key)
 
static void CommutativeDecrypt (void *data, int length, Key *key)
 
static void CommutativeEncryptBytewise (void *data, int length, Key *key)
 
static void CommutativeDecryptBytewise (void *data, int length, Key *key)
 

Detailed Description

An symmetric encryption class that is designed to be fast and maintain the size of the original data.

Member Function Documentation

static void CommutativeDecrypt ( void *  data,
int  length,
Key key 
)
static

Decrypt a portion of memory with a key with a commutative algorithm.

Parameters
datathe pointer to the start of the memory
lengththe length of the memory in bytes
keythe key to use
static void CommutativeDecryptBytewise ( void *  data,
int  length,
Key key 
)
static

Decrypt a portion of memory with a key with a commutative bytewise algorithm.

Parameters
datathe pointer to the start of the memory
lengththe length of the memory in bytes
keythe key to use
static void CommutativeEncrypt ( void *  data,
int  length,
Key key 
)
static

Encrypt a portion of memory with a key with a commutative algorithm.

Parameters
datathe pointer to the start of the memory
lengththe length of the memory in bytes
keythe key to use
static void CommutativeEncryptBytewise ( void *  data,
int  length,
Key key 
)
static

Encrypt a portion of memory with a key with a commutative bytewise algorithm.

Parameters
datathe pointer to the start of the memory
lengththe length of the memory in bytes
keythe key to use
static void Decrypt ( void *  data,
int  length,
Key key 
)
static

Decrypt a portion of memory with a key.

Parameters
datathe pointer to the start of the memory
lengththe length of the memory in bytes
keythe key to use
static void Encrypt ( void *  data,
int  length,
Key key 
)
static

Encrypt a portion of memory with a key.

Parameters
datathe pointer to the start of the memory
lengththe length of the memory in bytes
keythe key to use