Click or drag to resize

TripleDESPrivacyProviderEncrypt(Byte, Byte, Byte) Method

Encrypt scoped PDU using DES encryption protocol

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

Parameters

unencryptedData  Byte
Unencrypted scoped PDU byte array
key  Byte
Encryption key. Key has to be at least 32 bytes is length
privacyParameters  Byte
Privacy parameters out buffer. This field will be filled in with information required to decrypt the information. Output length of this field is 8 bytes and space has to be reserved in the USM header to store this information

Return Value

Byte
Encrypted byte array
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown when encryption key is null or length of the encryption key is too short.
See Also