#include <cel_crypt.h>
Static Public Member Functions | |
static AutoPtr< CipherStream > | create (Storage *inStorage, const BlockCipher *inCipher, u32 inSalt) |
static AutoPtr< CipherStream > | create (Stream *inStream, const BlockCipher *inCipher) |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
Additional Inherited Members | |
Public Member Functions inherited from Celartem::Stream | |
virtual size_t | readBytes (void *buffer, size_t inSize, bool wouldBlock=false)=0 |
virtual void | writeBytes (const void *buffer, size_t inSize)=0 |
virtual void | flushBuffer ()=0 |
virtual bool | isEof () const =0 |
virtual size_t | duplicateStream (Stream *inStream, size_t inBufferSize=1024, DuplicateStreamCallback inCallback=NULL, void *inCallbackContext=NULL) |
virtual size_t | duplicateStreamBytes (Stream *inStream, size_t inMaximumByteSize, size_t inBufferSize=1024, DuplicateStreamCallback inCallback=NULL, void *inCallbackContext=NULL) |
Public Member Functions inherited from Celartem::Referable | |
Referable () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Public Member Functions inherited from Celartem::Lockable | |
virtual void | lock () const =0 |
virtual void | unlock () const =0 |
This class is used to encrypt/decrypt the data in Stream.
|
static |
This method creates a new CipherStream instance for write.
inCipher | Pointer to a Cipher instance. It should be properly initialized before calling this method. |
inSalt | A salt value. |
|
static |
This method creates a new CipherStream instance for read.
inCipher | Pointer to a Cipher instance. It should be properly initialized before calling this method. |