DES privacy protocol implementation class.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.6.0.0 (0.6.0.0)
Syntax
| C# |
|---|
public class PrivacyDES : IPrivacyProtocol |
| Visual Basic (Declaration) |
|---|
Public Class PrivacyDES _ Implements IPrivacyProtocol |
| Visual C++ |
|---|
public ref class PrivacyDES : IPrivacyProtocol |
Remarks
SNMP Version 3 DES privacy protocol implementation.
DES requires an encryption key be provided of 16 bytes in length. Class will accept longer key values (which will be
trimmed to 16 bytes) but both encrypt and decrypt operations will fail if key is shorter then required value length.
Decryption operation depends on USM header privacyParameters field value which is generated by the Encrypt method. Make
sure privacyParameters argument value is correctly inserted into the target packet to enable SNMP agent to decrypt the
message.