Cypher Class Reference

#include <cypher.h>

Inheritance diagram for Cypher:

AesIcmCypher NullCypher List of all members.

Public Member Functions

 Cypher ()
virtual ~Cypher ()
void setKey (Buffer key)
void setSalt (Buffer salt)
void cypher (Buffer &buf, seq_nr_t seq_nr, sender_id_t sender_id)

Protected Member Functions

void exor (Buffer &buf, const Buffer &bit_stream)
virtual Buffer getBitStream (u_int32_t length, seq_nr_t seq_nr, sender_id_t sender_id)=0

Constructor & Destructor Documentation

Cypher::Cypher (  )  [inline]

virtual Cypher::~Cypher (  )  [inline, virtual]


Member Function Documentation

void Cypher::setKey ( Buffer  key  )  [inline]

Reimplemented in AesIcmCypher.

void Cypher::setSalt ( Buffer  salt  )  [inline]

Reimplemented in AesIcmCypher.

void Cypher::cypher ( Buffer buf,
seq_nr_t  seq_nr,
sender_id_t  sender_id 
)

void Cypher::exor ( Buffer buf,
const Buffer bit_stream 
) [protected]

virtual Buffer Cypher::getBitStream ( u_int32_t  length,
seq_nr_t  seq_nr,
sender_id_t  sender_id 
) [protected, pure virtual]

Implemented in NullCypher, and AesIcmCypher.


The documentation for this class was generated from the following files:
Generated on Mon Dec 3 11:49:25 2007 for anytun by  doxygen 1.5.1