#include <auth_priv.h>
Inheritance diagram for Priv:
This class has to be subclassed to add new privacy protocols.
Definition at line 205 of file auth_priv.h.
Public Member Functions | |
| virtual | ~Priv () |
| virtual int | encrypt (const unsigned char *key, const unsigned int key_len, const unsigned char *buffer, const unsigned int buffer_len, unsigned char *out_buffer, unsigned int *out_buffer_len, unsigned char *privacy_params, unsigned int *privacy_params_len, const unsigned long engine_boots, const unsigned long engine_time)=0 |
| Encrypt the buffer with the given key. | |
| virtual int | decrypt (const unsigned char *key, const unsigned int key_len, const unsigned char *buffer, const unsigned int buffer_len, unsigned char *out_buffer, unsigned int *out_buffer_len, const unsigned char *privacy_params, const unsigned int privacy_params_len, const unsigned long engine_boots, const unsigned long engine_time)=0 |
| Decrypt the buffer with the given key. | |
| virtual int | get_id () const=0 |
| Get the uniqhe id of the privacy protocol. | |
| virtual const char * | get_id_string () const=0 |
| Get the unique identifier string of the privacy protocol. | |
| virtual void | set_salt (pp_uint64 *new_salt) |
| Set the pointer to the salt that should be used. | |
| virtual int | get_priv_params_len () const=0 |
| Get the maximum length that is needed for the msgPrivacyParameters field. | |
| virtual int | get_min_key_len () const=0 |
| Get the minimum key length needed for encryption and decryption. | |
| virtual void | fix_key_len (unsigned int &key_len) const=0 |
| Decrease a too long length to the right value. | |
Protected Attributes | |
| pp_uint64 * | salt |
|
|
Definition at line 208 of file auth_priv.h. |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Decrypt the buffer with the given key. This method needs the privacy parameters field for the given message.
Implemented in PrivDES. |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Encrypt the buffer with the given key. This method fills the privacy parameters field of the given message.
Implemented in PrivDES. |
|
|
Decrease a too long length to the right value.
Implemented in PrivDES. |
|
|
Get the uniqhe id of the privacy protocol.
Implemented in PrivDES. |
|
|
Get the unique identifier string of the privacy protocol.
Implemented in PrivDES. |
|
|
Get the minimum key length needed for encryption and decryption.
Implemented in PrivDES. |
|
|
Get the maximum length that is needed for the msgPrivacyParameters field.
Implemented in PrivDES. |
|
|
Set the pointer to the salt that should be used.
Definition at line 288 of file auth_priv.h. |
|
|
Definition at line 307 of file auth_priv.h. |
1.3.2