Decrypt ScopedPdu BER encoded byte array.

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.0)

Syntax

C#
public byte[] Decrypt(
	byte[] cryptedData,
	int offset,
	int length,
	byte[] key,
	int engineBoots,
	int engineTime,
	byte[] privacyParameters
)
Visual Basic (Declaration)
Public Function Decrypt ( _
	cryptedData As Byte(), _
	offset As Integer, _
	length As Integer, _
	key As Byte(), _
	engineBoots As Integer, _
	engineTime As Integer, _
	privacyParameters As Byte() _
) As Byte()
Visual C++
public:
virtual array<unsigned char>^ Decrypt(
	array<unsigned char>^ cryptedData, 
	int offset, 
	int length, 
	array<unsigned char>^ key, 
	int engineBoots, 
	int engineTime, 
	array<unsigned char>^ privacyParameters
) sealed

Parameters

cryptedData
Type: array< System..::.Byte >[]()[]
Encrypted data byte array
offset
Type: System..::.Int32
Offset within the buffer to start decryption process from
length
Type: System..::.Int32
Length of data to decrypt
key
Type: array< System..::.Byte >[]()[]
Decryption key
engineBoots
Type: System..::.Int32
Authoritative engine boots value. Retrieved as part of SNMP v3 discovery procedure
engineTime
Type: System..::.Int32
Authoritative engine time value. Retrieved as part of SNMP v3 discovery procedure
privacyParameters
Type: array< System..::.Byte >[]()[]
Privacy parameters parsed from the incoming packet.

Return Value

Byte array containing decrypted ScopedPdu in BER encoded format.

Implements

IPrivacyProtocol..::.Decrypt(array<Byte>[]()[], Int32, Int32, array<Byte>[]()[], Int32, Int32, array<Byte>[]()[])

See Also