#include <llxorcipher.h>
Inheritance diagram for LLXORCipher:
Public Member Functions | |
LLXORCipher (const U8 *pad, U32 pad_len) | |
LLXORCipher (const LLXORCipher &cipher) | |
virtual | ~LLXORCipher () |
LLXORCipher & | operator= (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 | |
U8 * | mPad |
U8 * | mHead |
U32 | mPadLen |
Definition at line 42 of file llxorcipher.h.
---------------------------------------------------------------------------- Class LLXORCipher ----------------------------------------------------------------------------
Definition at line 42 of file llxorcipher.cpp.
References init().
LLXORCipher::LLXORCipher | ( | const LLXORCipher & | cipher | ) |
LLXORCipher::~LLXORCipher | ( | ) | [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().
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().
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 | ) |
U8* LLXORCipher::mHead [protected] |
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=().