Go to the source code of this file.
Functions | |
static void | permute (char *out, char *in, int *p, int n) |
static void | lshift (char *d, int count, int n) |
static void | concat (char *out, char *in1, char *in2, int l1, int l2) |
static void | xor (char *out, char *in1, char *in2, int n) |
static void | dohash (char *out, char *in, char *key) |
static void | str_to_key (unsigned char *str, unsigned char *key) |
static void | smbhash (unsigned char *out, unsigned char *in, unsigned char *key) |
void | E_P16 (unsigned char *p14, unsigned char *p16) |
void | E_P24 (unsigned char *p21, unsigned char *c8, unsigned char *p24) |
void | cred_hash1 (unsigned char *out, unsigned char *in, unsigned char *key) |
void | cred_hash2 (unsigned char *out, unsigned char *in, unsigned char *key) |
Variables | |
static int | perm1 [56] |
static int | perm2 [48] |
static int | perm3 [64] |
static int | perm4 [48] |
static int | perm5 [32] |
static int | perm6 [64] |
static int | sc [16] = {1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1} |
static int | sbox [8][4][16] |
Function Documentation
◆ concat()
◆ cred_hash1()
void cred_hash1 | ( | unsigned char * | out, |
unsigned char * | in, | ||
unsigned char * | key | ||
) |
◆ cred_hash2()
void cred_hash2 | ( | unsigned char * | out, |
unsigned char * | in, | ||
unsigned char * | key | ||
) |
◆ dohash()
|
static |
◆ E_P16()
void E_P16 | ( | unsigned char * | p14, |
unsigned char * | p16 | ||
) |
Definition at line 345 of file smbdes.c.
References smbhash().
Referenced by nt_lm_owf_gen(), and SMBencrypt().
◆ E_P24()
void E_P24 | ( | unsigned char * | p21, |
unsigned char * | c8, | ||
unsigned char * | p24 | ||
) |
Definition at line 353 of file smbdes.c.
References smbhash().
Referenced by SMBencrypt(), and SMBNTencrypt().
◆ lshift()
◆ permute()
◆ smbhash()
|
static |
Definition at line 316 of file smbdes.c.
References dohash(), and str_to_key().
Referenced by cred_hash1(), cred_hash2(), E_P16(), and E_P24().
◆ str_to_key()
|
static |
◆ xor()
|
static |
Variable Documentation
◆ perm1
|
static |
◆ perm2
|
static |
◆ perm3
|
static |
Definition at line 81 of file smbdes.c.
Referenced by dohash().
◆ perm4
|
static |
◆ perm5
|
static |
◆ perm6
|
static |
Definition at line 111 of file smbdes.c.
Referenced by dohash().
◆ sbox
◆ sc
|
static |
Definition at line 121 of file smbdes.c.
Referenced by ASState::~ASState(), Ssl::ServerBump::~ServerBump(), Mgr::StoreToCommWriter::~StoreToCommWriter(), Mgr::Inquirer::applyQueryParams(), MemObject::clientIsFirst(), dohash(), store_client::FinishCallback(), ftpFail(), HttpHeader::getSc(), httpHdrScParseCreate(), StoreEntry::invokeHandlers(), Ftp::Is1xx(), Http::Is1xx(), Http::Is4xx(), MemObject::mostBytesAllowed(), ntlm_fetch_string(), HttpHdrSc::parse(), Http::ProhibitsContentLength(), HttpHeader::putSc(), Mgr::StoreToCommWriter::scheduleStoreCopy(), MemObject::setNoDelay(), squid_strnstr(), Mgr::StoreToCommWriter::start(), storeClientCopy(), storeClientCopy2(), storeClientListAdd(), storeClientReadBody(), storeClientReadHeader(), storeSwapInFileClosed(), storeSwapInStart(), storeUnregister(), and Mgr::StoreToCommWriter::swanSong().