|
DESPrivacyProviderDecrypt(Byte, Byte, Byte) Method
|
Decrypt DES encrypted scoped PDU.
Namespace: GSF.Net.Snmp.SecurityAssembly: GSF.Net (in GSF.Net.dll) Version: 2.4.205-beta
Syntax public static byte[] Decrypt(
byte[] encryptedData,
byte[] key,
byte[] privacyParameters
)
Public Shared Function Decrypt (
encryptedData As Byte(),
key As Byte(),
privacyParameters As Byte()
) As Byte()
static member Decrypt :
encryptedData : byte[] *
key : byte[] *
privacyParameters : byte[] -> byte[]
GSF.Net.Snmp.Security.DESPrivacyProvider.Decrypt = function(encryptedData, key, privacyParameters);
View SourceParameters
- 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
Exceptions Exception | 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