My Project
|
00001 /* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; version 2 of the License. 00006 00007 This program is distributed in the hope that it will be useful, 00008 but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 GNU General Public License for more details. 00011 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software 00014 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ 00015 00016 #ifndef DES_KEY_FILE_INCLUDED 00017 #define DES_KEY_FILE_INCLUDED 00018 00019 #ifdef HAVE_OPENSSL 00020 #include <openssl/des.h> 00021 00022 #include "violite.h" /* DES_cblock, DES_key_schedule */ 00023 00024 struct st_des_keyblock 00025 { 00026 DES_cblock key1, key2, key3; 00027 }; 00028 00029 struct st_des_keyschedule 00030 { 00031 DES_key_schedule ks1, ks2, ks3; 00032 }; 00033 00034 extern struct st_des_keyschedule des_keyschedule[10]; 00035 extern uint des_default_key; 00036 00037 bool load_des_key_file(const char *file_name); 00038 #endif /* HAVE_OPENSSL */ 00039 00040 #endif /* DES_KEY_FILE_INCLUDED */