#include #define NS_DES_ENCRYPT 1 #define NS_DES_DECRYPT 2 /** * Encrypts given data using the DES algorithm * @param mode mode of operation (see NS_DES_ENCRYPT, NS_DES_DECRYPT) * @param input input of encryption, always consists of 8 bytes data * @param output output of encryption, always consists of 8 bytes data * @param key null-terminated key for encryption */ void netsec_des_crypt(int mode, const_DES_cblock *input, DES_cblock *output, char *key);