Click or drag to resize

DESPrivacyProvider.Decrypt(Byte[], Byte[], Byte[]) Method

Decrypt DES encrypted scoped PDU.

Namespace: GSF.Net.Snmp.Security
Assembly: GSF.Net (in GSF.Net.dll) Version: 2.4.239-beta
Syntax
public static byte[] Decrypt(
	byte[] encryptedData,
	byte[] key,
	byte[] privacyParameters
)
View Source

Parameters

encryptedData  Byte[]
Source data buffer
key  Byte[]
Decryption key. Key length has to be 32 bytes in length or longer (bytes beyond 32 bytes are ignored).
privacyParameters  Byte[]
Privacy parameters extracted from USM header

Return Value

Byte[]
Decrypted byte array
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when encrypted data is null or length == 0
ArgumentOutOfRangeExceptionThrown when encryption key length is less then 32 byte or if privacy parameters argument is null or length other then 8 bytes
See Also