ReplicaNet and RNLobby  1
Public Member Functions | Public Attributes | List of all members
Encryption::Key Struct Reference

Public Member Functions

 Key (const Key &source)
 
void Create (const void *data, const int length)
 
void AddCrypto (const void *data, const int length)
 
void AddCrypto (const unsigned char salt)
 

Public Attributes

unsigned char mKey [kEncryptionKeyLengthBytes]
 

Member Function Documentation

void AddCrypto ( const void *  data,
const int  length 
)

Adds the data to an existing crypto key, for example a salt value to cause the key to change for each block of data.

Parameters
datathe data to use as a seed for the key. This can be NULL to use the default key.
lengththe length of the data to use for creating the key
void Create ( const void *  data,
const int  length 
)

Creates a key from data and an input length.

Parameters
datathe data to use as a seed for the key. This can be NULL to use the default key.
lengththe length of the data to use for creating the key