Functions
Crypt_SetKey
inline void Crypt_SetKey(
const c8* key
)

Set the encryption key

Call to this function is mandatory before calling Crypt_Encode or Crypt_Decode functions.

Crypt_SetMap
inline void Crypt_SetMap(
const c8* map
)

Set the encryption character mapping table

Not mandatory (default one will be use instead).

Crypt_SetCode
inline void Crypt_SetCode(
const u16* code
)

Set the encryption code bit field

Not mandatory (default one will be use instead).

Crypt_Encode
bool Crypt_Encode(
const voiddata,
u8 size,
c8* str
)

Encrypt data

Note: Destination string buffer size must be: input data size x 2 + 1.

Crypt_Decode
bool Crypt_Decode(
const c8* str,
voiddata
)

Decrypt data

Note: Destination buffer size must be: length of the string / 2.