Generate IV from the privacy key and salt value returned by GetSalt method.

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

Syntax

C#
private byte[] GetIV(
	byte[] privacyKey,
	byte[] salt
)
Visual Basic (Declaration)
Private Function GetIV ( _
	privacyKey As Byte(), _
	salt As Byte() _
) As Byte()
Visual C++
private:
array<unsigned char>^ GetIV(
	array<unsigned char>^ privacyKey, 
	array<unsigned char>^ salt
)

Parameters

privacyKey
Type: array< System..::.Byte >[]()[]
16 byte privacy key
salt
Type: array< System..::.Byte >[]()[]
Salt value returned by GetSalt method

Return Value

IV value used in the encryption process

Exceptions

ExceptionCondition
SnmpPrivacyExceptionThrown when privacy key is less then 16 bytes long.

See Also