libmoost
moost::nagios::nsca_crypto Class Reference

#include <nsca_crypto.hpp>

Inheritance diagram for moost::nagios::nsca_crypto:
Collaboration diagram for moost::nagios::nsca_crypto:

List of all members.

Classes

struct  crypt_instance

Public Member Functions

 nsca_crypto (char const *received_iv, int const method, std::string const &password)
 ~nsca_crypto ()
void encrypt (nsca_data_packet &packet) const
void decrypt (nsca_data_packet &packet) const

Private Types

typedef boost::scoped_ptr
< crypt_instance
crypt_instance_ptr

Private Member Functions

void encrypt_init (char const *, int encryption_method, char const *received_iv, crypt_instance_ptr &CI) const
void encrypt_cleanup (int, crypt_instance_ptr const &CI)
void encrypt_buffer (char *buffer, size_t buffer_size, char const *password, int encryption_method, crypt_instance_ptr const &CI) const
void decrypt_buffer (char *buffer, size_t buffer_size, char const *password, int encryption_method, crypt_instance_ptr const &CI) const

Private Attributes

int method_
std::string password_
crypt_instance_ptr CIptr_

Detailed Description

Definition at line 53 of file nsca_crypto.hpp.


Member Typedef Documentation

typedef boost::scoped_ptr< crypt_instance > moost::nagios::nsca_crypto::crypt_instance_ptr [private]

Definition at line 70 of file nsca_crypto.hpp.


Constructor & Destructor Documentation

moost::nagios::nsca_crypto::nsca_crypto ( char const *  received_iv,
int const  method,
std::string const &  password 
) [inline]

Definition at line 73 of file nsca_crypto.hpp.

Here is the call graph for this function:

Definition at line 85 of file nsca_crypto.hpp.

Here is the call graph for this function:


Member Function Documentation

void moost::nagios::nsca_crypto::decrypt ( nsca_data_packet packet) const [inline]

Definition at line 97 of file nsca_crypto.hpp.

Here is the call graph for this function:

void moost::nagios::nsca_crypto::decrypt_buffer ( char *  buffer,
size_t  buffer_size,
char const *  password,
int  encryption_method,
crypt_instance_ptr const &  CI 
) const [inline, private]

Definition at line 320 of file nsca_crypto.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void moost::nagios::nsca_crypto::encrypt ( nsca_data_packet packet) const [inline]

Definition at line 90 of file nsca_crypto.hpp.

Here is the call graph for this function:

void moost::nagios::nsca_crypto::encrypt_buffer ( char *  buffer,
size_t  buffer_size,
char const *  password,
int  encryption_method,
crypt_instance_ptr const &  CI 
) const [inline, private]

Definition at line 264 of file nsca_crypto.hpp.

Here is the caller graph for this function:

void moost::nagios::nsca_crypto::encrypt_cleanup ( int  ,
crypt_instance_ptr const &  CI 
) [inline, private]

Definition at line 247 of file nsca_crypto.hpp.

Here is the caller graph for this function:

void moost::nagios::nsca_crypto::encrypt_init ( char const *  ,
int  encryption_method,
char const *  received_iv,
crypt_instance_ptr CI 
) const [inline, private]

Definition at line 111 of file nsca_crypto.hpp.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 349 of file nsca_crypto.hpp.

Definition at line 350 of file nsca_crypto.hpp.


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