Decrypt ScopedPdu BER encoded byte array.

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

Syntax

C#
byte[] Decrypt(
	byte[] cryptedData,
	int offset,
	int length,
	byte[] key,
	int engineBoots,
	int engineTime,
	byte[] privacyParameters
)
Visual Basic
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++
array<unsigned char>^ Decrypt(
	array<unsigned char>^ cryptedData, 
	int offset, 
	int length, 
	array<unsigned char>^ key, 
	int engineBoots, 
	int engineTime, 
	array<unsigned char>^ privacyParameters
)

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.

See Also