11 #ifndef __CRYPTO_WRAPPER_H
12 #define __CRYPTO_WRAPPER_H
24 int EncryptDES(
const unsigned char * key,
unsigned char * ct,
const unsigned char * pt);
36 int DecryptDES(
const unsigned char * key,
const unsigned char * ct,
unsigned char * pt);
57 int MD4Hash(
const unsigned char * buf,
int length,
unsigned char * hash);
int EncryptDES(const unsigned char *key, unsigned char *ct, const unsigned char *pt)
Encrypts an 8-byte array using DES.
Definition: crypto_wrapper.c:15
void createDESKey(const uint8_t *bytes, uint8_t *key)
Creates an 8-byte DES key.
Definition: crypto_wrapper.c:104
int MD4Hash(const unsigned char *buf, int length, unsigned char *hash)
Generates a MD4 Message-Digest Algorithm.
Definition: crypto_wrapper.c:69
int DecryptDES(const unsigned char *key, const unsigned char *ct, unsigned char *pt)
Encrypts an 8-byte array using DES.
Definition: crypto_wrapper.c:42