pdfencrypt.cpp File Reference

Implementation of the wxPdfEncrypt class. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/log.h>
#include "wx/pdfdoc.h"
#include "wx/pdfencrypt.h"
#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

Classes

struct  MD5Context
 Structure representing an MD5 context while ecrypting. (For internal use only). More...

Defines

#define MD5_HASHBYTES   16
#define F1(x, y, z)   (z ^ (x & (y ^ z)))
#define F2(x, y, z)   F1(z, x, y)
#define F3(x, y, z)   (x ^ y ^ z)
#define F4(x, y, z)   (y ^ (x | ~z))
#define MD5STEP(f, w, x, y, z, data, s)   ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
#define byteReverse(buf, len)

Typedefs

typedef MD5Context MD5_CTX
 Structure representing an MD5 context while ecrypting. (For internal use only).

Functions

static void MD5Init (MD5_CTX *context)
static void MD5Update (MD5_CTX *context, unsigned char const *buf, unsigned len)
static void MD5Final (unsigned char digest[MD5_HASHBYTES], MD5_CTX *context)
static void MD5Transform (unsigned int buf[4], unsigned int const in[16])
static void MD5Final (unsigned char digest[16], MD5_CTX *ctx)

Variables

static unsigned char padding []


Detailed Description

Implementation of the wxPdfEncrypt class.


Define Documentation

#define byteReverse ( buf,
len   ) 

#define F1 ( x,
y,
 )     (z ^ (x & (y ^ z)))

#define F2 ( x,
y,
 )     F1(z, x, y)

#define F3 ( x,
y,
 )     (x ^ y ^ z)

#define F4 ( x,
y,
 )     (y ^ (x | ~z))

#define MD5_HASHBYTES   16

#define MD5STEP ( f,
w,
x,
y,
z,
data,
 )     ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )


Typedef Documentation

typedef struct MD5Context MD5_CTX

Structure representing an MD5 context while ecrypting. (For internal use only).


Function Documentation

static void MD5Final ( unsigned char  digest[16],
MD5_CTX ctx 
) [static]

static void MD5Final ( unsigned char  digest[MD5_HASHBYTES],
MD5_CTX context 
) [static]

static void MD5Init ( MD5_CTX context  )  [static]

static void MD5Transform ( unsigned int  buf[4],
unsigned int const  in[16] 
) [static]

static void MD5Update ( MD5_CTX context,
unsigned char const *  buf,
unsigned  len 
) [static]


Variable Documentation

unsigned char padding[] [static]

Initial value:

  "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A"


Generated on Fri Dec 15 21:30:36 2006 for wxPdfDocument by  doxygen 1.5.1-p1