POK
/home/jaouen/pok_official/pok/trunk/libpok/include/protocols/des.h
00001 /*
00002  *                               POK header
00003  * 
00004  * The following file is a part of the POK project. Any modification should
00005  * made according to the POK licence. You CANNOT use this file or a part of
00006  * this file is this part of a file for your own project
00007  *
00008  * For more information on the POK licence, please see our LICENCE FILE
00009  *
00010  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
00011  *
00012  *                                      Copyright (c) 2007-2009 POK team 
00013  *
00014  * Created by julien on Mon Nov 30 20:42:30 2009 
00015  */
00016 
00017 #ifndef __LIBPOK_PROTOCOLS_DES_H__
00018 #define __LIBPOK_PROTOCOLS_DES_H__
00019 
00036 #include <types.h>
00037 
00038 #define pok_protocols_des_data_t unsigned long long
00039 
00040 #ifdef POK_NEEDS_PROTOCOLS_DES
00041 
00044 void pok_protocols_des_unmarshall (void* crypted_data, pok_size_t crypted_size, void* uncrypted_data, size_t* uncrypted_size);
00045 
00049 void pok_protocols_des_marshall (void* uncrypted_data, pok_size_t uncrypted_size, void* crypted_data, size_t* crypted_size);
00050 
00055 #ifndef POK_PROTOCOLS_DES_KEY
00056 #define POK_PROTOCOLS_DES_KEY {0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef}
00057 #endif
00058 
00063 #ifndef POK_PROTOCOLS_DES_INIT
00064 #define POK_PROTOCOLS_DES_INIT {0xfe,0xdc,0xba,0x98,0x76,0x54,0x32,0x10}
00065 #endif
00066 
00067 #endif
00068 
00069 #endif