inline void Crypt_SetKey( |
| ) |
Set the encryption key Call to this function is mandatory before calling Crypt_Encode or Crypt_Decode functions.
key const c8* | Zero-terminated string that contain the key |
inline void Crypt_SetMap( |
| ) |
Set the encryption character mapping table Not mandatory (default one will be use instead).
map const c8* | Zero-terminated string that contain the character mapping table (should be 16, 32 or 64 charater long depending on number of bit per character used) |
inline void Crypt_SetCode( |
| ) |
Set the encryption code bit field Not mandatory (default one will be use instead).
code const u16* | Array of 8 entries of 16-bit number that map each bit into 2 characters |
bool Crypt_Encode( |
| ) |
Encrypt data
data const void* | Source data buffer |
size u8 | Size of the data buffer |
str c8* | Destination string buffer (size must be: input data size x 2 + 1). |
FALSE if encoding failed
bool Crypt_Decode( |
| ) |
Decrypt data
str const c8* | Source string |
data void* | Destination data buffer (size must be: length of the string / 2). |
FALSE if decoding failed