Click or drag to resize

DESPrivacyProvider Class

DES is no longer secure. Please use a more secure provider.

Privacy provider for DES.
Inheritance Hierarchy
SystemObject
  Lextm.SharpSnmpLib.SecurityDESPrivacyProvider

Namespace: Lextm.SharpSnmpLib.Security
Assembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntax
[ObsoleteAttribute("DES is no longer secure. Please use a more secure provider.")]
public sealed class DESPrivacyProvider : IPrivacyProvider

The DESPrivacyProvider type exposes the following members.

Constructors
 NameDescription
Public methodDESPrivacyProvider Initializes a new instance of the DESPrivacyProvider class.
Top
Properties
 NameDescription
Public propertyAuthenticationProvider Corresponding IAuthenticationProvider.
Public propertyEngineIds Engine IDs.
Public propertyStatic memberIsSupported Verifies if the provider is supported.
Public propertyStatic memberMaximumKeyLength Return maximum encryption/decryption key length. For DES, returned value is 16. DES protocol itself requires an 8 byte key. Additional 8 bytes are used for generating the encryption IV. For encryption itself, first 8 bytes of the key are used.
Public propertyStatic memberMinimumKeyLength Returns minimum encryption/decryption key length. For DES, returned value is 16. DES protocol itself requires an 8 byte key. Additional 8 bytes are used for generating the encryption IV. For encryption itself, first 8 bytes of the key are used.
Public propertyStatic memberPrivacyParametersLength Returns the length of privacyParameters USM header field. For DES, field length is 8.
Public propertySalt Gets the salt.
Public propertyStatic memberUseEcbEncryption Flag to force using old ECB cipher mode encryption.
Public propertyStatic memberUseLegacy Flag to force using legacy encryption/decryption code on .NET 6.
Top
Methods
 NameDescription
Public methodDecrypt(ISnmpData, SecurityParameters) Decrypts the specified data.
Public methodStatic memberDecrypt(Byte, Byte, Byte) Decrypt DES encrypted scoped PDU.
Public methodEncrypt(ISnmpData, SecurityParameters) Encrypts the specified scope.
Public methodStatic memberEncrypt(Byte, Byte, Byte) Encrypt scoped PDU using DES encryption protocol
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodPasswordToKey Passwords to key.
Public methodToString Returns a string that represents this object.
(Overrides ObjectToString)
Top
Extension Methods
 NameDescription
Public Extension MethodComputeHash Computes the hash.
(Defined by PrivacyProviderExtension)
Public Extension MethodGetScopeData Gets the scope data.
(Defined by PrivacyProviderExtension)
Public Extension MethodToSecurityLevel Converts to Levels.
(Defined by PrivacyProviderExtension)
Public Extension MethodVerifyHash Verifies the hash.
(Defined by PrivacyProviderExtension)
Top
Remarks
Ported from SNMP#NET PrivacyDES class.
See Also