Encrypt ScopedPdu data BER encoded in a byte array.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
array<unsigned char>^ Encrypt( array<unsigned char>^ unencryptedData, int offset, int length, array<unsigned char>^ encryptionKey, int engineBoots, int engineTime, [OutAttribute] array<unsigned char>^% privacyParameters )
Parameters
- offset
- Int32
Offset within the BER encoded byte array to start encryption operation from.
- length
- Int32
Length of data to encrypt
- encryptionKey
- array<
Byte
>[]()[]
Encryption key
- engineBoots
- Int32
Authoritative engine boots value. Retrieved as part of SNMP v3 discovery process.
- engineTime
- Int32
Authoritative engine time value. Retrieved as part of SNMP v3 discovery process.
- privacyParameters
-
array<
Byte
>[]()[]
%
Byte array that will receive privacy parameters information that is the result of the encryption procedure.