Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

mwCipher Struct Reference

#include <mw_cipher.h>


Detailed Description

A cipher.

Ciphers are primarily used to provide cipher instances for bi-directional encryption on channels, but some may be used for other activities. Expand upon this structure to create a custom encryption provider.

See also:
mwCipherInstance


Data Fields

mwSessionsession
 service this cipher is providing for

guint16 type
const char *(* get_name )()
const char *(* get_desc )()
mwCipherInstantiator new_instance
 Generate a new Cipher Instance for use on a channel.

mwCipherDescriptor new_item
void(* offered )(struct mwCipherInstance *ci, struct mwEncryptItem *item)
mwEncryptItem *(* offer )(struct mwCipherInstance *ci)
void(* accepted )(struct mwCipherInstance *ci, struct mwEncryptItem *item)
mwEncryptItem *(* accept )(struct mwCipherInstance *ci)
mwCipherProcessor encrypt
mwCipherProcessor decrypt
void(* clear )(struct mwCipher *c)
 prepare this cipher for being free'd

void(* clear_instance )(struct mwCipherInstance *ci)
 clean up a cipher instance before being free'd


Field Documentation

struct mwEncryptItem*(* mwCipher::accept)(struct mwCipherInstance *ci)
 

void(* mwCipher::accepted)(struct mwCipherInstance *ci, struct mwEncryptItem *item)
 

void(* mwCipher::clear)(struct mwCipher *c)
 

prepare this cipher for being free'd

See also:
mwCipher_free

void(* mwCipher::clear_instance)(struct mwCipherInstance *ci)
 

clean up a cipher instance before being free'd

See also:
mwCipherInstance_free

mwCipherProcessor mwCipher::decrypt
 

See also:
mwCipherInstance_decrypt

mwCipherProcessor mwCipher::encrypt
 

See also:
mwCipherInstance_encrypt

const char*(* mwCipher::get_desc)()
 

See also:
mwCipher_getDesc

const char*(* mwCipher::get_name)()
 

See also:
mwCipher_getName

mwCipherInstantiator mwCipher::new_instance
 

Generate a new Cipher Instance for use on a channel.

See also:
mwCipher_newInstance

mwCipherDescriptor mwCipher::new_item
 

See also:
mwCipher_newItem
Todo:
remove for 1.0

struct mwEncryptItem*(* mwCipher::offer)(struct mwCipherInstance *ci)
 

void(* mwCipher::offered)(struct mwCipherInstance *ci, struct mwEncryptItem *item)
 

struct mwSession* mwCipher::session
 

service this cipher is providing for

See also:
mwCipher_getSession

guint16 mwCipher::type
 

See also:
mwCipher_getType


The documentation for this struct was generated from the following file:
Generated on Sun Nov 27 16:57:20 2005 for meanwhile by doxygen 1.3.5