#include <plEncryptedStream.h>
Public Member Functions |
| plEncryptedStream (int pv=PlasmaVer::pvUnknown) |
virtual | ~plEncryptedStream () |
bool | open (const char *file, FileMode mode, EncryptionType type) |
bool | open (hsStream *S, FileMode mode, EncryptionType type) |
void | close () |
void | setKey (unsigned int *keys) |
EncryptionType | getEncType () const |
virtual uint32_t | size () const |
virtual uint32_t | pos () const |
virtual bool | eof () const |
virtual void | seek (uint32_t pos) |
virtual void | skip (int32_t count) |
virtual void | fastForward () |
virtual void | rewind () |
virtual void | flush () |
virtual size_t | read (size_t size, void *buf) |
virtual size_t | write (size_t size, const void *buf) |
| hsStream (int pv=PlasmaVer::pvUnknown) |
virtual | ~hsStream () |
PlasmaVer | getVer () const |
virtual void | setVer (PlasmaVer pv) |
void | writeFrom (hsStream *src) |
uint8_t | readByte () |
uint16_t | readShort () |
void | readShorts (size_t count, uint16_t *buf) |
uint32_t | readInt () |
void | readInts (size_t count, uint32_t *buf) |
uint32_t | readIntSwap () |
float | readFloat () |
double | readDouble () |
bool | readBool () |
plString | readStr (size_t len) |
plString | readSafeStr () |
plString | readSafeWStr () |
virtual plString | readLine () |
void | writeByte (uint8_t v) |
void | writeShort (uint16_t v) |
void | writeShorts (size_t count, const uint16_t *buf) |
void | writeInt (uint32_t v) |
void | writeInts (size_t count, const uint32_t *buf) |
void | writeIntSwap (uint32_t v) |
void | writeFloat (float v) |
void | writeDouble (double v) |
void | writeBool (bool v) |
void | writeStr (const plString &str) |
void | writeSafeStr (const plString &str) |
void | writeSafeWStr (const plString &str) |
virtual void | writeLine (const plString &ln, bool winEOL=false) |
Member Enumeration Documentation
- Enumerator:
kEncNone |
|
kEncXtea |
|
kEncAES |
|
kEncDroid |
|
kEncAuto |
|
Constructor & Destructor Documentation
virtual plEncryptedStream::~plEncryptedStream |
( |
| ) |
|
|
virtual |
Member Function Documentation
void plEncryptedStream::AesDecipher |
( |
unsigned char * |
buffer, |
|
|
int |
count |
|
) |
| |
|
protected |
void plEncryptedStream::AesEncipher |
( |
unsigned char * |
buffer, |
|
|
int |
count |
|
) |
| |
|
protected |
void plEncryptedStream::close |
( |
| ) |
|
void plEncryptedStream::CryptFlush |
( |
| ) |
|
|
protected |
static const unsigned int* plEncryptedStream::DefaultKey |
( |
| ) |
|
|
static |
void plEncryptedStream::DroidDecipher |
( |
unsigned int * |
buf, |
|
|
unsigned int |
num |
|
) |
| |
|
protected |
void plEncryptedStream::DroidEncipher |
( |
unsigned int * |
buf, |
|
|
unsigned int |
num |
|
) |
| |
|
protected |
virtual bool plEncryptedStream::eof |
( |
| ) |
const |
|
virtual |
virtual void plEncryptedStream::fastForward |
( |
| ) |
|
|
virtual |
virtual void plEncryptedStream::flush |
( |
| ) |
|
|
virtual |
static bool plEncryptedStream::IsFileEncrypted |
( |
const char * |
file | ) |
|
|
static |
virtual uint32_t plEncryptedStream::pos |
( |
| ) |
const |
|
virtual |
virtual size_t plEncryptedStream::read |
( |
size_t |
size, |
|
|
void * |
buf |
|
) |
| |
|
virtual |
virtual void plEncryptedStream::rewind |
( |
| ) |
|
|
virtual |
virtual void plEncryptedStream::seek |
( |
uint32_t |
pos | ) |
|
|
virtual |
void plEncryptedStream::setKey |
( |
unsigned int * |
keys | ) |
|
virtual uint32_t plEncryptedStream::size |
( |
| ) |
const |
|
virtual |
virtual void plEncryptedStream::skip |
( |
int32_t |
count | ) |
|
|
virtual |
void plEncryptedStream::TeaDecipher |
( |
unsigned int * |
buf | ) |
|
|
protected |
void plEncryptedStream::TeaEncipher |
( |
unsigned int * |
buf | ) |
|
|
protected |
virtual size_t plEncryptedStream::write |
( |
size_t |
size, |
|
|
const void * |
buf |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following file: