Extend short encryption key

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)

Syntax

C#
byte[] ExtendShortKey(
	byte[] shortKey,
	byte[] password,
	byte[] engineID,
	IAuthenticationDigest authProtocol
)
Visual Basic
Function ExtendShortKey ( _
	shortKey As Byte(), _
	password As Byte(), _
	engineID As Byte(), _
	authProtocol As IAuthenticationDigest _
) As Byte()
Visual C++
array<unsigned char>^ ExtendShortKey(
	array<unsigned char>^ shortKey, 
	array<unsigned char>^ password, 
	array<unsigned char>^ engineID, 
	IAuthenticationDigest^ authProtocol
)

Parameters

shortKey
Type: array<System..::..Byte>[]()[][]
Key that needs to be extended
password
Type: array<System..::..Byte>[]()[][]
Privacy password as configured on the SNMP agent.
engineID
Type: array<System..::..Byte>[]()[][]
Authoritative engine id. Value is retrieved as part of SNMP v3 discovery procedure
authProtocol
Type: SnmpSharpNet..::..IAuthenticationDigest
Authentication protocol class instance cast as IAuthenticationDigest

Return Value

Extended key value

Remarks

Some privacy protocols require generated key to be extended to match the minimum key size required by the encryption alghoritm. Where required, this method should be called by the inheriting class as part of PasswordToKey() method call without the need for user to call it.

See Also