Click or drag to resize

TripleDESPrivacyProvider Class

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

Privacy provider for 3DES.
Inheritance Hierarchy
SystemObject
  Lextm.SharpSnmpLib.SecurityTripleDESPrivacyProvider

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

The TripleDESPrivacyProvider type exposes the following members.

Constructors
 NameDescription
Public methodTripleDESPrivacyProvider Initializes a new instance of the DESPrivacyProvider class.
Top
Properties
 NameDescription
Public propertyAuthenticationProvider Corresponding IAuthenticationProvider.
Public propertyEngineIds Engine IDs.
Public propertyStatic memberMaximumKeyLength Return maximum encryption/decryption key length. For 3DES, returned value is 32. 3DES protocol itself requires an 24 byte key. Additional 8 bytes are used for generating the encryption IV. For encryption itself, first 24 bytes of the key are used.
Public propertyStatic memberMinimumKeyLength Returns minimum encryption/decryption key length. For 3DES, returned value is 32. 3DES protocol itself requires an 24 byte key. Additional 8 bytes are used for generating the encryption IV. For encryption itself, first 24 bytes of the key are used.
Public propertyStatic memberPrivacyParametersLength Returns the length of privacyParameters USM header field. For 3DES, field length is 8.
Public propertySalt Gets the salt.
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 Privacy3DES class.

Originally defined in a draft https://datatracker.ietf.org/doc/html/draft-reeder-snmpv3-usm-3desede-00

See Also