SNMP++
3.3.11
|
Authentication module using SHA1 (usmHMACSHAAuthProtocol). More...
#include <auth_priv.h>
Public Member Functions | |
int | get_id () const |
Get the unique id of the authentication protocol. More... | |
const char * | get_id_string () const |
Get the unique identifier string of the authentication protocol. More... | |
int | get_auth_params_len () const |
Get the maximum length that is needed for the msgAuthenticationParameters field. More... | |
int | get_hash_len () const |
Get length of a hash output. More... | |
Public Member Functions inherited from AuthSHABase | |
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. More... | |
int | hash (const unsigned char *data, const unsigned int data_len, unsigned char *digest) const |
Generate a hash value for the given data. More... | |
int | auth_out_msg (const unsigned char *key, unsigned char *msg, const int msg_len, unsigned char *auth_par_ptr) |
Authenticate an outgoing message. More... | |
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. More... | |
Public Member Functions inherited from Auth | |
virtual | ~Auth () |
virtual void | set_salt (pp_uint64 *new_salt) |
Set the pointer to the salt that should be used. More... | |
Protected Member Functions | |
Hasher * | get_hasher () const |
Additional Inherited Members | |
Protected Attributes inherited from Auth | |
pp_uint64 * | salt |
Authentication module using SHA1 (usmHMACSHAAuthProtocol).
Definition at line 921 of file auth_priv.h.
|
inlinevirtual |
Get the maximum length that is needed for the msgAuthenticationParameters field.
Implements Auth.
Definition at line 930 of file auth_priv.h.
|
inlinevirtual |
Get length of a hash output.
Implements Auth.
Definition at line 932 of file auth_priv.h.
References SNMPv3_AP_OUTPUT_LENGTH_SHA.
|
protectedvirtual |
Implements AuthSHABase.
|
inlinevirtual |
Get the unique id of the authentication protocol.
Implements Auth.
Definition at line 926 of file auth_priv.h.
References SNMP_AUTHPROTOCOL_HMACSHA.
|
inlinevirtual |
Get the unique identifier string of the authentication protocol.
Implements Auth.
Definition at line 928 of file auth_priv.h.