Privacy protocol interface. Defines encryption and decryption methods for all privacy protocols allowing for any of the available protocols to be cast as the interface and called to perform privacy operations on packets.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public interface IPrivacyProtocol
Public Interface IPrivacyProtocol
public interface class IPrivacyProtocol

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
CanExtendShortKey
Returns true if derived class supports key extension, otherwise false.
Decrypt(array<Byte>[]()[], Int32, Int32, array<Byte>[]()[], Int32, Int32, array<Byte>[]()[])
Decrypt ScopedPdu BER encoded byte array.
Encrypt(array<Byte>[]()[], Int32, Int32, array<Byte>[]()[], Int32, Int32, array<Byte>[]()[]%)
Encrypt ScopedPdu data BER encoded in a byte array.
ExtendShortKey(array<Byte>[]()[], array<Byte>[]()[], array<Byte>[]()[], IAuthenticationDigest)
Some protocols support a method to extend the an encryption or decryption key when supplied key is too short. Currently this method is only supported by the SHA and TripleDES privacy protocols. NOT TESTED!
GetEncryptedLength(Int32)
Calculates and returns length of the buffer that is the result of the encryption method.
MaximumKeyLength
Get maximum encryption/decryption key length required by the protocol.
MinimumKeyLength
Get minimum encryption/decryption key length required by the protocol.
Name
Privacy protocol name
PasswordToKey(array<Byte>[]()[], array<Byte>[]()[], IAuthenticationDigest)
Convert privacy password into encryption key using packet authentication hash.
PrivacyParametersLength
Get length of the privacy parameters byte array that is generated by the encryption method and used by the decryption method.

See Also