summaryrefslogtreecommitdiffstats
path: root/kio/misc/kntlm/des.h
blob: 0f6f59dc99449e48a4a045746b46e7fa6978e7bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef KNTLM_DES_H
#define KNTLM_DES_H

#include <tqglobal.h>

typedef struct des_key
{
  char kn[16][8];
  TQ_UINT32 sp[8][64];
  char iperm[16][16][8];
  char fperm[16][16][8];
} DES_KEY;

int
ntlm_des_ecb_encrypt (const void *plaintext, int len, DES_KEY * akey, unsigned char output[8]);
int
ntlm_des_set_key (DES_KEY * dkey, char *user_key, int len);

#endif /*  KNTLM_DES_H */