kio
des.cpp File Reference
#include <string.h>
#include <kswap.h>
#include "des.h"
Include dependency graph for des.cpp:
Go to the source code of this file.
Functions | |
static int | desinit (DES_KEY *key) |
static Q_UINT32 | f (DES_KEY *key, Q_UINT32 r, char *subkey) |
int | ntlm_des_ecb_encrypt (const void *plaintext, int len, DES_KEY *akey, unsigned char output[8]) |
static void | ntlm_des_encrypt (DES_KEY *key, unsigned char *block) |
int | ntlm_des_set_key (DES_KEY *dkey, char *user_key, int) |
static void | perminit_fp (DES_KEY *key) |
static void | perminit_ip (DES_KEY *key) |
static void | permute_fp (unsigned char *inblock, DES_KEY *key, unsigned char *outblock) |
static void | permute_ip (unsigned char *inblock, DES_KEY *key, unsigned char *outblock) |
static void | spinit (DES_KEY *key) |
Variables | |
static const int | bytebit [] |
static const char | fp [] |
static const char | ip [] |
static const int | nibblebit [] |
static const char | p32i [] |
static const char | pc1 [] |
static const char | pc2 [] |
static const char | si [8][64] |
static const char | totrot [] |
Function Documentation
static Q_UINT32 f | ( | DES_KEY * | key, | |
Q_UINT32 | r, | |||
char * | subkey | |||
) | [static] |
int ntlm_des_ecb_encrypt | ( | const void * | plaintext, | |
int | len, | |||
DES_KEY * | akey, | |||
unsigned char | output[8] | |||
) |
static void ntlm_des_encrypt | ( | DES_KEY * | key, | |
unsigned char * | block | |||
) | [static] |
int ntlm_des_set_key | ( | DES_KEY * | dkey, | |
char * | user_key, | |||
int | ||||
) |
static void permute_fp | ( | unsigned char * | inblock, | |
DES_KEY * | key, | |||
unsigned char * | outblock | |||
) | [static] |
static void permute_ip | ( | unsigned char * | inblock, | |
DES_KEY * | key, | |||
unsigned char * | outblock | |||
) | [static] |
Variable Documentation
const int bytebit[] [static] |
const char fp[] [static] |
Initial value:
{ 40, 8, 48, 16, 56, 24, 64, 32, 39, 7, 47, 15, 55, 23, 63, 31, 38, 6, 46, 14, 54, 22, 62, 30, 37, 5, 45, 13, 53, 21, 61, 29, 36, 4, 44, 12, 52, 20, 60, 28, 35, 3, 43, 11, 51, 19, 59, 27, 34, 2, 42, 10, 50, 18, 58, 26, 33, 1, 41, 9, 49, 17, 57, 25 }
const char ip[] [static] |
Initial value:
{ 58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8, 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5, 63, 55, 47, 39, 31, 23, 15, 7 }
const int nibblebit[] [static] |
const char p32i[] [static] |
const char pc1[] [static] |
const char pc2[] [static] |
const char totrot[] [static] |