Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qtmd5.cpp File Reference

#include <qstring.h>
#include "qtmd5.h"

Include dependency graph for qtmd5.cpp:

Go to the source code of this file.

Typedefs

typedef unsigned char * POINTER
typedef unsigned short int UINT2
typedef unsigned long int UINT4

Enumerations

enum  {
  S11 = 7, S12 = 12, S13 = 17, S14 = 22,
  S21 = 5, S22 = 9, S23 = 14, S24 = 20,
  S31 = 4, S32 = 11, S33 = 16, S34 = 23,
  S41 = 6, S42 = 10, S43 = 15, S44 = 21
}

Functions

static void MD5Init (MD5_CTX *)
static void MD5Update (MD5_CTX *, unsigned char *, unsigned int)
static void MD5Final (unsigned char[16], MD5_CTX *)
static void MD5Transform (UINT4[4], unsigned char[64])
static void Encode (unsigned char *, UINT4 *, unsigned int)
static void Decode (UINT4 *, unsigned char *, unsigned int)
static void MD5_memset (POINTER, int, unsigned int)
static void MD5_memcpy (POINTER output, POINTER input, unsigned int len)
static UINT4 F (UINT4 x, UINT4 y, UINT4 z)
static UINT4 G (UINT4 x, UINT4 y, UINT4 z)
static UINT4 H (UINT4 x, UINT4 y, UINT4 z)
static UINT4 I (UINT4 x, UINT4 y, UINT4 z)
static UINT4 rotateLeft (UINT4 x, UINT4 n)
static void FF (UINT4 &a, UINT4 b, UINT4 c, UINT4 d, UINT4 x, UINT4 s, UINT4 ac)
static void GG (UINT4 &a, UINT4 b, UINT4 c, UINT4 d, UINT4 x, UINT4 s, UINT4 ac)
static void HH (UINT4 &a, UINT4 b, UINT4 c, UINT4 d, UINT4 x, UINT4 s, UINT4 ac)
static void II (UINT4 &a, UINT4 b, UINT4 c, UINT4 d, UINT4 x, UINT4 s, UINT4 ac)
void qtMD5 (const QByteArray &src, unsigned char *digest)
QString qtMD5 (const QByteArray &src)

Variables

static unsigned char PADDING [64]


Typedef Documentation

typedef unsigned char* POINTER
 

Definition at line 5 of file qtmd5.cpp.

typedef unsigned short int UINT2
 

Definition at line 6 of file qtmd5.cpp.

typedef unsigned long int UINT4
 

Definition at line 7 of file qtmd5.cpp.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
S11 
S12 
S13 
S14 
S21 
S22 
S23 
S24 
S31 
S32 
S33 
S34 
S41 
S42 
S43 
S44 

Definition at line 25 of file qtmd5.cpp.


Function Documentation

static void Decode UINT4 ,
unsigned char *  ,
unsigned  int
[static]
 

Definition at line 262 of file qtmd5.cpp.

References i.

Referenced by MD5Transform().

static void Encode unsigned char *  ,
UINT4 ,
unsigned  int
[static]
 

Definition at line 249 of file qtmd5.cpp.

References i.

Referenced by MD5Final().

static UINT4 F UINT4  x,
UINT4  y,
UINT4  z
[inline, static]
 

Definition at line 37 of file qtmd5.cpp.

Referenced by WLanRun::detectState(), USBRun::detectState(), LanCardRun::detectState(), GPRSRun::detectState(), FF(), Opietooth2::OTGateway::loadKnownPeers(), NetworkSettingsData::loadSettings(), NetworkSettingsData::NetworkSettingsData(), Opietooth2::OTGateway::readLinkKeys(), Opietooth2::OTGateway::removeLinkKey(), Opietooth2::OTGateway::saveKnownPeers(), NetworkSettingsData::saveSettings(), Opietooth2::OTSniffing::SLOT_Load(), Opietooth2::OTSniffing::SLOT_Save(), and Qt3::QTextFormatCollection::updateDefaultFormat().

static void FF UINT4 a,
UINT4  b,
UINT4  c,
UINT4  d,
UINT4  x,
UINT4  s,
UINT4  ac
[inline, static]
 

Definition at line 64 of file qtmd5.cpp.

References F(), and rotateLeft().

Referenced by MD5Transform().

static UINT4 G UINT4  x,
UINT4  y,
UINT4  z
[inline, static]
 

Definition at line 42 of file qtmd5.cpp.

Referenced by GG().

static void GG UINT4 a,
UINT4  b,
UINT4  c,
UINT4  d,
UINT4  x,
UINT4  s,
UINT4  ac
[inline, static]
 

Definition at line 71 of file qtmd5.cpp.

References G(), and rotateLeft().

Referenced by MD5Transform().

static UINT4 H UINT4  x,
UINT4  y,
UINT4  z
[inline, static]
 

Definition at line 47 of file qtmd5.cpp.

Referenced by HH(), NetworkSettings::NetworkSettings(), and Opietooth2::OTScan::OTScan().

static void HH UINT4 a,
UINT4  b,
UINT4  c,
UINT4  d,
UINT4  x,
UINT4  s,
UINT4  ac
[inline, static]
 

Definition at line 78 of file qtmd5.cpp.

References H(), and rotateLeft().

Referenced by MD5Transform().

static UINT4 I UINT4  x,
UINT4  y,
UINT4  z
[inline, static]
 

Definition at line 52 of file qtmd5.cpp.

Referenced by BluetoothRFCOMMEdit::commit(), GPRSRun::detectState(), II(), Resource::loadPixmap(), USBRun::setMyState(), and Qt3::QTextFormatCollection::updateDefaultFormat().

static void II UINT4 a,
UINT4  b,
UINT4  c,
UINT4  d,
UINT4  x,
UINT4  s,
UINT4  ac
[inline, static]
 

Definition at line 85 of file qtmd5.cpp.

References I(), and rotateLeft().

Referenced by NetworkRun::detectState(), WLanRun::handlesInterface(), LanCardRun::handlesInterface(), MD5Transform(), ProfileEdit::ProfileEdit(), NetworkRun::setMyState(), ProfileEdit::SLOT_Refresh(), ProfileEdit::SLOT_ResetODO(), and WLanEdit::WLanEdit().

static void MD5_memcpy POINTER  output,
POINTER  input,
unsigned int  len
[static]
 

Definition at line 279 of file qtmd5.cpp.

References i.

Referenced by MD5Update().

static void MD5_memset POINTER  ,
int  ,
unsigned  int
[static]
 

Definition at line 271 of file qtmd5.cpp.

References i.

Referenced by MD5Final(), and MD5Transform().

static void MD5Final unsigned  char[16],
MD5_CTX
[static]
 

Definition at line 138 of file qtmd5.cpp.

References bits, MD5_CTX::count, Encode(), MD5_memset(), MD5Update(), PADDING, and MD5_CTX::state.

static void MD5Init MD5_CTX  )  [static]
 

Definition at line 93 of file qtmd5.cpp.

References MD5_CTX::count, and MD5_CTX::state.

static void MD5Transform UINT4  [4],
unsigned  char[64]
[static]
 

Definition at line 162 of file qtmd5.cpp.

References d, Decode(), FF(), GG(), HH(), II(), MD5_memset(), S11, S12, S13, S14, S21, S22, S23, S24, S31, S33, S34, S41, S42, S43, S44, and Opie::MM::x.

static void MD5Update MD5_CTX ,
unsigned char *  ,
unsigned  int
[static]
 

Definition at line 107 of file qtmd5.cpp.

References MD5_CTX::buffer, MD5_CTX::count, i, MD5_memcpy(), MD5Transform(), and MD5_CTX::state.

QString qtMD5 const QByteArray src  ) 
 

Definition at line 295 of file qtmd5.cpp.

References i, output, qtMD5(), and QString::sprintf().

void qtMD5 const QByteArray src,
unsigned char *  digest
 

Definition at line 286 of file qtmd5.cpp.

Referenced by VcprojGenerator::getProjectUUID(), ProjectBuilderMakefileGenerator::keyFor(), and qtMD5().

static UINT4 rotateLeft UINT4  x,
UINT4  n
[inline, static]
 

Definition at line 57 of file qtmd5.cpp.


Variable Documentation

unsigned char PADDING[64] [static]
 

Initial value:

 {
    0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 30 of file qtmd5.cpp.

Referenced by MD5Final().


Generated on Sat Nov 5 17:24:34 2005 for OPIE by  doxygen 1.4.2