TripleDESPrivacyProviderDecrypt(Byte, Byte, Byte) Method |
Decrypt DES encrypted scoped PDU.
Namespace: Lextm.SharpSnmpLib.SecurityAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static byte[] Decrypt(
byte[] encryptedData,
byte[] key,
byte[] privacyParameters
)
Public Shared Function Decrypt (
encryptedData As Byte(),
key As Byte(),
privacyParameters As Byte()
) As Byte()
Dim encryptedData As Byte()
Dim key As Byte()
Dim privacyParameters As Byte()
Dim returnValue As Byte()
returnValue = TripleDESPrivacyProvider.Decrypt(encryptedData,
key, privacyParameters)
public:
static array<unsigned char>^ Decrypt(
array<unsigned char>^ encryptedData,
array<unsigned char>^ key,
array<unsigned char>^ privacyParameters
)
static member Decrypt :
encryptedData : byte[] *
key : byte[] *
privacyParameters : byte[] -> byte[]
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
ByteDecrypted byte array
ExceptionsException | Condition |
---|
ArgumentNullException | Thrown when encrypted data is null or length == 0 |
ArgumentOutOfRangeException | Thrown when encryption key length is less then 32 byte or if privacy parameters
argument is null or length other then 8 bytes |
See Also