00001
00053 #ifndef DES_DRIVER_H
00054 #define DES_DRIVER_H
00055
00056 #include "avr_compiler.h"
00057
00058
00066 void DES_Decrypt(uint8_t * ciphertext, uint8_t * plaintext, uint8_t * key);
00067
00068
00076 void DES_Encrypt(uint8_t * plaintext, uint8_t * ciphertext, uint8_t * key);
00077
00078
00086 void DES_3DES_Encrypt(uint8_t * plaintext, uint8_t * ciphertext, uint8_t * keys);
00087
00088
00096 void DES_3DES_Decrypt(uint8_t * ciphertext, uint8_t * plaintext, uint8_t * keys);
00097
00098
00110 void DES_CBC_Encrypt(uint8_t * plaintext, uint8_t * ciphertext,
00111 uint8_t * keys, uint8_t * init,
00112 bool triple_DES, uint16_t block_length);
00113
00114
00129 void DES_CBC_Decrypt(uint8_t * ciphertext, uint8_t * plaintext,
00130 uint8_t * keys, uint8_t * init,
00131 bool triple_DES, uint16_t block_length);
00132
00133
00134 #endif
00135