Extract and return DES encryption key. Privacy password is 16 bytes in length. Only the first 8 bytes are used as DES password. Remaining 8 bytes are used as pre-IV value.

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

Syntax

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

Parameters

privacyPassword
Type: array< System..::.Byte >[]()[]
16 byte privacy password

Return Value

8 byte DES encryption password

Exceptions

ExceptionCondition
SnmpPrivacyExceptionThrown when privacy password is less then 16 bytes long

See Also