#include <llxorcipher.h>
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 | ) |
Definition at line 56 of file llxorcipher.cpp.
References init(), mPad, and mPadLen.
LLXORCipher::~LLXORCipher | ( | ) | [virtual] |
LLXORCipher & LLXORCipher::operator= | ( | const LLXORCipher & | cipher | ) |
Definition at line 64 of file llxorcipher.cpp.
References init(), mPad, and mPadLen.
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().
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().
Definition at line 56 of file llxorcipher.h.
References encrypt().
Definition at line 57 of file llxorcipher.h.
References decrypt().
Definition at line 95 of file llxorcipher.cpp.
References mHead, mPad, mPadLen, and NULL.
Referenced by LLXORCipher(), operator=(), and ~LLXORCipher().
U8* LLXORCipher::mPad [protected] |
Definition at line 67 of file llxorcipher.h.
Referenced by encrypt(), init(), LLXORCipher(), and operator=().
U8* LLXORCipher::mHead [protected] |
U32 LLXORCipher::mPadLen [protected] |
Definition at line 69 of file llxorcipher.h.
Referenced by encrypt(), init(), LLXORCipher(), and operator=().