Extends the encryption key if key size returned by PasswordToKey is less then minimum required by the encryption protocol.

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

Syntax

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

Parameters

shortKey
Type: array<System..::..Byte>[]()[][]
Encryption key
password
Type: array<System..::..Byte>[]()[][]
Privacy password
engineID
Type: array<System..::..Byte>[]()[][]
Authoritative engine id
authProtocol
Type: SnmpSharpNet..::..IAuthenticationDigest
Authentication protocol class instance

Return Value

unaltered shortKey value

Implements

IPrivacyProtocol..::..ExtendShortKey(array<Byte>[]()[][], array<Byte>[]()[][], array<Byte>[]()[][], IAuthenticationDigest)

Remarks

There is no need to call this method in a user application becuase PasswordToKey() method will make the call if password it generates is too short.

See Also