]> git.cryptolib.org Git - avr-crypto-lib.git/blob - des.h
241a4b5f93cec4e09e25eb3be1c2226f386e209b
[avr-crypto-lib.git] / des.h
1 /**
2  * \file        des.h
3  * \author      Daniel Otte 
4  * \date        2007-06-16
5  * \brief       des and tdes declarations
6  * \par License 
7  * GPL
8  * 
9  */
10 #ifndef DES_H_
11 #define DES_H_
12
13 #include <stdint.h>
14 /* the FIPS 46-3 (1999-10-25) name for triple DES is triple data encryption algorithm so TDEA.
15  * Also we only implement the three key mode  */
16 #define tdea_encrypt tdes_encrypt
17 #define tdea_decrypt tdes_decrypt
18
19 void des_encrypt(uint8_t* out, uint8_t* in, uint8_t* key);
20 void des_decrypt(uint8_t* out, uint8_t* in, uint8_t* key);
21 void tdes_encrypt(uint8_t* out, uint8_t* in, uint8_t* key);
22 void tdes_decrypt(uint8_t* out, uint8_t* in, uint8_t* key);
23
24 #endif /*DES_H_*/