#ifndef MODULE_NEWCAMD_DES_H_
#define MODULE_NEWCAMD_DES_H_

#define DES_IP    1
#define DES_IP_1  2
#define DES_RIGHT 4
#define DES_HASH  8

#define DES_ECM_CRYPT    0
#define DES_ECM_HASH     DES_HASH

void nc_des(uint8_t key[], uint8_t mode, uint8_t data[]);
int nc_des_encrypt(uint8_t *buffer, int len, uint8_t *deskey);
int nc_des_decrypt(uint8_t *buffer, int len, uint8_t *deskey);
void nc_des_login_key_get(uint8_t *key1, uint8_t *key2, int len, uint8_t *des16);

#endif
