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() |
Parameters
- privacyPassword
- Type: array<
System..::.Byte
>[]()[]
16 byte privacy password
Return Value
8 byte DES encryption password
Exceptions
| Exception | Condition |
|---|
| SnmpPrivacyException | Thrown when privacy password is less then 16 bytes long |
See Also