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().

Here is the call graph for this function:

LLXORCipher::LLXORCipher ( const LLXORCipher cipher  ) 

Definition at line 56 of file llxorcipher.cpp.

References init(), mPad, and mPadLen.

Here is the call graph for this function:

LLXORCipher::~LLXORCipher (  )  [virtual]

Definition at line 51 of file llxorcipher.cpp.

References init(), and NULL.

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 64 of file llxorcipher.cpp.

References init(), mPad, and mPadLen.

Here is the call graph for this function:

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 mHead, mPad, and mPadLen.

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

Here is the caller graph for this function:

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(), ll_create_item_from_sd(), and load_password_from_disk().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements LLCipher.

Definition at line 90 of file llxorcipher.cpp.

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

Definition at line 56 of file llxorcipher.h.

References encrypt().

Here is the call graph for this function:

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

Definition at line 57 of file llxorcipher.h.

References decrypt().

Here is the call graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

U8* LLXORCipher::mPad [protected]

Definition at line 67 of file llxorcipher.h.

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

U8* LLXORCipher::mHead [protected]

Definition at line 68 of file llxorcipher.h.

Referenced by encrypt(), and init().

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 Fri May 16 09:41:49 2008 for SecondLife by  doxygen 1.5.5