File indexing completed on 2024-05-05 16:14:07

0001 /*
0002     Software DES functions
0003 
0004     SPDX-FileCopyrightText: 1988-1991 Phil Karn <karn@ka9q.net>
0005     SPDX-FileCopyrightText: 2003 Nikos Mavroyanopoulos <nmav@hellug.gr>
0006 
0007     Taken from libmcrypt (http://mcrypt.hellug.gr/lib/index.html).
0008 
0009     SPDX-License-Identifier: LGPL-2.1-only
0010 */
0011 
0012 #ifndef KNTLM_DES_H
0013 #define KNTLM_DES_H
0014 
0015 #include <qglobal.h>
0016 
0017 typedef struct des_key {
0018     char kn[16][8];
0019     quint32 sp[8][64];
0020     char iperm[16][16][8];
0021     char fperm[16][16][8];
0022 } DES_KEY;
0023 
0024 int ntlm_des_ecb_encrypt(const void *plaintext, int len, DES_KEY *akey, unsigned char output[8]);
0025 int ntlm_des_set_key(DES_KEY *dkey, char *user_key, int len);
0026 
0027 #endif /*  KNTLM_DES_H */