IBR-DTNSuite  0.8
ibrcommon::XORStream Class Reference

#include <XORStream.h>

Inheritance diagram for ibrcommon::XORStream:
Collaboration diagram for ibrcommon::XORStream:

List of all members.

Public Member Functions

 XORStream (std::ostream &stream, const CipherMode mode, std::string key)
virtual ~XORStream ()

Protected Member Functions

virtual void encrypt (char *buf, const size_t size)
virtual void decrypt (char *buf, const size_t size)

Detailed Description

Definition at line 16 of file XORStream.h.


Constructor & Destructor Documentation

ibrcommon::XORStream::XORStream ( std::ostream &  stream,
const CipherMode  mode,
std::string  key 
)

Definition at line 12 of file XORStream.cpp.

Definition at line 17 of file XORStream.cpp.


Member Function Documentation

void ibrcommon::XORStream::decrypt ( char *  buf,
const size_t  size 
) [protected, virtual]

Implements ibrcommon::CipherStream.

Definition at line 34 of file XORStream.cpp.

void ibrcommon::XORStream::encrypt ( char *  buf,
const size_t  size 
) [protected, virtual]

Implements ibrcommon::CipherStream.

Definition at line 21 of file XORStream.cpp.


The documentation for this class was generated from the following files: