#include <auth_priv.h>
Inheritance diagram for AuthMD5:
Definition at line 566 of file auth_priv.h.
Public Member Functions | |
| int | password_to_key (const unsigned char *password, const unsigned int password_len, const unsigned char *engine_id, const unsigned int engine_id_len, unsigned char *key, unsigned int *key_len) |
| Generate the localized key for the given password and engine id. | |
| int | hash (const unsigned char *data, const unsigned int data_len, unsigned char *digest) |
| Generate a hash value for the given data. | |
| int | auth_out_msg (const unsigned char *key, unsigned char *msg, const int msg_len, unsigned char *auth_par_ptr) |
| Authenticate an outgoing message. | |
| int | auth_inc_msg (const unsigned char *key, unsigned char *msg, const int msg_len, unsigned char *auth_par_ptr, const int auth_par_len) |
| Authenticate an incoming message. | |
| int | get_id () const |
| Get the unique id of the authentication protocol. | |
| const char * | get_id_string () const |
| Get the unique identifier string of the authentication protocol. | |
| int | get_auth_params_len () const |
| Get the maximum length that is needed for the msgAuthenticationParameters field. | |
| int | get_hash_len () const |
| Get length of a hash output. | |
|
||||||||||||||||||||||||
|
Authenticate an incoming message. This method checks if the value in the authentication parameters field of the message is valid. The following procedure is used to verify the authenitcation value
Implements Auth. |
|
||||||||||||||||||||
|
Authenticate an outgoing message. This method fills the authentication parameters field of the given message. The param auth_par_ptr is pointing inside the message buffer and must be zeroed before the authentication value is computed.
Implements Auth. |
|
|
Get the maximum length that is needed for the msgAuthenticationParameters field.
Implements Auth. Definition at line 596 of file auth_priv.h. |
|
|
Get length of a hash output.
Implements Auth. Definition at line 598 of file auth_priv.h. References SNMPv3_AP_OUTPUT_LENGTH_MD5. |
|
|
Get the unique id of the authentication protocol.
Implements Auth. Definition at line 592 of file auth_priv.h. References SNMP_AUTHPROTOCOL_HMACMD5. |
|
|
Get the unique identifier string of the authentication protocol.
Implements Auth. Definition at line 594 of file auth_priv.h. |
|
||||||||||||||||
|
Generate a hash value for the given data.
Implements Auth. |
|
||||||||||||||||||||||||||||
|
Generate the localized key for the given password and engine id.
Implements Auth. |
1.3.2