POK
des.h
1 /*
2  * POK header
3  *
4  * The following file is a part of the POK project. Any modification should
5  * made according to the POK licence. You CANNOT use this file or a part of
6  * this file is this part of a file for your own project
7  *
8  * For more information on the POK licence, please see our LICENCE FILE
9  *
10  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
11  *
12  * Copyright (c) 2007-2009 POK team
13  *
14  * Created by julien on Mon Nov 30 20:42:30 2009
15  */
16 
17 #ifndef __LIBPOK_PROTOCOLS_DES_H__
18 #define __LIBPOK_PROTOCOLS_DES_H__
19 
36 #include <types.h>
37 
38 #define pok_protocols_des_data_t unsigned long long
39 
40 #ifdef POK_NEEDS_PROTOCOLS_DES
41 
44 void pok_protocols_des_unmarshall (void* crypted_data, pok_size_t crypted_size, void* uncrypted_data, size_t* uncrypted_size);
45 
49 void pok_protocols_des_marshall (void* uncrypted_data, pok_size_t uncrypted_size, void* crypted_data, size_t* crypted_size);
50 
55 #ifndef POK_PROTOCOLS_DES_KEY
56 #define POK_PROTOCOLS_DES_KEY {0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef}
57 #endif
58 
63 #ifndef POK_PROTOCOLS_DES_INIT
64 #define POK_PROTOCOLS_DES_INIT {0xfe,0xdc,0xba,0x98,0x76,0x54,0x32,0x10}
65 #endif
66 
67 #endif
68 
69 #endif