#include "squid.h"
#include <string.h>
#include "smblib/md4.h"
Go to the source code of this file.
|
#define | ROUND1(a, b, c, d, k, s) a = lshift(a + F(b,c,d) + X[k], s) |
|
#define | ROUND2(a, b, c, d, k, s) a = lshift(a + G(b,c,d) + X[k] + (uint32)0x5A827999,s) |
|
#define | ROUND3(a, b, c, d, k, s) a = lshift(a + H(b,c,d) + X[k] + (uint32)0x6ED9EBA1,s) |
|
|
static uint32 | F (uint32 X, uint32 Y, uint32 Z) |
|
static uint32 | G (uint32 X, uint32 Y, uint32 Z) |
|
static uint32 | H (uint32 X, uint32 Y, uint32 Z) |
|
static uint32 | lshift (uint32 x, int s) |
|
static void | mdfour64 (uint32 *M) |
|
static void | copy64 (uint32 *M, unsigned char *in) |
|
static void | copy4 (unsigned char *out, uint32 x) |
|
void | mdfour (unsigned char *out, unsigned char *in, int n) |
|
◆ ROUND1
#define ROUND1 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
k, |
|
|
|
s |
|
) |
| a = lshift(a + F(b,c,d) + X[k], s) |
Definition at line 70 of file md4.c.
◆ ROUND2
#define ROUND2 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
k, |
|
|
|
s |
|
) |
| a = lshift(a + G(b,c,d) + X[k] + (uint32)0x5A827999,s) |
Definition at line 71 of file md4.c.
◆ ROUND3
#define ROUND3 |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
k, |
|
|
|
s |
|
) |
| a = lshift(a + H(b,c,d) + X[k] + (uint32)0x6ED9EBA1,s) |
Definition at line 72 of file md4.c.
◆ uint32
Definition at line 41 of file md4.c.
◆ copy4()
static void copy4 |
( |
unsigned char * |
out, |
|
|
uint32 |
x |
|
) |
| |
|
static |
◆ copy64()
static void copy64 |
( |
uint32 * |
M, |
|
|
unsigned char * |
in |
|
) |
| |
|
static |
◆ F()
Definition at line 46 of file md4.c.
Referenced by _comm_close(), Comm::TcpAcceptor::acceptInto(), AlreadyTimedOut(), checkTimeouts(), comm_close_complete(), comm_connect_addr(), comm_init_opened(), comm_local_port(), commCallCloseHandlers(), commCloseAllSockets(), commSetConnTimeout(), commUnsetFdTimeout(), diskHandleRead(), diskHandleWrite(), Comm::DoSelect(), examine_select(), fd_bytes(), fd_close(), fd_note(), fd_open(), fdDumpOpen(), file_close(), file_write(), ipc_thread_1(), IcmpSquid::Recv(), MessageBucket::scheduleWrite(), and Comm::SetSelect().
◆ G()
Definition at line 52 of file md4.c.
◆ H()
◆ lshift()
Definition at line 64 of file md4.c.
◆ mdfour()
void mdfour |
( |
unsigned char * |
out, |
|
|
unsigned char * |
in, |
|
|
int |
n |
|
) |
| |
◆ mdfour64()
static void mdfour64 |
( |
uint32 * |
M | ) |
|
|
static |
Definition at line 43 of file md4.c.
Referenced by ACLFilledChecklist::ACLFilledChecklist(), aclGetDenyInfoPage(), aclIpAddrNetworkCompare(), aclParseDenyInfoLine(), SplayCheck::CheckNode(), compareintvoid(), fsCmp(), ClientRequestContext::hostHeaderVerifyFailed(), idnsAddNameserver(), IncreaseSumInternal(), mdfour(), mdfour64(), netdbLRU(), ACL::ParseAclLine(), rev_int_sort(), sortByRtt(), sortPeerByRtt(), statHistDeltaMedian(), statHistDeltaPctile(), storeKeyHashCmp(), TypeToString(), url_entry_sort(), and SplayCheck::VisitVoid().
Definition at line 43 of file md4.c.
Referenced by aclParseDenyInfoLine(), compareintvoid(), StatHist::deltaPctile(), fsCmp(), ClientRequestContext::hostHeaderVerifyFailed(), IncreaseSumInternal(), mdfour(), mdfour64(), netdbLRU(), StatHist::operator+=(), AnyP::Uri::parse(), rev_int_sort(), sortByRtt(), sortPeerByRtt(), statHistDeltaMedian(), statHistDeltaPctile(), storeKeyHashCmp(), and url_entry_sort().
Definition at line 43 of file md4.c.
Referenced by Ident::ClientAdd(), Fs::Ufs::StoreFSufs< TheSwapDir >::createSwapDir(), RefCount< C >::dereference(), RefCount< C >::getRaw(), RefCount< C >::Make(), mdfour(), mdfour64(), InstanceToSingletonAdapter< C >::operator C*(), InstanceToSingletonAdapter< C >::operator*(), RefCount< C >::operator*(), InstanceToSingletonAdapter< C >::operator->(), RefCount< C >::operator->(), RefCount< C >::operator=(), AppendingStreamBuf< Buffer >::overflow(), CbDataListContainer< C >::pop_front(), statCountersInit(), and statCountersInitSpecial().