KIO
des.h
Go to the documentation of this file.00001 /* 00002 * Sofware DES functions 00003 * 00004 * Copyright 1988-1991 Phil Karn <karn@ka9q.net> 00005 * Copyright 2003 Nikos Mavroyanopoulos <nmav@hellug.gr> 00006 * 00007 * Taken from libmcrypt (http://mcrypt.hellug.gr/lib/index.html). 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00021 * MA 02110-1301 USA 00022 */ 00023 00024 #ifndef KNTLM_DES_H 00025 #define KNTLM_DES_H 00026 00027 #include <QtCore/QBool> 00028 00029 typedef struct des_key 00030 { 00031 char kn[16][8]; 00032 quint32 sp[8][64]; 00033 char iperm[16][16][8]; 00034 char fperm[16][16][8]; 00035 } DES_KEY; 00036 00037 int 00038 ntlm_des_ecb_encrypt (const void *plaintext, int len, DES_KEY * akey, unsigned char output[8]); 00039 int 00040 ntlm_des_set_key (DES_KEY * dkey, char *user_key, int len); 00041 00042 #endif /* KNTLM_DES_H */