C# 클래스 SnmpSharpNet.AuthenticationMD5

MD5 Authentication class.
상속: IAuthenticationDigest
파일 보기 프로젝트 열기: griffina/SnmpSharpNet

공개 메소드들

메소드 설명
AuthenticationMD5 ( ) : System

Standard constructor

ComputeHash ( byte data, int offset, int count ) : byte[]

Compute hash using authentication protocol.

PasswordToKey ( byte userPassword, byte engineID ) : byte[]

Convert user password to acceptable authentication key.

authenticate ( byte authKey, byte wholeMessage ) : byte[]

Authenticate packet and return authentication parameters value to the caller

authenticate ( byte authenticationSecret, byte engineId, byte wholeMessage ) : byte[]

Authenticate packet and return authentication parameters value to the caller

authenticateIncomingMsg ( byte authKey, byte authenticationParameters, MutableByte wholeMessage ) : bool

Verify MD5 authentication of a packet.

authenticateIncomingMsg ( byte userPassword, byte engineId, byte authenticationParameters, MutableByte wholeMessage ) : bool

Verifies correct MD5 authentication of the frame. Prior to calling this method, you have to extract authentication parameters from the wholeMessage and reset authenticationParameters field in the USM information block to 12 0x00 values.

메소드 상세

AuthenticationMD5() 공개 메소드

Standard constructor
public AuthenticationMD5 ( ) : System
리턴 System

ComputeHash() 공개 메소드

Compute hash using authentication protocol.
public ComputeHash ( byte data, int offset, int count ) : byte[]
data byte Data to hash
offset int Compute hash from the source buffer offset
count int Compute hash for source data length
리턴 byte[]

PasswordToKey() 공개 메소드

Convert user password to acceptable authentication key.
Thrown when key length is less then 8 bytes
public PasswordToKey ( byte userPassword, byte engineID ) : byte[]
userPassword byte Authentication password
engineID byte Authoritative engine id
리턴 byte[]

authenticate() 공개 메소드

Authenticate packet and return authentication parameters value to the caller
public authenticate ( byte authKey, byte wholeMessage ) : byte[]
authKey byte Pre-generated authentication key
wholeMessage byte Message being authenticated
리턴 byte[]

authenticate() 공개 메소드

Authenticate packet and return authentication parameters value to the caller
public authenticate ( byte authenticationSecret, byte engineId, byte wholeMessage ) : byte[]
authenticationSecret byte User authentication secret
engineId byte SNMP agent authoritative engine id
wholeMessage byte Message to authenticate
리턴 byte[]

authenticateIncomingMsg() 공개 메소드

Verify MD5 authentication of a packet.
public authenticateIncomingMsg ( byte authKey, byte authenticationParameters, MutableByte wholeMessage ) : bool
authKey byte Authentication key (not password)
authenticationParameters byte Authentication parameters extracted from the packet being authenticated
wholeMessage MutableByte Entire packet being authenticated
리턴 bool

authenticateIncomingMsg() 공개 메소드

Verifies correct MD5 authentication of the frame. Prior to calling this method, you have to extract authentication parameters from the wholeMessage and reset authenticationParameters field in the USM information block to 12 0x00 values.
public authenticateIncomingMsg ( byte userPassword, byte engineId, byte authenticationParameters, MutableByte wholeMessage ) : bool
userPassword byte User password
engineId byte Authoritative engine id
authenticationParameters byte Extracted USM authentication parameters
wholeMessage MutableByte Whole message with authentication parameters zeroed (0x00) out
리턴 bool