LLXORCipher Class Reference

#include <llxorcipher.h>

Inheritance diagram for LLXORCipher:

Inheritance graph
[legend]
Collaboration diagram for LLXORCipher:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLXORCipher (const U8 *pad, U32 pad_len)
 LLXORCipher (const LLXORCipher &cipher)
virtual ~LLXORCipher ()
LLXORCipheroperator= (const LLXORCipher &cipher)
U32 encrypt (const U8 *src, U32 src_len, U8 *dst, U32 dst_len)
U32 decrypt (const U8 *src, U32 src_len, U8 *dst, U32 dst_len)
U32 requiredEncryptionSpace (U32 src_len) const
BOOL encrypt (U8 *buf, U32 len)
BOOL decrypt (U8 *buf, U32 len)

Protected Member Functions

void init (const U8 *pad, U32 pad_len)

Protected Attributes

U8mPad
U8mHead
U32 mPadLen

Detailed Description

Definition at line 42 of file llxorcipher.h.


Constructor & Destructor Documentation

LLXORCipher::LLXORCipher ( const U8 pad,
U32  pad_len 
)

---------------------------------------------------------------------------- Class LLXORCipher ----------------------------------------------------------------------------

Definition at line 42 of file llxorcipher.cpp.

References init().

LLXORCipher::LLXORCipher ( const LLXORCipher cipher  ) 

Definition at line 56 of file llxorcipher.cpp.

References init(), mPad, and mPadLen.

LLXORCipher::~LLXORCipher (  )  [virtual]

Definition at line 51 of file llxorcipher.cpp.

References init(), and NULL.


Member Function Documentation

BOOL LLXORCipher::decrypt ( U8 buf,
U32  len 
) [inline]

Definition at line 57 of file llxorcipher.h.

References decrypt().

U32 LLXORCipher::decrypt ( const U8 src,
U32  src_len,
U8 dst,
U32  dst_len 
) [virtual]

Implements LLCipher.

Definition at line 84 of file llxorcipher.cpp.

References encrypt().

Referenced by decrypt(), LLInventoryItem::fromLLSD(), LLInventoryItem::importFile(), LLInventoryItem::importLegacyStream(), LLInventoryItem::importXML(), ll_create_item_from_sd(), and load_password_from_disk().

BOOL LLXORCipher::encrypt ( U8 buf,
U32  len 
) [inline]

Definition at line 56 of file llxorcipher.h.

References encrypt().

U32 LLXORCipher::encrypt ( const U8 src,
U32  src_len,
U8 dst,
U32  dst_len 
) [virtual]

Implements LLCipher.

Definition at line 71 of file llxorcipher.cpp.

References count, mHead, mPad, and mPadLen.

Referenced by LLInventoryItem::asLLSD(), decrypt(), encrypt(), LLInventoryItem::exportFile(), LLInventoryItem::exportFileXML(), LLInventoryItem::exportLegacyStream(), and save_password_to_disk().

void LLXORCipher::init ( const U8 pad,
U32  pad_len 
) [protected]

Definition at line 95 of file llxorcipher.cpp.

References mHead, mPad, mPadLen, and NULL.

Referenced by LLXORCipher(), operator=(), and ~LLXORCipher().

LLXORCipher & LLXORCipher::operator= ( const LLXORCipher cipher  ) 

Definition at line 64 of file llxorcipher.cpp.

References init(), mPad, and mPadLen.

U32 LLXORCipher::requiredEncryptionSpace ( U32  src_len  )  const [virtual]

Implements LLCipher.

Definition at line 90 of file llxorcipher.cpp.


Member Data Documentation

U8* LLXORCipher::mHead [protected]

Definition at line 68 of file llxorcipher.h.

Referenced by encrypt(), and init().

U8* LLXORCipher::mPad [protected]

Definition at line 67 of file llxorcipher.h.

Referenced by encrypt(), init(), LLXORCipher(), and operator=().

U32 LLXORCipher::mPadLen [protected]

Definition at line 69 of file llxorcipher.h.

Referenced by encrypt(), init(), LLXORCipher(), and operator=().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:05 2010 for Second Life Viewer by  doxygen 1.4.7