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

Decrypt Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/xpdf/Decrypt.h>

List of all members.

Public Member Functions

 Decrypt (Guchar *fileKey, int keyLength, int objNum, int objGen)
void reset ()
Guchar decryptByte (Guchar c)

Static Public Member Functions

static GBool makeFileKey (int encVersion, int encRevision, int keyLength, GString *ownerKey, GString *userKey, int permissions, GString *fileID, GString *ownerPassword, GString *userPassword, Guchar *fileKey, GBool *ownerPasswordOk)

Static Private Member Functions

static GBool makeFileKey2 (int encVersion, int encRevision, int keyLength, GString *ownerKey, GString *userKey, int permissions, GString *fileID, GString *userPassword, Guchar *fileKey)

Private Attributes

int objKeyLength
Guchar objKey [21]
Guchar state [256]
Guchar x
Guchar y


Constructor & Destructor Documentation

Decrypt::Decrypt Guchar fileKey,
int  keyLength,
int  objNum,
int  objGen
 

Definition at line 32 of file Decrypt.cc.

References i, md5(), objKey, objKeyLength, rc4InitKey(), state, x, and y.


Member Function Documentation

Guchar Decrypt::decryptByte Guchar  c  ) 
 

Definition at line 59 of file Decrypt.cc.

References rc4DecryptByte(), state, x, and y.

Referenced by MemStream::doDecryption(), and Parser::getObj().

GBool Decrypt::makeFileKey int  encVersion,
int  encRevision,
int  keyLength,
GString ownerKey,
GString userKey,
int  permissions,
GString fileID,
GString ownerPassword,
GString userPassword,
Guchar fileKey,
GBool ownerPasswordOk
[static]
 

Definition at line 63 of file Decrypt.cc.

References GString::getChar(), GString::getCString(), GString::getLength(), gFalse, gTrue, i, len, makeFileKey2(), md5(), passwordPad, rc4DecryptByte(), and rc4InitKey().

Referenced by XRef::checkEncrypted().

GBool Decrypt::makeFileKey2 int  encVersion,
int  encRevision,
int  keyLength,
GString ownerKey,
GString userKey,
int  permissions,
GString fileID,
GString userPassword,
Guchar fileKey
[static, private]
 

Definition at line 112 of file Decrypt.cc.

References buf, GString::getChar(), GString::getCString(), GString::getLength(), gFalse, gfree(), gmalloc(), i, len, md5(), passwordPad, rc4DecryptByte(), and rc4InitKey().

Referenced by makeFileKey().

void Decrypt::reset  ) 
 

Definition at line 54 of file Decrypt.cc.

References objKey, objKeyLength, rc4InitKey(), state, x, and y.

Referenced by MemStream::reset(), and FileStream::reset().


Member Data Documentation

Guchar Decrypt::objKey[21] [private]
 

Definition at line 54 of file Decrypt.h.

Referenced by Decrypt(), and reset().

int Decrypt::objKeyLength [private]
 

Definition at line 53 of file Decrypt.h.

Referenced by Decrypt(), and reset().

Guchar Decrypt::state[256] [private]
 

Definition at line 55 of file Decrypt.h.

Referenced by Decrypt(), decryptByte(), and reset().

Guchar Decrypt::x [private]
 

Definition at line 56 of file Decrypt.h.

Referenced by Decrypt(), decryptByte(), and reset().

Guchar Decrypt::y [private]
 

Definition at line 56 of file Decrypt.h.

Referenced by Decrypt(), decryptByte(), and reset().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:30:59 2005 for OPIE by  doxygen 1.4.2