ThingWorx C SDK
crypto_wrapper.h
Go to the documentation of this file.
1 /***************************************
2  * Copyright (C) 2015 ThingWorx Inc. *
3  ***************************************/
4 
11 #ifndef __CRYPTO_WRAPPER_H
12 #define __CRYPTO_WRAPPER_H
13 
24 int EncryptDES(const unsigned char * key, unsigned char * ct, const unsigned char * pt);
25 
36 int DecryptDES(const unsigned char * key, const unsigned char * ct, unsigned char * pt);
37 
46 void createDESKey(const uint8_t * bytes, uint8_t * key);
47 
57 int MD4Hash(const unsigned char * buf, int length, unsigned char * hash);
58 #endif
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