Convert privacy password into encryption key using packet authentication hash.

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

Syntax

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

Parameters

secret
array< Byte >[]()[]
Privacy user secret
engineId
array< Byte >[]()[]
Authoritative engine id of the snmp agent
authProtocol
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