Get final encrypted length
Namespace: SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)
Syntax
| C# |
|---|
public int GetEncryptedLength( int scopedPduLength ) |
| Visual Basic |
|---|
Public Function GetEncryptedLength ( _ scopedPduLength As Integer _ ) As Integer |
| Visual C++ |
|---|
public: virtual int GetEncryptedLength( int scopedPduLength ) sealed |
Parameters
- scopedPduLength
- Type: System..::..Int32
BER encoded ScopedPdu data length
Return Value
Length of encrypted byte arrayImplements
IPrivacyProtocol..::..GetEncryptedLength(Int32)
Remarks
TripleDES performs encryption on 8 byte blocks so the final encrypted size will be a
mulitiple of 8 with padding added to the end of the ScopedPdu if required.