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!
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
byte[] ExtendShortKey( byte[] shortKey, byte[] password, byte[] engineID, IAuthenticationDigest authProtocol )
Function ExtendShortKey ( _ shortKey As Byte(), _ password As Byte(), _ engineID As Byte(), _ authProtocol As IAuthenticationDigest _ ) As Byte()
array<unsigned char>^ ExtendShortKey( array<unsigned char>^ shortKey, array<unsigned char>^ password, array<unsigned char>^ engineID, IAuthenticationDigest^ authProtocol )
Parameters
- shortKey
- array<
Byte
>[]()[]
Key that needs to be extended
- password
- array<
Byte
>[]()[]
Privacy password as configured on the SNMP agent.
- engineID
- array<
Byte
>[]()[]
Authoritative engine id. Value is retrieved as part of SNMP v3 discovery procedure
- authProtocol
- IAuthenticationDigest
Authentication protocol class instance cast as IAuthenticationDigest