mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-23 11:00:32 +02:00
44 lines
763 B
C
44 lines
763 B
C
/*
|
|
MESSAGE_ENCRYPTION.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __MESSAGE_ENCRYPTION_H
|
|
#define __MESSAGE_ENCRYPTION_H
|
|
#pragma once
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
/* ---------- prototypes/EXAMPLE.C */
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
void reversible_crypt(
|
|
byte *data,
|
|
long data_size,
|
|
byte const *key,
|
|
long key_size);
|
|
void tea_encipher(
|
|
unsigned long const input[2],
|
|
unsigned long output[2],
|
|
long const key[4]);
|
|
void tea_decipher(
|
|
unsigned long const input[2],
|
|
unsigned long output[2],
|
|
long const key[4]);
|
|
void message_encrypt(
|
|
word *msgptr,
|
|
unsigned long const key[2]);
|
|
void message_decrypt(
|
|
word *msgptr,
|
|
unsigned long const key[2]);
|
|
|
|
#endif // __MESSAGE_ENCRYPTION_H
|