#include <mw_cipher.h>
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.
Data Fields | |
mwEncryptItem *(* | accept )(struct mwCipherInstance *ci) |
void(* | accepted )(struct mwCipherInstance *ci, struct mwEncryptItem *item) |
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 | |
mwCipherProcessor | decrypt |
| |
mwCipherProcessor | encrypt |
| |
const char *(* | get_desc )() |
| |
const char *(* | get_name )() |
| |
mwCipherInstantiator | new_instance |
Generate a new Cipher Instance for use on a channel. | |
mwEncryptItem *(* | offer )(struct mwCipherInstance *ci) |
void(* | offered )(struct mwCipherInstance *ci, struct mwEncryptItem *item) |
mwSession * | session |
service this cipher is providing for | |
guint16 | type |
|
struct mwEncryptItem*(* mwCipher::accept)(struct mwCipherInstance *ci) [read] |
void(* mwCipher::accepted)(struct mwCipherInstance *ci, struct mwEncryptItem *item) |
void(* mwCipher::clear)(struct mwCipher *c) |
void(* mwCipher::clear_instance)(struct mwCipherInstance *ci) |
const char*(* mwCipher::get_desc)() |
const char*(* mwCipher::get_name)() |
struct mwEncryptItem*(* mwCipher::offer)(struct mwCipherInstance *ci) [read] |
void(* mwCipher::offered)(struct mwCipherInstance *ci, struct mwEncryptItem *item) |
struct mwSession* mwCipher::session [read] |
guint16 mwCipher::type |