POK
|
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 Fri Dec 11 16:32:31 2009 00015 */ 00016 00017 00018 #include <types.h> 00019 00020 #define pok_protocols_blowfish_data_t uint64_t 00021 00022 #ifdef POK_NEEDS_PROTOCOLS_BLOWFISH 00023 00024 void pok_protocols_blowfish_marshall (void* uncrypted_data, size_t uncrypted_size, void* crypted_data, size_t* crypted_size); 00025 00026 00027 void pok_protocols_blowfish_unmarshall (void* crypted_data, size_t crypted_size, void* uncrypted_data, size_t* uncrypted_size); 00028 00029 #ifndef POK_BLOWFISH_KEY 00030 #define POK_BLOWFISH_KEY {0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef,0xf0,0xe1,0xd2,0xc3,0xb4,0xa5,0x96,0x87} 00031 #endif 00032 00033 #ifndef POK_BLOWFISH_INIT 00034 #define POK_BLOWFISH_INIT {0xfe,0xdc,0xba,0x98,0x76,0x54,0x32,0x10} 00035 #endif 00036 00037 #endif