You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

  1. /* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; version 2 of the License.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License
  10. along with this program; if not, write to the Free Software
  11. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  12. #ifndef DES_KEY_FILE_INCLUDED
  13. #define DES_KEY_FILE_INCLUDED
  14. #ifdef HAVE_OPENSSL
  15. #include <openssl/des.h>
  16. #include "violite.h" /* DES_cblock, DES_key_schedule */
  17. struct st_des_keyblock
  18. {
  19. DES_cblock key1, key2, key3;
  20. };
  21. struct st_des_keyschedule
  22. {
  23. DES_key_schedule ks1, ks2, ks3;
  24. };
  25. extern struct st_des_keyschedule des_keyschedule[10];
  26. extern uint des_default_key;
  27. bool load_des_key_file(const char *file_name);
  28. #endif /* HAVE_OPENSSL */
  29. #endif /* DES_KEY_FILE_INCLUDED */