DESPrivacyProviderEncrypt(Byte, Byte, Byte) Method |
Encrypt scoped PDU using DES encryption protocol
Namespace: Lextm.SharpSnmpLib.SecurityAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static byte[] Encrypt(
byte[] unencryptedData,
byte[] key,
byte[] privacyParameters
)
Public Shared Function Encrypt (
unencryptedData As Byte(),
key As Byte(),
privacyParameters As Byte()
) As Byte()
Dim unencryptedData As Byte()
Dim key As Byte()
Dim privacyParameters As Byte()
Dim returnValue As Byte()
returnValue = DESPrivacyProvider.Encrypt(unencryptedData,
key, privacyParameters)
public:
static array<unsigned char>^ Encrypt(
array<unsigned char>^ unencryptedData,
array<unsigned char>^ key,
array<unsigned char>^ privacyParameters
)
static member Encrypt :
unencryptedData : byte[] *
key : byte[] *
privacyParameters : byte[] -> byte[]
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
ByteEncrypted byte array
Exceptions
See Also