#include <auth_priv.h>
Inheritance diagram for PrivDES:
Definition at line 606 of file auth_priv.h.
Public Member Functions | |
| 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) |
| Encrypt the buffer with the given key. | |
| 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) |
| Decrypt the buffer with the given key. | |
| int | get_id () const |
| Get the uniqhe id of the privacy protocol. | |
| const char * | get_id_string () const |
| Get the unique identifier string of the privacy protocol. | |
| int | get_priv_params_len () const |
| Get the maximum length that is needed for the msgPrivacyParameters field. | |
| int | get_min_key_len () const |
| Get the minimum key length needed for encryption and decryption. | |
| void | fix_key_len (unsigned int &key_len) const |
| Decrease a too long length to the right value. | |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Decrypt the buffer with the given key. This method needs the privacy parameters field for the given message.
Implements Priv. |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Encrypt the buffer with the given key. This method fills the privacy parameters field of the given message.
Implements Priv. |
|
|
Decrease a too long length to the right value.
Implements Priv. Definition at line 641 of file auth_priv.h. |
|
|
Get the uniqhe id of the privacy protocol.
Implements Priv. Definition at line 637 of file auth_priv.h. References SNMP_PRIVPROTOCOL_DES. |
|
|
Get the unique identifier string of the privacy protocol.
Implements Priv. Definition at line 638 of file auth_priv.h. |
|
|
Get the minimum key length needed for encryption and decryption.
Implements Priv. Definition at line 640 of file auth_priv.h. |
|
|
Get the maximum length that is needed for the msgPrivacyParameters field.
Implements Priv. Definition at line 639 of file auth_priv.h. |
1.3.2