POK
blowfish.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 Fri Dec 11 16:32:31 2009
15  */
16 
17 
18 #include <types.h>
19 
20 #define pok_protocols_blowfish_data_t uint64_t
21 
22 #ifdef POK_NEEDS_PROTOCOLS_BLOWFISH
23 
24 void pok_protocols_blowfish_marshall (void* uncrypted_data, size_t uncrypted_size, void* crypted_data, size_t* crypted_size);
25 
26 
27 void pok_protocols_blowfish_unmarshall (void* crypted_data, size_t crypted_size, void* uncrypted_data, size_t* uncrypted_size);
28 
29 #ifndef POK_BLOWFISH_KEY
30 #define POK_BLOWFISH_KEY {0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef,0xf0,0xe1,0xd2,0xc3,0xb4,0xa5,0x96,0x87}
31 #endif
32 
33 #ifndef POK_BLOWFISH_INIT
34 #define POK_BLOWFISH_INIT {0xfe,0xdc,0xba,0x98,0x76,0x54,0x32,0x10}
35 #endif
36 
37 #endif