Convert privacy password into encryption key using packet authentication hash.

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.0)

Syntax

C#
public byte[] PasswordToKey(
	byte[] secret,
	byte[] engineId,
	IAuthenticationDigest authProtocol
)
Visual Basic (Declaration)
Public Function PasswordToKey ( _
	secret As Byte(), _
	engineId As Byte(), _
	authProtocol As IAuthenticationDigest _
) As Byte()
Visual C++
public:
virtual array<unsigned char>^ PasswordToKey(
	array<unsigned char>^ secret, 
	array<unsigned char>^ engineId, 
	IAuthenticationDigest^ authProtocol
) sealed

Parameters

secret
Type: array< System..::.Byte >[]()[]
Privacy user secret
engineId
Type: array< System..::.Byte >[]()[]
Authoritative engine id of the snmp agent
authProtocol
Type: SnmpSharpNet..::.IAuthenticationDigest
Authentication protocol

Return Value

Encryption key

Implements

IPrivacyProtocol..::.PasswordToKey(array<Byte>[]()[], array<Byte>[]()[], IAuthenticationDigest)

Exceptions

ExceptionCondition
SnmpPrivacyExceptionThrown when key size is shorter then MinimumKeyLength

See Also