11 #include "RNPlatform/Inc/MemoryTracking.h"
12 #ifndef __ENCRYPTION_H__
13 #define __ENCRYPTION_H__
15 namespace RNReplicaNet
19 const int kEncryptionKeyLengthBytes = 8;
39 void Create(
const void *data,
const int length);
46 void AddCrypto(
const void *data,
const int length);
50 unsigned char mKey[kEncryptionKeyLengthBytes];
59 static void Encrypt(
void *data,
int length,
Key *key);
67 static void Decrypt(
void *data,
int length,
Key *key);
Definition: Encryption.h:24
Definition: Encryption.h:27
static void CommutativeEncryptBytewise(void *data, int length, Key *key)
static void Encrypt(void *data, int length, Key *key)
static void CommutativeDecrypt(void *data, int length, Key *key)
static void CommutativeDecryptBytewise(void *data, int length, Key *key)
void Create(const void *data, const int length)
static void Decrypt(void *data, int length, Key *key)
void AddCrypto(const void *data, const int length)
static void CommutativeEncrypt(void *data, int length, Key *key)